Class RoleSet

    • Constructor Detail

      • RoleSet

        public RoleSet()
        Constructs an empty RoleSet
      • RoleSet

        public RoleSet​(Collection<? extends Role> roles)
        Constructs a new RoleSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.
        Parameters:
        roles - A collection of roles to be contained in the set.
    • Method Detail

      • getRoleByName

        @Deprecated
        public Role getRoleByName​(String roleName)
        Deprecated.
        use getByName()
        Returns a Role with the given name, if it is contained in this RoleSet.
        Parameters:
        roleName - Name of Role.
        Returns:
        Role if argument matched a Role in this RoleSet; null if no match.
      • getRoleById

        @Deprecated
        public Role getRoleById​(Object roleId)
        Deprecated.
        Use getById()
        Returns a Role with the given id, if it is contained in this RoleSet.
        Parameters:
        roleId - id of the Role.
        Returns:
        Role if argument matched a Role in this RoleSet; null if no match.