Interface IAttribute
- All Known Subinterfaces:
ISimpleValuesAttributes
- All Known Implementing Classes:
AbstractAttribute,AttributeCheckBox,AttributeComboBox,AttributeImage,AttributeRadioButton,AttributeText
public interface IAttribute
IAttribute
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the anonymize status of the attributeGet attribute typeGet help MessageintGet ID AttributeGet list fieldsGet pluginintGet positionGet page title for create pageGet page title for modify pageGet the template create an attributeGet the template html form attributeGet the template html form search attributeGet the template html for the value of the attributeGet the template modify an attributegetTitle()Get titlegetUserFieldsData(jakarta.servlet.http.HttpServletRequest request, AdminUser user) Get the data of the user fieldsbooleanGet whether the attribute is anonymizable.booleanCheck if it is an attribute imagebooleanCheck if the attribute is to be shown in linebooleanGet MandatorybooleanCheck if the attribute is shown in result listbooleanCheck if the attribute is shown in searchvoidsetAnonymize(boolean bAnonymize) Set the anonymize status of the attributesetAttributeData(jakarta.servlet.http.HttpServletRequest request) Set the data of the attributevoidsetAttributeImage(boolean bIsAttributeImage) Set the attribute as an attribute imagevoidsetAttributeType(AttributeType attributeType) Set attribute TypevoidsetAttributeType(Locale locale) Set attribute typevoidsetFieldInLine(boolean bIsFieldInLine) Set isFieldInLinevoidsetHelpMessage(String strHelpMessage) Set help messagevoidsetIdAttribute(int nIdAttribute) Set ID AttributevoidsetListAttributeFields(List<AttributeField> listAttributeFields) Set list fieldsvoidsetMandatory(boolean bMandatory) Set mandatoryvoidSet pluginvoidsetPosition(int nPosition) Set positionvoidsetShownInResultList(boolean bIsShownInResultList) Set isShownInResultListvoidsetShownInSearch(boolean bIsShownInSearch) Set isShownInSearchvoidSet title
-
Method Details
-
getIdAttribute
int getIdAttribute()Get ID Attribute- Returns:
- ID attribute
-
setIdAttribute
void setIdAttribute(int nIdAttribute) Set ID Attribute- Parameters:
nIdAttribute- ID Attribute
-
isMandatory
boolean isMandatory()Get Mandatory- Returns:
- true if it's mandatory, false otherwise
-
setMandatory
void setMandatory(boolean bMandatory) Set mandatory- Parameters:
bMandatory- true if it's mandatory, false otherwise
-
getListAttributeFields
List<AttributeField> getListAttributeFields()Get list fields- Returns:
- list fields
-
setListAttributeFields
Set list fields- Parameters:
listAttributeFields- list fields
-
getTitle
String getTitle()Get title- Returns:
- title
-
setTitle
Set title- Parameters:
strTitle- title
-
getHelpMessage
String getHelpMessage()Get help Message- Returns:
- help message
-
setHelpMessage
Set help message- Parameters:
strHelpMessage- help message
-
getPosition
int getPosition()Get position- Returns:
- position
-
setPosition
void setPosition(int nPosition) Set position- Parameters:
nPosition- position
-
getAttributeType
AttributeType getAttributeType()Get attribute type- Returns:
- attribute type
-
setAttributeType
Set attribute Type- Parameters:
attributeType- attribute type
-
getPlugin
Plugin getPlugin()Get plugin- Returns:
- plugin
-
setPlugin
Set plugin- Parameters:
plugin- plugin
-
isShownInSearch
boolean isShownInSearch()Check if the attribute is shown in search- Returns:
- true if it is, false otherwise
-
setShownInSearch
void setShownInSearch(boolean bIsShownInSearch) Set isShownInSearch- Parameters:
bIsShownInSearch- shown in search
-
isShownInResultList
boolean isShownInResultList()Check if the attribute is shown in result list- Returns:
- true if it is, false otherwise
-
setShownInResultList
void setShownInResultList(boolean bIsShownInResultList) Set isShownInResultList- Parameters:
bIsShownInResultList- shown in result list
-
isFieldInLine
boolean isFieldInLine()Check if the attribute is to be shown in line- Returns:
- true if it is shown in line, false otherwise
-
setFieldInLine
void setFieldInLine(boolean bIsFieldInLine) Set isFieldInLine- Parameters:
bIsFieldInLine- shown in line
-
getAnonymize
boolean getAnonymize()Get the anonymize status of the attribute- Returns:
- True if the attribute should be anonymize, false otherwise.
-
setAnonymize
void setAnonymize(boolean bAnonymize) Set the anonymize status of the attribute- Parameters:
bAnonymize- New anonymize status. True if the attribute should be anonymize, false otherwise.
-
getUserFieldsData
List<AdminUserField> getUserFieldsData(jakarta.servlet.http.HttpServletRequest request, AdminUser user) Get the data of the user fields- Parameters:
request- HttpServletRequestuser- user- Returns:
- user field data
-
setAttributeType
Set attribute type- Parameters:
locale- locale
-
getPropertyCreatePageTitle
String getPropertyCreatePageTitle()Get page title for create page- Returns:
- page title
-
getPropertyModifyPageTitle
String getPropertyModifyPageTitle()Get page title for modify page- Returns:
- page title
-
getTemplateCreateAttribute
String getTemplateCreateAttribute()Get the template create an attribute- Returns:
- The URL of the template
-
getTemplateModifyAttribute
String getTemplateModifyAttribute()Get the template modify an attribute- Returns:
- The URL of the template
-
getTemplateHtmlFormAttribute
String getTemplateHtmlFormAttribute()Get the template html form attribute- Returns:
- the template
-
getTemplateHtmlFormSearchAttribute
String getTemplateHtmlFormSearchAttribute()Get the template html form search attribute- Returns:
- the template
-
getTemplateHtmlValue
String getTemplateHtmlValue()Get the template html for the value of the attribute- Returns:
- the template
-
setAttributeData
Set the data of the attribute- Parameters:
request- HttpServletRequest- Returns:
- null if there are no errors
-
isAttributeImage
boolean isAttributeImage()Check if it is an attribute image- Returns:
- true if it is, false otherwise
-
setAttributeImage
void setAttributeImage(boolean bIsAttributeImage) Set the attribute as an attribute image- Parameters:
bIsAttributeImage- true if it is an image, false otherwise
-
isAnonymizable
boolean isAnonymizable()Get whether the attribute is anonymizable.- Returns:
- True if the attribute can be anonymized, false otherwise.
-