Interface TicketFacade
- All Known Implementing Classes:
DefaultCustomerTicketingFacade
public interface TicketFacade
interface that holds the operations for ticketing system
-
Method Summary
Modifier and TypeMethodDescriptiondefault TicketEventDataaddAttachmentToEventByEventCode(String ticketId, String eventCode, org.springframework.web.multipart.MultipartFile file) Requesting for adding an attachment to a ticket event of a customer by event code.createTicket(TicketData ticketData) Creates ticket.Search in cart and orders any data for association for ticket.default intgetAttachmentCountByEventCode(String ticketId, String eventCode) Requesting to count the total number of attachments for a ticket event of a customer by event code.default TicketEventAttachmentFileDatagetAttachmentFileByAttachmentId(String ticketId, String eventCode, String attachmentId) Requesting to retrieve an attachment file to a ticket event of a customer by event code.Requesting for a ticket of a customer.getTickets(PageableData pageableData) Requesting for all tickets of a customer.updateTicket(TicketData ticketData) Updates ticket
-
Method Details
-
createTicket
Creates ticket.- Parameters:
ticketData- TicketData- Returns:
- TicketData or null
-
updateTicket
Updates ticket- Parameters:
ticketData- TicketData- Returns:
- TicketData
-
getAttachmentFileByAttachmentId
default TicketEventAttachmentFileData getAttachmentFileByAttachmentId(String ticketId, String eventCode, String attachmentId) Requesting to retrieve an attachment file to a ticket event of a customer by event code.- Parameters:
ticketId- ticket ideventCode- ticket event codeattachmentId- ticket attachment id- Returns:
- TicketEventAttachmentFileData or throws a runtime exception
-
getAttachmentCountByEventCode
Requesting to count the total number of attachments for a ticket event of a customer by event code.- Parameters:
ticketId- ticket ideventCode- ticket event code- Returns:
- int value indicating the total number of attachments for the given ticket event
-
addAttachmentToEventByEventCode
default TicketEventData addAttachmentToEventByEventCode(String ticketId, String eventCode, org.springframework.web.multipart.MultipartFile file) Requesting for adding an attachment to a ticket event of a customer by event code.- Parameters:
ticketId- ticket data objecteventCode- ticket event codefile- file to be uploaded as attachment- Returns:
- TicketEventData or null
-
getTicket
Requesting for a ticket of a customer.- Parameters:
ticketId- ticket id- Returns:
- TicketData or null
-
getTickets
Requesting for all tickets of a customer.- Parameters:
pageableData- pageable data- Returns:
- not-null list
-
getAssociatedToObjects
Map<String,List<TicketAssociatedData>> getAssociatedToObjects()Search in cart and orders any data for association for ticket.- Returns:
- non-null map, key - special code describes carts/orders are presented in value-list
-
getTicketCategories
List<TicketCategory> getTicketCategories()- Returns:
- a map with available ticket categories in string representation for the customer ticket creation as a key and it's localizations as a value.
-