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

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

public abstract class AbstractAttribute
extends java.lang.Object
implements IAttribute

Attribute


Field Summary
protected  AttributeType _attributeType
           
protected  boolean _bAnonymize
           
protected  boolean _bIsShownInSearch
           
protected  boolean _bMandatory
           
protected  java.util.List<AttributeField> _listAttributeFields
           
protected  int _nIdAttribute
           
protected  int _nPosition
           
protected  fr.paris.lutece.portal.service.plugin.Plugin _plugin
           
protected  java.lang.String _strHelpMessage
           
protected  java.lang.String _strTitle
           
 
Constructor Summary
AbstractAttribute()
          Constructor
 
Method Summary
 boolean getAnonymize()
          Get the anonymize status of the attribute
 AttributeType getAttributeType()
          Get attribute type
 java.lang.String getHelpMessage()
          Get help Message
 java.lang.String getHtmlFormAttribute(java.util.Locale locale)
          Get Html form
 java.lang.String getHtmlFormAttribute(java.util.Locale locale, java.util.List<MyLuteceUserField> listDefaultValues)
          Get Html form
 java.lang.String getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, java.util.Locale locale)
          Get Html form
 int getIdAttribute()
          Get ID Attribute
 java.util.List<AttributeField> getListAttributeFields()
          Get list fields
 fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
          Get plugin
 int getPosition()
          Get position
 java.lang.String getTitle()
          Get title
 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(java.lang.String strHelpMessage)
          Set help message
 void setIdAttribute(int nIdAttribute)
          Set ID Attribute
 void setListAttributeFields(java.util.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(java.lang.String strTitle)
          Set title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.mylutece.business.attribute.IAttribute
getPropertyCreatePageTitle, getPropertyModifyPageTitle, getTemplateCreateAttribute, getTemplateHtmlFormAttribute, getTemplateHtmlFormSearchAttribute, getTemplateModifyAttribute, getUserFieldsData, isAnonymizable, setAttributeData, setAttributeType
 

Field Detail

_nIdAttribute

protected int _nIdAttribute

_bMandatory

protected boolean _bMandatory

_strTitle

protected java.lang.String _strTitle

_strHelpMessage

protected java.lang.String _strHelpMessage

_nPosition

protected int _nPosition

_attributeType

protected AttributeType _attributeType

_listAttributeFields

protected java.util.List<AttributeField> _listAttributeFields

_plugin

protected fr.paris.lutece.portal.service.plugin.Plugin _plugin

_bIsShownInSearch

protected boolean _bIsShownInSearch

_bAnonymize

protected boolean _bAnonymize
Constructor Detail

AbstractAttribute

public AbstractAttribute()
Constructor

Method Detail

getIdAttribute

public int getIdAttribute()
Get ID Attribute

Specified by:
getIdAttribute in interface IAttribute
Returns:
ID attribute

setIdAttribute

public void setIdAttribute(int nIdAttribute)
Set ID Attribute

Specified by:
setIdAttribute in interface IAttribute
Parameters:
nIdAttribute - ID Attribute

isMandatory

public boolean isMandatory()
Get Mandatory

Specified by:
isMandatory in interface IAttribute
Returns:
true if it's mandatory, false otherwise

setMandatory

public void setMandatory(boolean bMandatory)
Set mandatory

Specified by:
setMandatory in interface IAttribute
Parameters:
bMandatory - true if it's mandatory, false otherwise

getListAttributeFields

public java.util.List<AttributeField> getListAttributeFields()
Get list fields

Specified by:
getListAttributeFields in interface IAttribute
Returns:
list fields

setListAttributeFields

public void setListAttributeFields(java.util.List<AttributeField> listAttributeFields)
Set list fields

Specified by:
setListAttributeFields in interface IAttribute
Parameters:
listAttributeFields - list fields

getTitle

public java.lang.String getTitle()
Get title

Specified by:
getTitle in interface IAttribute
Returns:
title

setTitle

public void setTitle(java.lang.String strTitle)
Set title

Specified by:
setTitle in interface IAttribute
Parameters:
strTitle - title

getHelpMessage

public java.lang.String getHelpMessage()
Get help Message

Specified by:
getHelpMessage in interface IAttribute
Returns:
help message

setHelpMessage

public void setHelpMessage(java.lang.String strHelpMessage)
Set help message

Specified by:
setHelpMessage in interface IAttribute
Parameters:
strHelpMessage - help message

getPosition

public int getPosition()
Get position

Specified by:
getPosition in interface IAttribute
Returns:
position

setPosition

public void setPosition(int nPosition)
Set position

Specified by:
setPosition in interface IAttribute
Parameters:
nPosition - position

getAttributeType

public AttributeType getAttributeType()
Get attribute type

Specified by:
getAttributeType in interface IAttribute
Returns:
attribute type

setAttributeType

public void setAttributeType(AttributeType attributeType)
Set attribute Type

Specified by:
setAttributeType in interface IAttribute
Parameters:
attributeType - attribute type

getHtmlFormAttribute

public java.lang.String getHtmlFormAttribute(java.util.Locale locale)
Get Html form

Parameters:
locale - locale
Returns:
html form

getHtmlFormAttribute

public java.lang.String getHtmlFormAttribute(java.util.Locale locale,
                                             java.util.List<MyLuteceUserField> listDefaultValues)
Get Html form

Parameters:
locale - locale
listDefaultValues - Default values
Returns:
html form

getHtmlFormSearchAttribute

public java.lang.String getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter,
                                                   java.util.Locale locale)
Get Html form

Parameters:
auFieldFilter - Search filter
locale - locale
Returns:
html form

getPlugin

public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Get plugin

Specified by:
getPlugin in interface IAttribute
Returns:
plugin

setPlugin

public void setPlugin(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set plugin

Specified by:
setPlugin in interface IAttribute
Parameters:
plugin - plugin

getAnonymize

public boolean getAnonymize()
Get the anonymize status of the attribute

Specified by:
getAnonymize in interface IAttribute
Returns:
True if the attribute should be anonymize, false otherwise.

setAnonymize

public void setAnonymize(boolean bAnonymize)
Set the anonymize status of the attribute

Specified by:
setAnonymize in interface IAttribute
Parameters:
bAnonymize - New anonymize status. True if the attribute should be anonymize, false otherwise.

isShownInSearch

public boolean isShownInSearch()
Check if the attribute is shown in search

Specified by:
isShownInSearch in interface IAttribute
Returns:
true if it is, false otherwise

setShownInSearch

public void setShownInSearch(boolean bIsShownInSearch)
Set isShownInSearch

Specified by:
setShownInSearch in interface IAttribute
Parameters:
bIsShownInSearch - shown in search


Copyright © 2012 Mairie de Paris. All Rights Reserved.