Class AttributeComboBox
java.lang.Object
fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
fr.paris.lutece.plugins.mylutece.business.attribute.AttributeComboBox
- All Implemented Interfaces:
IAttribute
@ApplicationScoped
@Named("mylutece.myLuteceAttributeComboBox")
public class AttributeComboBox
extends AbstractAttribute
AttributeComboBox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet page title for create pageGet page title for modify pageGet the template create an attributeGet the template html form attributeGet the template html form search attributeGet the template modify an attributegetUserFieldsData(String[] values, int nIdUser) Get user fields objects from valuesbooleanGet whether the attribute is anonymizable.setAttributeData(jakarta.servlet.http.HttpServletRequest request) Set the data of the attributevoidsetAttributeType(Locale locale) Set attribute typeMethods inherited from class fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
getAnonymize, getAttributeType, getHelpMessage, getHtmlFormAttribute, getHtmlFormAttribute, getHtmlFormSearchAttribute, getIdAttribute, getListAttributeFields, getPlugin, getPosition, getTitle, getUserFieldsData, isMandatory, isShownInSearch, setAnonymize, setAttributeType, setHelpMessage, setIdAttribute, setListAttributeFields, setMandatory, setPlugin, setPosition, setShownInSearch, setTitle
-
Constructor Details
-
AttributeComboBox
public AttributeComboBox()Constructor
-
-
Method Details
-
getTemplateCreateAttribute
Get the template create an attribute- Returns:
- The URL of the template
-
getTemplateModifyAttribute
Get the template modify an attribute- Returns:
- The URL of the template
-
getTemplateHtmlFormAttribute
Get the template html form attribute- Returns:
- the template
-
getTemplateHtmlFormSearchAttribute
Get the template html form search attribute- Returns:
- the template
-
getPropertyCreatePageTitle
Get page title for create page- Returns:
- page title
-
getPropertyModifyPageTitle
Get page title for modify page- Returns:
- page title
-
setAttributeData
Set the data of the attribute- Parameters:
request- HttpServletRequest- Returns:
- null if there are no errors
-
setAttributeType
Set attribute type- Parameters:
locale- locale
-
getUserFieldsData
Get user fields objects from values- Parameters:
values- The values of user fields. May contain either the value of the user field or its titlenIdUser- The id of the user- Returns:
- The user fields
-
isAnonymizable
public boolean isAnonymizable()Get whether the attribute is anonymizable.- Returns:
- True if the attribute can be anonymized, false otherwise.
-