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
public abstract class AbstractAttribute extends java.lang.Object implements IAttribute
Attribute
-
-
Constructor Summary
Constructors Constructor Description AbstractAttribute()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAnonymize()Get the anonymize status of the attributeAttributeTypegetAttributeType()Get attribute typejava.lang.StringgetHelpMessage()Get help Messagejava.lang.StringgetHtmlFormAttribute(java.util.Locale locale)Get Html formjava.lang.StringgetHtmlFormAttribute(java.util.Locale locale, java.lang.Object listDefaultValues)Get Html formjava.lang.StringgetHtmlFormSearchAttribute(AdminUserFieldFilter auFieldFilter, java.util.Locale locale)Get Html formjava.lang.StringgetHtmlValue(java.util.Locale locale, AdminUserField userField)Get Html valueintgetIdAttribute()Get ID Attributejava.util.List<AttributeField>getListAttributeFields()Get list fieldsPlugingetPlugin()Get pluginintgetPosition()Get positionjava.lang.StringgetTitle()Get titlebooleanisAttributeImage()Check if it is an attribute imagebooleanisFieldInLine()Check if the attribute is to be shown in linebooleanisMandatory()Get MandatorybooleanisShownInResultList()Check if the attribute is shown in result listbooleanisShownInSearch()Check 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(java.lang.String strHelpMessage)Set help messagevoidsetIdAttribute(int nIdAttribute)Set ID AttributevoidsetListAttributeFields(java.util.List<AttributeField> listAttributeFields)Set list fieldsvoidsetMandatory(boolean bMandatory)Set mandatoryvoidsetPlugin(Plugin plugin)Set pluginvoidsetPosition(int nPosition)Set positionvoidsetShownInResultList(boolean bIsShownInResultList)Set isShownInResultListvoidsetShownInSearch(boolean bIsShownInSearch)Set isShownInSearchvoidsetTitle(java.lang.String strTitle)Set title-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.portal.business.user.attribute.IAttribute
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, getTemplateHtmlValue, getTemplateModifyAttribute, getUserFieldsData, isAnonymizable, setAttributeData, setAttributeType
-
-
-
-
Method Detail
-
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
public java.util.List<AttributeField> getListAttributeFields()
Get list fields- Specified by:
getListAttributeFieldsin interfaceIAttribute- Returns:
- list fields
-
setListAttributeFields
public void setListAttributeFields(java.util.List<AttributeField> listAttributeFields)
Set list fields- Specified by:
setListAttributeFieldsin interfaceIAttribute- Parameters:
listAttributeFields- list fields
-
getTitle
public java.lang.String getTitle()
Get title- Specified by:
getTitlein interfaceIAttribute- Returns:
- title
-
setTitle
public void setTitle(java.lang.String strTitle)
Set title- Specified by:
setTitlein interfaceIAttribute- Parameters:
strTitle- title
-
getHelpMessage
public java.lang.String getHelpMessage()
Get help Message- Specified by:
getHelpMessagein interfaceIAttribute- Returns:
- help message
-
setHelpMessage
public void setHelpMessage(java.lang.String strHelpMessage)
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
public AttributeType getAttributeType()
Get attribute type- Specified by:
getAttributeTypein interfaceIAttribute- Returns:
- attribute type
-
setAttributeType
public void setAttributeType(AttributeType attributeType)
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
public java.lang.String getHtmlFormAttribute(java.util.Locale locale)
Get Html form- Parameters:
locale- locale- Returns:
- html form
-
getHtmlFormAttribute
public java.lang.String getHtmlFormAttribute(java.util.Locale locale, java.lang.Object listDefaultValues)Get Html form- Parameters:
locale- localelistDefaultValues- the list of default values- Returns:
- html form
-
getHtmlFormSearchAttribute
public java.lang.String getHtmlFormSearchAttribute(AdminUserFieldFilter auFieldFilter, java.util.Locale locale)
Get Html form- Parameters:
auFieldFilter- The admin user field filterlocale- locale- Returns:
- html form
-
getHtmlValue
public java.lang.String getHtmlValue(java.util.Locale locale, AdminUserField userField)Get Html value- Parameters:
locale- LocaleuserField- User field- Returns:
- the html
-
getPlugin
public Plugin getPlugin()
Get plugin- Specified by:
getPluginin interfaceIAttribute- Returns:
- plugin
-
setPlugin
public void setPlugin(Plugin plugin)
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
-
-