fr.paris.lutece.plugins.mylutece.business.attribute
Class AttributeComboBox

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
      extended by fr.paris.lutece.plugins.mylutece.business.attribute.AttributeComboBox
All Implemented Interfaces:
IAttribute

public class AttributeComboBox
extends AbstractAttribute

AttributeComboBox


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
_attributeType, _bAnonymize, _bIsShownInSearch, _bMandatory, _listAttributeFields, _nIdAttribute, _nPosition, _plugin, _strHelpMessage, _strTitle
 
Constructor Summary
AttributeComboBox()
          Constructor
 
Method Summary
 String getPropertyCreatePageTitle()
          Get page title for create page
 String getPropertyModifyPageTitle()
          Get page title for modify page
 String getTemplateCreateAttribute()
          Get the template create an attribute
 String getTemplateHtmlFormAttribute()
          Get the template html form attribute
 String getTemplateHtmlFormSearchAttribute()
          Get the template html form search attribute
 String getTemplateModifyAttribute()
          Get the template modify an attribute
 List<MyLuteceUserField> getUserFieldsData(String[] values, int nIdUser)
          Get user fields objects from values
 boolean isAnonymizable()
          Get whether the attribute is anonymizable.
 String setAttributeData(javax.servlet.http.HttpServletRequest request)
          Set the data of the attribute
 void setAttributeType(Locale locale)
          Set attribute type
 
Methods inherited from class fr.paris.lutece.plugins.mylutece.business.attribute.AbstractAttribute
getAnonymize, getAttributeType, getHelpMessage, getHtmlFormAttribute, getHtmlFormAttribute, getHtmlFormSearchAttribute, getIdAttribute, getListAttributeFields, getPlugin, getPosition, getTitle, getUserFieldsData, isMandatory, isShownInSearch, setAnonymize, setAttributeType, setHelpMessage, setIdAttribute, setListAttributeFields, setMandatory, setPlugin, setPosition, setShownInSearch, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeComboBox

public AttributeComboBox()
Constructor

Method Detail

getTemplateCreateAttribute

public String getTemplateCreateAttribute()
Get the template create an attribute

Returns:
The URL of the template

getTemplateModifyAttribute

public String getTemplateModifyAttribute()
Get the template modify an attribute

Returns:
The URL of the template

getTemplateHtmlFormAttribute

public String getTemplateHtmlFormAttribute()
Get the template html form attribute

Returns:
the template

getTemplateHtmlFormSearchAttribute

public String getTemplateHtmlFormSearchAttribute()
Get the template html form search attribute

Returns:
the template

getPropertyCreatePageTitle

public String getPropertyCreatePageTitle()
Get page title for create page

Returns:
page title

getPropertyModifyPageTitle

public String getPropertyModifyPageTitle()
Get page title for modify page

Returns:
page title

setAttributeData

public String setAttributeData(javax.servlet.http.HttpServletRequest request)
Set the data of the attribute

Parameters:
request - HttpServletRequest
Returns:
null if there are no errors

setAttributeType

public void setAttributeType(Locale locale)
Set attribute type

Parameters:
locale - locale

getUserFieldsData

public List<MyLuteceUserField> getUserFieldsData(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 title
nIdUser - The id of the user
Returns:
The user fields

isAnonymizable

public boolean isAnonymizable()
Get whether the attribute is anonymizable.

Returns:
True if the attribute can be anonymized, false otherwise.


Copyright © 2014 Mairie de Paris. All Rights Reserved.