Class WorkflowTicketingUtils


  • public final class WorkflowTicketingUtils
    extends Object
    This class provides utility methods for the module-workflow-ticketing
    • Method Detail

      • findTicketByIdHistory

        public static fr.paris.lutece.plugins.ticketing.business.ticket.Ticket findTicketByIdHistory​(int nIdHistory)
        Get the ticket from a given id history
        Parameters:
        nIdHistory - the id history
        Returns:
        the ticket
      • validEmailList

        public static List<String> validEmailList​(String strEmails,
                                                  IExternalUserDAO externalUserUserDAO,
                                                  String strNextActionId)
        Check if a list of emails (as string) is valid
        Parameters:
        strEmails - the string of emails
        externalUserUserDAO - external user dao
        strNextActionId - next action id
        Returns:
        Empty list if no error, else a list with first element is the message key, and following element are parameters
      • formatValidationErrors

        public static <T> Object[] formatValidationErrors​(javax.servlet.http.HttpServletRequest request,
                                                          List<? extends fr.paris.lutece.util.ErrorMessage> errors)
        AdminMessageService.formatValidationErrors(javax.servlet.http.HttpServletRequest, java.util.List<? extends fr.paris.lutece.util.ErrorMessage>)
        Type Parameters:
        T - type
        Parameters:
        request - request
        errors - errors
        Returns:
        Object[]