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,
Object listDefaultValues)
Get Html form
|
String |
getHtmlFormSearchAttribute(AdminUserFieldFilter auFieldFilter,
Locale locale)
Get Html form
|
String |
getHtmlValue(Locale locale,
AdminUserField userField)
Get Html value
|
int |
getIdAttribute()
Get ID Attribute
|
List<AttributeField> |
getListAttributeFields()
Get list fields
|
Plugin |
getPlugin()
Get plugin
|
int |
getPosition()
Get position
|
String |
getTitle()
Get title
|
boolean |
isAttributeImage()
Check if it is an attribute image
|
boolean |
isFieldInLine()
Check if the attribute is to be shown in line
|
boolean |
isMandatory()
Get Mandatory
|
boolean |
isShownInResultList()
Check if the attribute is shown in result list
|
boolean |
isShownInSearch()
Check if the attribute is shown in search
|
void |
setAnonymize(boolean bAnonymize)
Set the anonymize status of the attribute
|
void |
setAttributeImage(boolean bIsAttributeImage)
Set the attribute as an attribute image
|
void |
setAttributeType(AttributeType attributeType)
Set attribute Type
|
void |
setFieldInLine(boolean bIsFieldInLine)
Set isFieldInLine
|
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(Plugin plugin)
Set plugin
|
void |
setPosition(int nPosition)
Set position
|
void |
setShownInResultList(boolean bIsShownInResultList)
Set isShownInResultList
|
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, getTemplateHtmlValue, 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 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 String getHtmlFormAttribute(Locale locale)
locale
- localepublic String getHtmlFormAttribute(Locale locale, Object listDefaultValues)
locale
- localelistDefaultValues
- the list of default valuespublic String getHtmlFormSearchAttribute(AdminUserFieldFilter auFieldFilter, Locale locale)
auFieldFilter
- The admin user field filterlocale
- localepublic String getHtmlValue(Locale locale, AdminUserField userField)
locale
- LocaleuserField
- User fieldpublic Plugin getPlugin()
getPlugin
in interface IAttribute
public void setPlugin(Plugin plugin)
setPlugin
in interface IAttribute
plugin
- pluginpublic boolean isShownInSearch()
isShownInSearch
in interface IAttribute
public void setShownInSearch(boolean bIsShownInSearch)
setShownInSearch
in interface IAttribute
bIsShownInSearch
- shown in searchpublic boolean isFieldInLine()
isFieldInLine
in interface IAttribute
public void setFieldInLine(boolean bIsFieldInLine)
setFieldInLine
in interface IAttribute
bIsFieldInLine
- shown in linepublic boolean isAttributeImage()
isAttributeImage
in interface IAttribute
public void setAttributeImage(boolean bIsAttributeImage)
setAttributeImage
in interface IAttribute
bIsAttributeImage
- true if it is an image, false otherwisepublic boolean isShownInResultList()
isShownInResultList
in interface IAttribute
public void setShownInResultList(boolean bIsShownInResultList)
setShownInResultList
in interface IAttribute
bIsShownInResultList
- shown in result listCopyright © 2020 City of Paris. All rights reserved.