Class AbstractAttribute
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
-
- All Implemented Interfaces:
IAttribute
- Direct Known Subclasses:
AttributeComboBox,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.util.List<MyLuteceUserField> listDefaultValues)Get Html formjava.lang.StringgetHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, java.util.Locale locale)Get Html formintgetIdAttribute()Get ID Attributejava.util.List<AttributeField>getListAttributeFields()Get list fieldsfr.paris.lutece.portal.service.plugin.PlugingetPlugin()Get pluginintgetPosition()Get positionjava.lang.StringgetTitle()Get titlejava.util.List<MyLuteceUserField>getUserFieldsData(javax.servlet.http.HttpServletRequest request, int nIdUser)Get the data of the user fieldsbooleanisMandatory()Get MandatorybooleanisShownInSearch()Check if the attribute is shown in searchvoidsetAnonymize(boolean bAnonymize)Set the anonymize status of the attributevoidsetAttributeType(AttributeType attributeType)Set attribute TypevoidsetHelpMessage(java.lang.String strHelpMessage)Set help messagevoidsetIdAttribute(int nIdAttribute)Set ID AttributevoidsetListAttributeFields(java.util.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 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.plugins.mylutece.business.attribute.IAttribute
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, 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
-
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.util.List<MyLuteceUserField> listDefaultValues)Get Html form- Parameters:
locale- localelistDefaultValues- Default values- Returns:
- html form
-
getHtmlFormSearchAttribute
public java.lang.String getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, java.util.Locale locale)
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 java.util.List<MyLuteceUserField> getUserFieldsData(javax.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
-
-