Class WorkflowTicketingUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.ticketing.utils.WorkflowTicketingUtils
-
public final class WorkflowTicketingUtils extends Object
This class provides utility methods for the module-workflow-ticketing
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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>)static List<String>validEmailList(String strEmails, IExternalUserDAO externalUserUserDAO, String strNextActionId)Check if a list of emails (as string) is valid
-
-
-
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 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[]
-
-