Interface IEditableTicketService

    • Method Detail

      • create

        @Transactional("workflow-ticketing.transactionManager")
        void create​(EditableTicket editableTicket)
        Create an editable ticket
        Parameters:
        editableTicket - the editable ticket
      • update

        @Transactional("workflow-ticketing.transactionManager")
        void update​(EditableTicket editableTicket)
        Update an editable ticket
        Parameters:
        editableTicket - the editable ticket
      • find

        EditableTicket find​(int nIdHistory,
                            int nIdTask)
        Find an editable ticket
        Parameters:
        nIdHistory - the id history
        nIdTask - the id task
        Returns:
        the editable ticket
      • findByIdTicket

        EditableTicket findByIdTicket​(int nIdTicket)
        Get the non edited editable ticket from a given id ticket
        Parameters:
        nIdTicket - the id ticket
        Returns:
        the editable ticket
      • findByIdTask

        List<EditableTicket> findByIdTask​(int nIdTask)
        Find editable tickets by a given id task
        Parameters:
        nIdTask - the id task
        Returns:
        the list of editable tickets
      • removeByIdHistory

        @Transactional("workflow-ticketing.transactionManager")
        void removeByIdHistory​(int nIdHistory,
                               int nIdTask)
        Remove an editable ticket
        Parameters:
        nIdHistory - the id history
        nIdTask - the id task
      • removeByIdTask

        @Transactional("workflow-ticketing.transactionManager")
        void removeByIdTask​(int nIdTask)
        Remove an editable ticket by id task
        Parameters:
        nIdTask - the id task
      • buildListEntriesToEdit

        List<fr.paris.lutece.plugins.genericattributes.business.Entry> buildListEntriesToEdit​(javax.servlet.http.HttpServletRequest request,
                                                                                              List<EditableTicketField> listEditableTicketFields)
        Get the list of entries to edit
        Parameters:
        request - the HTTP request
        listEditableTicketFields - the list of editable ticket fields
        Returns:
        a list of entries
      • buildListIdEntriesToEdit

        List<Integer> buildListIdEntriesToEdit​(javax.servlet.http.HttpServletRequest request,
                                               List<EditableTicketField> listEditableTicketFields)
        Get the id list of entries to edit
        Parameters:
        request - the HTTP request
        listEditableTicketFields - the id list of editable ticket fields
        Returns:
        a list of id entries
      • isStateValid

        boolean isStateValid​(EditableTicket editableTicket,
                             Locale locale)
        Check if the ticket has the same state before executing the action
        Parameters:
        editableTicket - the editable ticket
        locale - the locale
        Returns:
        true if the ticket has a valid state, false otherwise