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
      • 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.
      • 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.lang.Object listDefaultValues)
        Get Html form
        Parameters:
        locale - locale
        listDefaultValues - the list of default values
        Returns:
        html form
      • getHtmlFormSearchAttribute

        public java.lang.String getHtmlFormSearchAttribute​(AdminUserFieldFilter auFieldFilter,
                                                           java.util.Locale locale)
        Get Html form
        Parameters:
        auFieldFilter - The admin user field filter
        locale - locale
        Returns:
        html form
      • getHtmlValue

        public java.lang.String getHtmlValue​(java.util.Locale locale,
                                             AdminUserField userField)
        Get Html value
        Parameters:
        locale - Locale
        userField - User field
        Returns:
        the html
      • setPlugin

        public void setPlugin​(Plugin plugin)
        Set plugin
        Specified by:
        setPlugin in interface IAttribute
        Parameters:
        plugin - plugin
      • 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
      • isFieldInLine

        public boolean isFieldInLine()
        Check if the attribute is to be shown in line
        Specified by:
        isFieldInLine in interface IAttribute
        Returns:
        true if it is shown in line, false otherwise
      • setFieldInLine

        public void setFieldInLine​(boolean bIsFieldInLine)
        Set isFieldInLine
        Specified by:
        setFieldInLine in interface IAttribute
        Parameters:
        bIsFieldInLine - shown in line
      • isAttributeImage

        public boolean isAttributeImage()
        Check if it is an attribute image
        Specified by:
        isAttributeImage in interface IAttribute
        Returns:
        true if it is, false otherwise
      • setAttributeImage

        public void setAttributeImage​(boolean bIsAttributeImage)
        Set the attribute as an attribute image
        Specified by:
        setAttributeImage in interface IAttribute
        Parameters:
        bIsAttributeImage - true if it is an image, false otherwise
      • isShownInResultList

        public boolean isShownInResultList()
        Check if the attribute is shown in result list
        Specified by:
        isShownInResultList in interface IAttribute
        Returns:
        true if it is, false otherwise
      • setShownInResultList

        public void setShownInResultList​(boolean bIsShownInResultList)
        Set isShownInResultList
        Specified by:
        setShownInResultList in interface IAttribute
        Parameters:
        bIsShownInResultList - shown in result list