Class AbstractAttribute
java.lang.Object
fr.paris.lutece.portal.business.user.attribute.AbstractAttribute
- All Implemented Interfaces:
IAttribute
- Direct Known Subclasses:
AttributeCheckBox,AttributeComboBox,AttributeImage,AttributeRadioButton,AttributeText
Attribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the anonymize status of the attributeGet attribute typeGet help MessagegetHtmlFormAttribute(Locale locale) Get Html formgetHtmlFormAttribute(Locale locale, Object listDefaultValues) Get Html formgetHtmlFormSearchAttribute(AdminUserFieldFilter auFieldFilter, Locale locale) Get Html formgetHtmlValue(Locale locale, AdminUserField userField) Get Html valueintGet ID AttributeGet list fieldsGet pluginintGet positiongetTitle()Get titlebooleanCheck if it is an attribute imagebooleanCheck if the attribute is to be shown in linebooleanGet MandatorybooleanCheck if the attribute is shown in result listbooleanCheck if the attribute is shown in searchvoidsetAnonymize(boolean bAnonymize) Set the anonymize status of the attributevoidsetAttributeImage(boolean bIsAttributeImage) Set the attribute as an attribute imagevoidsetAttributeType(AttributeType attributeType) Set attribute TypevoidsetFieldInLine(boolean bIsFieldInLine) Set isFieldInLinevoidsetHelpMessage(String strHelpMessage) Set help messagevoidsetIdAttribute(int nIdAttribute) Set ID AttributevoidsetListAttributeFields(List<AttributeField> listAttributeFields) Set list fieldsvoidsetMandatory(boolean bMandatory) Set mandatoryvoidSet pluginvoidsetPosition(int nPosition) Set positionvoidsetShownInResultList(boolean bIsShownInResultList) Set isShownInResultListvoidsetShownInSearch(boolean bIsShownInSearch) Set isShownInSearchvoidSet titleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.business.user.attribute.IAttribute
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, getTemplateHtmlValue, getTemplateModifyAttribute, getUserFieldsData, isAnonymizable, setAttributeData, setAttributeType
-
Constructor Details
-
AbstractAttribute
public AbstractAttribute()Constructor
-
-
Method Details
-
getIdAttribute
public int getIdAttribute()Get ID Attribute- Specified by:
getIdAttributein interfaceIAttribute- Returns:
- ID attribute
-
setIdAttribute
public void setIdAttribute(int nIdAttribute) Set ID Attribute- Specified by:
setIdAttributein interfaceIAttribute- Parameters:
nIdAttribute- ID Attribute
-
isMandatory
public boolean isMandatory()Get Mandatory- Specified by:
isMandatoryin interfaceIAttribute- Returns:
- true if it's mandatory, false otherwise
-
setMandatory
public void setMandatory(boolean bMandatory) Set mandatory- Specified by:
setMandatoryin interfaceIAttribute- Parameters:
bMandatory- true if it's mandatory, false otherwise
-
getListAttributeFields
Get list fields- Specified by:
getListAttributeFieldsin interfaceIAttribute- Returns:
- list fields
-
setListAttributeFields
Set list fields- Specified by:
setListAttributeFieldsin interfaceIAttribute- Parameters:
listAttributeFields- list fields
-
getTitle
Get title- Specified by:
getTitlein interfaceIAttribute- Returns:
- title
-
setTitle
Set title- Specified by:
setTitlein interfaceIAttribute- Parameters:
strTitle- title
-
getHelpMessage
Get help Message- Specified by:
getHelpMessagein interfaceIAttribute- Returns:
- help message
-
setHelpMessage
Set help message- Specified by:
setHelpMessagein interfaceIAttribute- Parameters:
strHelpMessage- help message
-
getPosition
public int getPosition()Get position- Specified by:
getPositionin interfaceIAttribute- Returns:
- position
-
setPosition
public void setPosition(int nPosition) Set position- Specified by:
setPositionin interfaceIAttribute- Parameters:
nPosition- position
-
getAttributeType
Get attribute type- Specified by:
getAttributeTypein interfaceIAttribute- Returns:
- attribute type
-
setAttributeType
Set attribute Type- Specified by:
setAttributeTypein interfaceIAttribute- Parameters:
attributeType- attribute type
-
getAnonymize
public boolean getAnonymize()Get the anonymize status of the attribute- Specified by:
getAnonymizein interfaceIAttribute- Returns:
- True if the attribute should be anonymize, false otherwise.
-
setAnonymize
public void setAnonymize(boolean bAnonymize) Set the anonymize status of the attribute- Specified by:
setAnonymizein interfaceIAttribute- Parameters:
bAnonymize- New anonymize status. True if the attribute should be anonymize, false otherwise.
-
getHtmlFormAttribute
Get Html form- Parameters:
locale- locale- Returns:
- html form
-
getHtmlFormAttribute
Get Html form- Parameters:
locale- localelistDefaultValues- the list of default values- Returns:
- html form
-
getHtmlFormSearchAttribute
Get Html form- Parameters:
auFieldFilter- The admin user field filterlocale- locale- Returns:
- html form
-
getHtmlValue
Get Html value- Parameters:
locale- LocaleuserField- User field- Returns:
- the html
-
getPlugin
Get plugin- Specified by:
getPluginin interfaceIAttribute- Returns:
- plugin
-
setPlugin
Set plugin- Specified by:
setPluginin interfaceIAttribute- Parameters:
plugin- plugin
-
isShownInSearch
public boolean isShownInSearch()Check if the attribute is shown in search- Specified by:
isShownInSearchin interfaceIAttribute- Returns:
- true if it is, false otherwise
-
setShownInSearch
public void setShownInSearch(boolean bIsShownInSearch) Set isShownInSearch- Specified by:
setShownInSearchin interfaceIAttribute- Parameters:
bIsShownInSearch- shown in search
-
isFieldInLine
public boolean isFieldInLine()Check if the attribute is to be shown in line- Specified by:
isFieldInLinein interfaceIAttribute- Returns:
- true if it is shown in line, false otherwise
-
setFieldInLine
public void setFieldInLine(boolean bIsFieldInLine) Set isFieldInLine- Specified by:
setFieldInLinein interfaceIAttribute- Parameters:
bIsFieldInLine- shown in line
-
isAttributeImage
public boolean isAttributeImage()Check if it is an attribute image- Specified by:
isAttributeImagein interfaceIAttribute- Returns:
- true if it is, false otherwise
-
setAttributeImage
public void setAttributeImage(boolean bIsAttributeImage) Set the attribute as an attribute image- Specified by:
setAttributeImagein interfaceIAttribute- Parameters:
bIsAttributeImage- true if it is an image, false otherwise
-
isShownInResultList
public boolean isShownInResultList()Check if the attribute is shown in result list- Specified by:
isShownInResultListin interfaceIAttribute- Returns:
- true if it is, false otherwise
-
setShownInResultList
public void setShownInResultList(boolean bIsShownInResultList) Set isShownInResultList- Specified by:
setShownInResultListin interfaceIAttribute- Parameters:
bIsShownInResultList- shown in result list
-