Class RoleImpl

    • Constructor Detail

      • RoleImpl

        public RoleImpl()
        Constructor
    • Method Detail

      • getName

        public String getName()
        Get the name of the Role
        Specified by:
        getName in interface Role
        Returns:
        role's name
      • setName

        public void setName​(String name)
        Description copied from interface: Role
        Set the name of the Role
        Specified by:
        setName in interface Role
        Parameters:
        name - role's name
      • getLabels

        public ContextualDesignations getLabels()
        Description copied from interface: Role
        Get all the labels
        Specified by:
        getLabels in interface Role
        Returns:
        an object containing the collection of the labels
      • getLabel

        public String getLabel​(String role,
                               String language)
        Description copied from interface: Role
        Get label in specific language for the given role
        Specified by:
        getLabel in interface Role
        Parameters:
        role - role for which the label is
        language - label's language
        Returns:
        wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
      • getDescriptions

        public ContextualDesignations getDescriptions()
        Description copied from interface: Role
        Get all the descriptions
        Specified by:
        getDescriptions in interface Role
        Returns:
        an object containing the collection of the descriptions
      • getDescription

        public String getDescription​(String role,
                                     String language)
        Description copied from interface: Role
        Get description in specific language for the given role
        Specified by:
        getDescription in interface Role
        Parameters:
        role - role for which the description is
        language - description's language
        Returns:
        wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.