Class DefaultTicketEventStrategy

    • Constructor Detail

      • DefaultTicketEventStrategy

        public DefaultTicketEventStrategy()
    • Method Detail

      • createNoteForTicket

        public CsCustomerEventModel createNoteForTicket​(CsTicketModel ticket,
                                                        CsInterventionType intervention,
                                                        CsEventReason reason,
                                                        java.lang.String note,
                                                        java.util.Collection<MediaModel> attachments)
        Description copied from interface: TicketEventStrategy
        Create and internal note against the ticket with the specified information
        Specified by:
        createNoteForTicket in interface TicketEventStrategy
        Parameters:
        ticket - The ticket to create the note for
        intervention - The intervention type of the note
        reason - The reason for the note's creation
        note - The text of the note
        attachments - Any attachments which should be added to the note
        Returns:
        The newly create note
      • createCustomerEmailForTicket

        public CsCustomerEventModel createCustomerEmailForTicket​(CsTicketModel ticket,
                                                                 CsEventReason reason,
                                                                 java.lang.String subject,
                                                                 java.lang.String emailBody,
                                                                 java.util.Collection<MediaModel> attachments)
        Description copied from interface: TicketEventStrategy
        Create a note against the ticket which is sent as an email to the customer the ticket relates to
        Specified by:
        createCustomerEmailForTicket in interface TicketEventStrategy
        Parameters:
        ticket - The ticket to create the note email for
        reason - The reason for the email
        subject - The subject of the email
        emailBody - The body of the email
        attachments - Any attachments should be included with the email
        Returns:
        The newly create email
      • onTicketCreation

        protected void onTicketCreation​(CsTicketModel ticket,
                                        CsCustomerEventModel creationEvent)
        Placeholder for post ticket creation business rules
      • setEmailCommentType

        public void setEmailCommentType​(java.lang.String emailCommentType)
      • setTicketCreatedType

        public void setTicketCreatedType​(java.lang.String ticketCreatedType)
      • setTicketEventFactory

        public void setTicketEventFactory​(TicketEventFactory ticketEventFactory)
      • setOpenState

        public void setOpenState​(CsTicketState openState)
      • setCustomerNoteCommentType

        public void setCustomerNoteCommentType​(java.lang.String customerNoteCommentType)
        Parameters:
        customerNoteCommentType - the customerNoteCommentType to set
      • setAgentNoteCommentType

        public void setAgentNoteCommentType​(java.lang.String agentNoteCommentType)
        Parameters:
        agentNoteCommentType - the agentNoteCommentType to set
      • getTicketEventFactory

        protected TicketEventFactory getTicketEventFactory()
        Returns:
        the ticketEventFactory
      • getTicketCreatedType

        protected java.lang.String getTicketCreatedType()
        Returns:
        the ticketCreatedType
      • getEmailCommentType

        protected java.lang.String getEmailCommentType()
        Returns:
        the emailCommentType
      • getOpenState

        protected CsTicketState getOpenState()
        Returns:
        the openState
      • getCustomerNoteCommentType

        public java.lang.String getCustomerNoteCommentType()
        Returns:
        the customerNoteCommentType
      • getAgentNoteCommentType

        public java.lang.String getAgentNoteCommentType()
        Returns:
        the agentNoteCommentType
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)