Class SimpleRole

    • Constructor Detail

      • SimpleRole

        public SimpleRole​(String roleName)
      • SimpleRole

        public SimpleRole​(String roleName,
                          Role parent)
    • Method Detail

      • getRoleName

        public String getRoleName()
        Description copied from interface: Role
        Get Name of the Role
        Specified by:
        getRoleName in interface Role
        Returns:
      • getType

        public RoleType getType()
        Description copied from interface: Role
        Get type of role
        Specified by:
        getType in interface Role
        Returns:
        simple,group
      • containsAll

        public boolean containsAll​(Role anotherRole)
        Description copied from interface: Role
        Indicate whether the argument role is equal or contained depending on the role-type
        Specified by:
        containsAll in interface Role
        Returns:
        true or false
        See Also:
        Role#contains(Role)
      • getParent

        public Role getParent()
        Description copied from interface: Role
        Gets a reference to the parent role, if one is available.
        Specified by:
        getParent in interface Role
        Returns:
        a reference to the parent role if one exists; null otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object