Class WorkflowTicketingUtils
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.ticketing.utils.WorkflowTicketingUtils
This class provides utility methods for the module-workflow-ticketing
-
Method Summary
Modifier and TypeMethodDescriptionstatic fr.paris.lutece.plugins.ticketing.business.ticket.TicketfindTicketByIdHistory(int nIdHistory) Get the ticket from a given id historystatic <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>)validEmailList(String strEmails, IExternalUserDAO externalUserUserDAO, String strNextActionId) Check if a list of emails (as string) is valid
-
Method Details
-
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 emailsexternalUserUserDAO- external user daostrNextActionId- 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- requesterrors- errors- Returns:
- Object[]
-