Package de.bytestore.hostinger.handler
Klasse TicketHandler
java.lang.Object
de.bytestore.hostinger.handler.TicketHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic TicketMessage
createMessage
(User user, Tickets ticketIO, String contentIO) Creates a new ticket message.static Tickets
createTicket
(User authorIO, String titleIO, TicketPriority priorityIO) Creates a new ticket.static Tickets
createTicket
(User authorIO, String titleIO, TicketPriority priorityIO, io.jmix.notifications.NotificationManager notificationHandler) Creates a new ticket.static Tickets
Retrieves a ticket object from the database based on the given ID.
-
Konstruktordetails
-
TicketHandler
public TicketHandler()
-
-
Methodendetails
-
createTicket
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
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
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.
-