Interface IAttribute
-
- All Known Implementing Classes:
AbstractAttribute,AttributeComboBox,AttributeText
public interface IAttributeIAttribute
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAnonymize()Get the anonymize status of the attributeAttributeTypegetAttributeType()Get attribute typejava.lang.StringgetHelpMessage()Get help MessageintgetIdAttribute()Get ID Attributejava.util.List<AttributeField>getListAttributeFields()Get list fieldsfr.paris.lutece.portal.service.plugin.PlugingetPlugin()Get pluginintgetPosition()Get positionjava.lang.StringgetPropertyCreatePageTitle()Get page title for create pagejava.lang.StringgetPropertyModifyPageTitle()Get page title for modify pagejava.lang.StringgetTemplateCreateAttribute()Get the template create an attributejava.lang.StringgetTemplateHtmlFormAttribute()Get the template html form attributejava.lang.StringgetTemplateHtmlFormSearchAttribute()Get the template html form search attributejava.lang.StringgetTemplateModifyAttribute()Get the template modify an attributejava.lang.StringgetTitle()Get titlejava.util.List<MyLuteceUserField>getUserFieldsData(java.lang.String[] values, int nIdUser)Get user fields objects from valuesjava.util.List<MyLuteceUserField>getUserFieldsData(javax.servlet.http.HttpServletRequest request, int nIdUser)Get the data of the user fieldsbooleanisAnonymizable()Get whether the attribute is anonymizable.booleanisMandatory()Get MandatorybooleanisShownInSearch()Check if the attribute is shown in searchvoidsetAnonymize(boolean bAnonymize)Set the anonymize status of the attributejava.lang.StringsetAttributeData(javax.servlet.http.HttpServletRequest request)Set the data of the attributevoidsetAttributeType(AttributeType attributeType)Set attribute TypevoidsetAttributeType(java.util.Locale locale)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
-
-
-
Method Detail
-
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
java.util.List<AttributeField> getListAttributeFields()
Get list fields- Returns:
- list fields
-
setListAttributeFields
void setListAttributeFields(java.util.List<AttributeField> listAttributeFields)
Set list fields- Parameters:
listAttributeFields- list fields
-
getTitle
java.lang.String getTitle()
Get title- Returns:
- title
-
setTitle
void setTitle(java.lang.String strTitle)
Set title- Parameters:
strTitle- title
-
getHelpMessage
java.lang.String getHelpMessage()
Get help Message- Returns:
- help message
-
setHelpMessage
void setHelpMessage(java.lang.String strHelpMessage)
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
void setAttributeType(AttributeType attributeType)
Set attribute Type- Parameters:
attributeType- attribute type
-
getPlugin
fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Get plugin- Returns:
- plugin
-
setPlugin
void setPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set plugin- Parameters:
plugin- plugin
-
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.
-
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
-
getUserFieldsData
java.util.List<MyLuteceUserField> getUserFieldsData(javax.servlet.http.HttpServletRequest request, int nIdUser)
Get the data of the user fields- Parameters:
request- HttpServletRequestnIdUser- Id of the user- Returns:
- user field data
-
setAttributeType
void setAttributeType(java.util.Locale locale)
Set attribute type- Parameters:
locale- locale
-
getPropertyCreatePageTitle
java.lang.String getPropertyCreatePageTitle()
Get page title for create page- Returns:
- page title
-
getPropertyModifyPageTitle
java.lang.String getPropertyModifyPageTitle()
Get page title for modify page- Returns:
- page title
-
getTemplateCreateAttribute
java.lang.String getTemplateCreateAttribute()
Get the template create an attribute- Returns:
- The URL of the template
-
getTemplateModifyAttribute
java.lang.String getTemplateModifyAttribute()
Get the template modify an attribute- Returns:
- The URL of the template
-
getTemplateHtmlFormAttribute
java.lang.String getTemplateHtmlFormAttribute()
Get the template html form attribute- Returns:
- the template
-
getTemplateHtmlFormSearchAttribute
java.lang.String getTemplateHtmlFormSearchAttribute()
Get the template html form search attribute- Returns:
- the template
-
setAttributeData
java.lang.String setAttributeData(javax.servlet.http.HttpServletRequest request)
Set the data of the attribute- Parameters:
request- HttpServletRequest- Returns:
- null if there are no errors
-
isAnonymizable
boolean isAnonymizable()
Get whether the attribute is anonymizable.- Returns:
- True if the attribute can be anonymized, false otherwise.
-
getUserFieldsData
java.util.List<MyLuteceUserField> getUserFieldsData(java.lang.String[] values, int nIdUser)
Get user fields objects from values- Parameters:
values- The values of user fields. May contain either the value of the user field or its titlenIdUser- The id of the user- Returns:
- The user fields
-
-