Interface TicketFacade

All Known Implementing Classes:
DefaultCustomerTicketingFacade

public interface TicketFacade
interface that holds the operations for ticketing system
  • Method Details

    • createTicket

      @Nonnull TicketData createTicket(TicketData ticketData)
      Creates ticket.
      Parameters:
      ticketData - TicketData
      Returns:
      TicketData or null
    • updateTicket

      @Nonnull TicketData updateTicket(TicketData ticketData)
      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 id
      eventCode - ticket event code
      attachmentId - ticket attachment id
      Returns:
      TicketEventAttachmentFileData or throws a runtime exception
    • getAttachmentCountByEventCode

      default int getAttachmentCountByEventCode(String ticketId, String eventCode)
      Requesting to count the total number of attachments for a ticket event of a customer by event code.
      Parameters:
      ticketId - ticket id
      eventCode - 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 object
      eventCode - ticket event code
      file - file to be uploaded as attachment
      Returns:
      TicketEventData or null
    • getTicket

      TicketData getTicket(String ticketId)
      Requesting for a ticket of a customer.
      Parameters:
      ticketId - ticket id
      Returns:
      TicketData or null
    • getTickets

      @Nonnull SearchPageData<TicketData> getTickets(PageableData pageableData)
      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.