Class AbstractAttribute
java.lang.Object
fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
- All Implemented Interfaces:
IAttribute
- Direct Known Subclasses:
AttributeComboBox,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, List<MyLuteceUserField> listDefaultValues) Get Html formgetHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, Locale locale) Get Html formintGet ID AttributeGet list fieldsfr.paris.lutece.portal.service.plugin.PluginGet pluginintGet positiongetTitle()Get titlegetUserFieldsData(jakarta.servlet.http.HttpServletRequest request, int nIdUser) Get the data of the user fieldsbooleanGet MandatorybooleanCheck if the attribute is shown in searchvoidsetAnonymize(boolean bAnonymize) Set the anonymize status of the attributevoidsetAttributeType(AttributeType attributeType) Set attribute TypevoidsetHelpMessage(String strHelpMessage) Set help messagevoidsetIdAttribute(int nIdAttribute) Set ID AttributevoidsetListAttributeFields(List<AttributeField> listAttributeFields) Set list fieldsvoidsetMandatory(boolean bMandatory) Set mandatoryvoidsetPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin) Set pluginvoidsetPosition(int nPosition) Set positionvoidsetShownInSearch(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.plugins.mylutece.business.attribute.IAttribute
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, 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
-
getHtmlFormAttribute
Get Html form- Parameters:
locale- locale- Returns:
- html form
-
getHtmlFormAttribute
Get Html form- Parameters:
locale- localelistDefaultValues- Default values- Returns:
- html form
-
getHtmlFormSearchAttribute
Get Html form- Parameters:
auFieldFilter- Search filterlocale- locale- Returns:
- html form
-
getPlugin
public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()Get plugin- Specified by:
getPluginin interfaceIAttribute- Returns:
- plugin
-
setPlugin
public void setPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin) Set plugin- Specified by:
setPluginin interfaceIAttribute- Parameters:
plugin- plugin
-
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.
-
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
-
getUserFieldsData
public List<MyLuteceUserField> getUserFieldsData(jakarta.servlet.http.HttpServletRequest request, int nIdUser) Get the data of the user fields- Specified by:
getUserFieldsDatain interfaceIAttribute- Parameters:
request- HttpServletRequestnIdUser- Id of the user- Returns:
- user field data
-