public class Role extends RoleDescriptor
Members (users and groups) of that context may be assigned to the roles associated with a given role context. This will grant them all the privileges of the role.
Constructor and Description |
---|
Role(String id,
ObjectIdentity definedContext,
ObjectIdentity assignedContext,
String name,
String description,
long revision,
Set<ScopedPrivilege> privileges,
Set<Principal> members)
It is not intended or recommended that the consumer of this API construct these objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<Principal> |
getMembers()
Gets the members assigned to this role.
|
long |
getRevision()
Gets the internal revision number of this object.
|
int |
hashCode() |
void |
setMembers(Set<Principal> members)
Sets the members assigned to this role.
|
String |
toString() |
getAssignedContext, getDefinedContext, getDescription, getName, getPrivileges, isInherited, setDescription, setName, setPrivileges
getId, getTypeId
public Role(String id, ObjectIdentity definedContext, ObjectIdentity assignedContext, String name, String description, long revision, Set<ScopedPrivilege> privileges, Set<Principal> members)
id
- the unique identifier of this role.definedContext
- the context where this role was defined.assignedContext
- the context where this role is being assigned.name
- the name of this role.description
- the description of this role.revision
- the internal revision number of this role.privileges
- the privileges associated with this role.members
- the members associated with this role.public long getRevision()
public Set<Principal> getMembers()
public void setMembers(Set<Principal> members)
members
- the members assigned to this role.public int hashCode()
hashCode
in class RoleDescriptor
public boolean equals(Object obj)
equals
in class RoleDescriptor
public String toString()
toString
in class RoleDescriptor
<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>