public abstract class AbstractAttribute extends Object implements IAttribute
Constructor and Description |
---|
AbstractAttribute()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAnonymize()
Get the anonymize status of the attribute
|
AttributeType |
getAttributeType()
Get attribute type
|
String |
getHelpMessage()
Get help Message
|
String |
getHtmlFormAttribute(Locale locale)
Get Html form
|
String |
getHtmlFormAttribute(Locale locale,
List<MyLuteceUserField> listDefaultValues)
Get Html form
|
String |
getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter,
Locale locale)
Get Html form
|
int |
getIdAttribute()
Get ID Attribute
|
List<AttributeField> |
getListAttributeFields()
Get list fields
|
fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin()
Get plugin
|
int |
getPosition()
Get position
|
String |
getTitle()
Get title
|
List<MyLuteceUserField> |
getUserFieldsData(javax.servlet.http.HttpServletRequest request,
int nIdUser)
Get the data of the user fields
|
boolean |
isMandatory()
Get Mandatory
|
boolean |
isShownInSearch()
Check if the attribute is shown in search
|
void |
setAnonymize(boolean bAnonymize)
Set the anonymize status of the attribute
|
void |
setAttributeType(AttributeType attributeType)
Set attribute Type
|
void |
setHelpMessage(String strHelpMessage)
Set help message
|
void |
setIdAttribute(int nIdAttribute)
Set ID Attribute
|
void |
setListAttributeFields(List<AttributeField> listAttributeFields)
Set list fields
|
void |
setMandatory(boolean bMandatory)
Set mandatory
|
void |
setPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set plugin
|
void |
setPosition(int nPosition)
Set position
|
void |
setShownInSearch(boolean bIsShownInSearch)
Set isShownInSearch
|
void |
setTitle(String strTitle)
Set title
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, getTemplateModifyAttribute, getUserFieldsData, isAnonymizable, setAttributeData, setAttributeType
public int getIdAttribute()
getIdAttribute
in interface IAttribute
public void setIdAttribute(int nIdAttribute)
setIdAttribute
in interface IAttribute
nIdAttribute
- ID Attributepublic boolean isMandatory()
isMandatory
in interface IAttribute
public void setMandatory(boolean bMandatory)
setMandatory
in interface IAttribute
bMandatory
- true if it's mandatory, false otherwisepublic List<AttributeField> getListAttributeFields()
getListAttributeFields
in interface IAttribute
public void setListAttributeFields(List<AttributeField> listAttributeFields)
setListAttributeFields
in interface IAttribute
listAttributeFields
- list fieldspublic String getTitle()
getTitle
in interface IAttribute
public void setTitle(String strTitle)
setTitle
in interface IAttribute
strTitle
- titlepublic String getHelpMessage()
getHelpMessage
in interface IAttribute
public void setHelpMessage(String strHelpMessage)
setHelpMessage
in interface IAttribute
strHelpMessage
- help messagepublic int getPosition()
getPosition
in interface IAttribute
public void setPosition(int nPosition)
setPosition
in interface IAttribute
nPosition
- positionpublic AttributeType getAttributeType()
getAttributeType
in interface IAttribute
public void setAttributeType(AttributeType attributeType)
setAttributeType
in interface IAttribute
attributeType
- attribute typepublic String getHtmlFormAttribute(Locale locale)
locale
- localepublic String getHtmlFormAttribute(Locale locale, List<MyLuteceUserField> listDefaultValues)
locale
- localelistDefaultValues
- Default valuespublic String getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, Locale locale)
auFieldFilter
- Search filterlocale
- localepublic fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
getPlugin
in interface IAttribute
public void setPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin)
setPlugin
in interface IAttribute
plugin
- pluginpublic boolean getAnonymize()
getAnonymize
in interface IAttribute
public void setAnonymize(boolean bAnonymize)
setAnonymize
in interface IAttribute
bAnonymize
- New anonymize status. True if the attribute should be
anonymize, false otherwise.public boolean isShownInSearch()
isShownInSearch
in interface IAttribute
public void setShownInSearch(boolean bIsShownInSearch)
setShownInSearch
in interface IAttribute
bIsShownInSearch
- shown in searchpublic List<MyLuteceUserField> getUserFieldsData(javax.servlet.http.HttpServletRequest request, int nIdUser)
getUserFieldsData
in interface IAttribute
request
- HttpServletRequestnIdUser
- Id of the userCopyright © 2021 City of Paris. All rights reserved.