public final class WorkflowUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONSTANT_AND |
static int |
CONSTANT_ID_NULL |
static String |
CONSTANT_WHERE |
static String |
EMPTY_STRING |
static String |
PROPERTY_SELECT_EMPTY_CHOICE |
Modifier and Type | Method and Description |
---|---|
static void |
addHeaderResponse(javax.servlet.http.HttpServletResponse response,
String strFileName)
write the http header in the response
|
static String |
buildRequestWithFilter(String strSelect,
List<String> listStrFilter,
String strOrder)
Builds a query with filters placed in parameters
|
static int |
convertStringToInt(String strParameter)
convert a string to int
|
static Integer[] |
convertStringToInt(String[] listToConvert)
Convert an array of Strings into an array of Integers
|
static Timestamp |
getCurrentTimestamp()
return current Timestamp
|
static fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin()
Get the workflow plugin
|
static fr.paris.lutece.util.ReferenceList |
getRefList(Collection listReferenceItem,
boolean bWitdthEmptyChoice,
Locale locale)
return a referenceList
|
static fr.paris.lutece.util.ReferenceList |
getRefList(Collection listReferenceItem,
boolean bWitdthEmptyChoice,
String strLabelEmptyChoice)
return a referenceList
|
static String |
trim(String strParameter)
Returns a copy of the string , with leading and trailing whitespace omitted.
|
public static final String CONSTANT_WHERE
public static final String CONSTANT_AND
public static final int CONSTANT_ID_NULL
public static final String EMPTY_STRING
public static final String PROPERTY_SELECT_EMPTY_CHOICE
public static Timestamp getCurrentTimestamp()
public static void addHeaderResponse(javax.servlet.http.HttpServletResponse response, String strFileName)
response
- the http responsestrFileName
- the name of the file who must insert in the responsepublic static int convertStringToInt(String strParameter)
strParameter
- the string parameter to convertpublic static String trim(String strParameter)
strParameter
- the string parameter to convertpublic static String buildRequestWithFilter(String strSelect, List<String> listStrFilter, String strOrder)
strSelect
- the select of the querylistStrFilter
- the list of filter to add in the querystrOrder
- the order by of the querypublic static fr.paris.lutece.util.ReferenceList getRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, Locale locale)
listReferenceItem
- a list of referenc ItembWitdthEmptyChoice
- true if a empty item must be insert in the reference listlocale
- the localepublic static fr.paris.lutece.util.ReferenceList getRefList(Collection listReferenceItem, boolean bWitdthEmptyChoice, String strLabelEmptyChoice)
listReferenceItem
- a list of referenc ItembWitdthEmptyChoice
- true if a empty item must be insert in the reference liststrLabelEmptyChoice
- the empty choice labelpublic static fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Copyright © 2020 City of Paris. All rights reserved.