Class AbstractAttribute

    • 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
      • 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
      • 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
      • getUserFieldsData

        public java.util.List<MyLuteceUserField> getUserFieldsData​(javax.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