Class Role

    • Constructor Detail

      • Role

        public Role()
        Constructs a new Role.
    • Method Detail

      • addFunction

        public void addFunction​(Function function)
        Add the function to the role.
        Parameters:
        function - the function
      • equals

        public boolean equals​(Object object)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        object - the reference object with which to compare
        Returns:
        true if this object is the same as the object argument otherwise false
      • getCode

        public String getCode()
        Returns the code for the role.
        Returns:
        the code for the role
      • getDescription

        public String getDescription()
        Returns the description for the role.
        Returns:
        the description for the role
      • getFunctions

        public Set<Function> getFunctions()
        Returns the functions associated with the role.
        Returns:
        the functions associated with the role
      • getGroups

        public Set<Group> getGroups()
        Returns the groups the role is associated with.
        Returns:
        the groups the role is associated with
      • getName

        public String getName()
        Returns the name of the role.
        Returns:
        the name of the role
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the object
      • removeFunction

        public void removeFunction​(Function function)
        Remove the function to the role.
        Parameters:
        function - the function
      • setCode

        public void setCode​(String code)
        Set the code for the role.
        Parameters:
        code - the code for the role
      • setDescription

        public void setDescription​(String description)
        Set the description for the role.
        Parameters:
        description - the description for the role
      • setFunctions

        public void setFunctions​(Set<Function> functions)
        Set the functions associated with the role.
        Parameters:
        functions - the functions associated with the role
      • setGroups

        public void setGroups​(Set<Group> groups)
        Set the groups the role is associated with.
        Parameters:
        groups - the groups the role is associated with
      • setName

        public void setName​(String name)
        Set the name of the role.
        Parameters:
        name - the name of the role