Class AbstractAttribute

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

public abstract class AbstractAttribute extends Object implements IAttribute
Attribute
  • Constructor Details

    • AbstractAttribute

      public AbstractAttribute()
      Constructor
  • Method Details

    • 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 List<AttributeField> getListAttributeFields()
      Get list fields
      Specified by:
      getListAttributeFields in interface IAttribute
      Returns:
      list fields
    • setListAttributeFields

      public void setListAttributeFields(List<AttributeField> listAttributeFields)
      Set list fields
      Specified by:
      setListAttributeFields in interface IAttribute
      Parameters:
      listAttributeFields - list fields
    • getTitle

      public String getTitle()
      Get title
      Specified by:
      getTitle in interface IAttribute
      Returns:
      title
    • setTitle

      public void setTitle(String strTitle)
      Set title
      Specified by:
      setTitle in interface IAttribute
      Parameters:
      strTitle - title
    • getHelpMessage

      public String getHelpMessage()
      Get help Message
      Specified by:
      getHelpMessage in interface IAttribute
      Returns:
      help message
    • setHelpMessage

      public void setHelpMessage(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 String getHtmlFormAttribute(Locale locale)
      Get Html form
      Parameters:
      locale - locale
      Returns:
      html form
    • getHtmlFormAttribute

      public String getHtmlFormAttribute(Locale locale, List<MyLuteceUserField> listDefaultValues)
      Get Html form
      Parameters:
      locale - locale
      listDefaultValues - Default values
      Returns:
      html form
    • getHtmlFormSearchAttribute

      public String getHtmlFormSearchAttribute(MyLuteceUserFieldFilter auFieldFilter, 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
    • getUserFieldsData

      public List<MyLuteceUserField> getUserFieldsData(jakarta.servlet.http.HttpServletRequest request, int nIdUser)
      Get the data of the user fields
      Specified by:
      getUserFieldsData in interface IAttribute
      Parameters:
      request - HttpServletRequest
      nIdUser - Id of the user
      Returns:
      user field data