Class Right

    • Constructor Detail

      • Right

        public Right()
    • Method Detail

      • setLocale

        public void setLocale​(Locale locale)
        Set the local used by this right
        Specified by:
        setLocale in interface Localizable
        Parameters:
        locale - the local to use
      • getId

        public String getId()
        Returns the identifier of this right
        Returns:
        the identifier of this right
      • setId

        public void setId​(String strId)
        Sets the identifier of the right to the specified string.
        Parameters:
        strId - the new identifier
      • getNameKey

        public String getNameKey()
        Returns the name of this right.
        Returns:
        the right name
      • getName

        public String getName()
        Returns the name of this right if the i18n key exists; else return the i18n key.
        Returns:
        the right name
      • setNameKey

        public void setNameKey​(String strNameKey)
        Sets the name of the right to the specified string.
        Parameters:
        strNameKey - the new name
      • getLevel

        public int getLevel()
        Returns the level of this right.
        Returns:
        the right level
      • setLevel

        public void setLevel​(int nLevel)
        Sets the level of the right to the specified int.
        Parameters:
        nLevel - the new level
      • getUrl

        public String getUrl()
        Returns the url of the jsp component which manages this right.
        Returns:
        the right url function
      • setUrl

        public void setUrl​(String strUrl)
        Sets the url of the right to the specified string.
        Parameters:
        strUrl - the new url
      • getDescriptionKey

        public String getDescriptionKey()
        Returns the description of this right.
        Returns:
        the right description
      • getDescription

        public String getDescription()
        Returns the description of this right if the i18nk exists; else return the key.
        Returns:
        the right description
      • setDescriptionKey

        public void setDescriptionKey​(String strDescriptionKey)
        Sets the description of the right to the specified string.
        Parameters:
        strDescriptionKey - the new description
      • getPluginName

        public String getPluginName()
        Returns the isUpdatable tag of this right ( 1 if the right is updatable, 0 if not ).
        Returns:
        the is_upda
      • setPluginName

        public void setPluginName​(String strPluginName)
        Sets the name of the right to the specified string.
        Parameters:
        strPluginName - the new name
      • getFeatureGroup

        public String getFeatureGroup()
        Returns the feature group of this right.
        Returns:
        the right feature group
        Since:
        1.1.1
      • setFeatureGroup

        public void setFeatureGroup​(String strFeatureGroup)
        Sets the feature group of the right to the specified string.
        Parameters:
        strFeatureGroup - the new feature group
        Since:
        1.1.1
      • getIconUrl

        public String getIconUrl()
        Returns the url of the icon associated to the right.
        Returns:
        the icon url
      • setIconUrl

        public void setIconUrl​(String strIconUrl)
        Sets the url of the icon associated to the right.
        Parameters:
        strIconUrl - the new url
      • getDocumentationUrl

        public String getDocumentationUrl()
        Returns the url of the documentation associated to the right.
        Returns:
        the _strDocumentationUrl
      • setDocumentationUrl

        public void setDocumentationUrl​(String strDocumentationUrl)
        Sets the url of the documentation associated to the right.
        Parameters:
        strDocumentationUrl - the _strDocumentationUrl to set
      • getOrder

        public int getOrder()
        Get the right order
        Returns:
        the _order
      • setOrder

        public void setOrder​(int nOrder)
        Set the right order in feature group
        Parameters:
        nOrder - the _order to set
      • isExternalFeature

        public boolean isExternalFeature()
        Get the external feature boolean
        Returns:
        the _isExternalFeature
      • setExternalFeature

        public void setExternalFeature​(boolean bExternalFeature)
        Set the external feature boolean
        Parameters:
        bExternalFeature - the _isExternalFeature to set
      • compareTo

        public int compareTo​(Right o)
        Compare the right with the specified right
        Specified by:
        compareTo in interface Comparable<Right>
        Parameters:
        o - The right to be compared with the instanced right
        Returns:
        The result of comparison
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object