public final class GenericAttributesUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTANT_EQUAL
Equals constant
|
static int |
CONSTANT_ID_NULL
Value to represent a null id
|
static String |
CONSTANT_RESPONSE_VALUE_ANONYMIZED
Value for anonymized responses
|
| Modifier and Type | Method and Description |
|---|---|
static int |
convertStringToInt(String strParameter)
Convert a string to int
|
static Field |
createFieldFromReferenceItem(Entry entry,
fr.paris.lutece.plugins.referencelist.business.ReferenceItem item)
Create a Field from a
ReferenceItem |
static Field |
createOrUpdateField(Entry entry,
String strCode,
String strTitle,
String strValue)
Create or update the entry field identified by its code.
|
static Field |
findFieldByIdInTheList(int nIdField,
List<Field> listField)
return the field which key is specified in parameter
|
static Field |
findFieldByTitleInTheList(String strTitle,
List<Field> listFields)
Return the field which title is specified in parameter
|
static fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin()
Gets the generic attributes plugin
|
public static final String CONSTANT_EQUAL
public static final int CONSTANT_ID_NULL
public static final String CONSTANT_RESPONSE_VALUE_ANONYMIZED
public static Field findFieldByTitleInTheList(String strTitle, List<Field> listFields)
strTitle - the titlelistFields - the list of fieldspublic static Field findFieldByIdInTheList(int nIdField, List<Field> listField)
nIdField - the id of the field who is searchlistField - the list of fieldpublic static fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
public static int convertStringToInt(String strParameter)
strParameter - the string parameter to convertpublic static Field createOrUpdateField(Entry entry, String strCode, String strTitle, String strValue)
entry - strCode - strTitle - strValue - Copyright © 2021 City of Paris. All rights reserved.