Klasse TicketHandler

java.lang.Object
de.bytestore.hostinger.handler.TicketHandler

public class TicketHandler extends Object
  • Konstruktordetails

    • TicketHandler

      public TicketHandler()
  • Methodendetails

    • createTicket

      public static Tickets createTicket(User authorIO, String titleIO, TicketPriority priorityIO)
      Creates a new ticket.
      Parameter:
      authorIO - The author of the ticket.
      titleIO - The title of the ticket.
      priorityIO - The priority of the ticket.
      Gibt zurück:
      The created ticket object.
    • createTicket

      public static Tickets createTicket(User authorIO, String titleIO, TicketPriority priorityIO, io.jmix.notifications.NotificationManager notificationHandler)
      Creates a new ticket.
      Parameter:
      authorIO - The author of the ticket.
      titleIO - The title of the ticket.
      priorityIO - The priority of the ticket.
      notificationHandler - The notification handler to send notifications to admins/supporters.
      Gibt zurück:
      The created ticket object.
    • createMessage

      public static TicketMessage createMessage(User user, Tickets ticketIO, String contentIO)
      Creates a new ticket message.
      Parameter:
      user - The user who created the message.
      ticketIO - The ticket object associated with the message.
      contentIO - The content of the message.
      Gibt zurück:
      The created ticket message object.
    • getTicket

      public static Tickets getTicket(String idIO)
      Retrieves a ticket object from the database based on the given ID.
      Parameter:
      idIO - The ID of the ticket to be retrieved.
      Gibt zurück:
      The ticket object with the given ID, or null if no matching ticket is found.