Class WorkflowUtils
java.lang.Object
fr.paris.lutece.plugins.workflow.utils.WorkflowUtils
class DirectoryUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHeaderResponse(jakarta.servlet.http.HttpServletResponse response, String strFileName) write the http header in the responsestatic StringbuildRequestWithFilter(String strSelect, List<String> listStrFilter, String strOrder) Builds a query with filters placed in parametersconvertStringArrayToList(String[] strParameter) convert a string array to liststatic intconvertStringToInt(String strParameter) convert a string to intstatic Integer[]convertStringToInt(String[] listToConvert) Convert an array of Strings into an array of Integersstatic Timestampreturn current Timestampstatic fr.paris.lutece.portal.service.plugin.PluginGet the workflow pluginstatic fr.paris.lutece.util.ReferenceListgetRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, String strLabelEmptyChoice) return a referenceListstatic fr.paris.lutece.util.ReferenceListgetRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, Locale locale) return a referenceListstatic StringReturns a copy of the string , with leading and trailing whitespace omitted.
-
Field Details
-
CONSTANT_WHERE
- See Also:
-
CONSTANT_AND
- See Also:
-
CONSTANT_ID_NULL
public static final int CONSTANT_ID_NULL- See Also:
-
EMPTY_STRING
- See Also:
-
PROPERTY_SELECT_EMPTY_CHOICE
- See Also:
-
CONSTANT_ACTION_MODIFY_WORKFLOW
- See Also:
-
MESSAGE_ERROR_INVALID_SECURITY_TOKEN
- See Also:
-
-
Method Details
-
getCurrentTimestamp
return current Timestamp- Returns:
- return current Timestamp
-
addHeaderResponse
public static void addHeaderResponse(jakarta.servlet.http.HttpServletResponse response, String strFileName) write the http header in the response- Parameters:
response- the http responsestrFileName- the name of the file who must insert in the response
-
convertStringToInt
convert a string to int- Parameters:
strParameter- the string parameter to convert- Returns:
- the conversion
-
convertStringArrayToList
convert a string array to list- Parameters:
strParameter- the string array parameter to convert- Returns:
- the conversion
-
trim
Returns a copy of the string , with leading and trailing whitespace omitted.- Parameters:
strParameter- the string parameter to convert- Returns:
- null if the strParameter is null other return with leading and trailing whitespace omitted.
-
buildRequestWithFilter
public static String buildRequestWithFilter(String strSelect, List<String> listStrFilter, String strOrder) Builds a query with filters placed in parameters- Parameters:
strSelect- the select of the querylistStrFilter- the list of filter to add in the querystrOrder- the order by of the query- Returns:
- a query
-
getRefList
public static fr.paris.lutece.util.ReferenceList getRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, Locale locale) return a referenceList- Parameters:
listReferenceItem- a list of referenc ItembWitdthEmptyChoice- true if a empty item must be insert in the reference listlocale- the locale- Returns:
- referencelist
-
getRefList
public static fr.paris.lutece.util.ReferenceList getRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, String strLabelEmptyChoice) return a referenceList- Parameters:
listReferenceItem- a list of referenc ItembWitdthEmptyChoice- true if a empty item must be insert in the reference liststrLabelEmptyChoice- the empty choice label- Returns:
- referencelist
-
getPlugin
public static fr.paris.lutece.portal.service.plugin.Plugin getPlugin()Get the workflow plugin- Returns:
- the workflow plugin
-
convertStringToInt
Convert an array of Strings into an array of Integers- Parameters:
listToConvert- the list to convert- Returns:
- an array of Integers
-