public class RoleAssignment extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_TYPE
Represents the type name of a RoleAssignment object.
|
Constructor and Description |
---|
RoleAssignment(long revision,
AssignedRole assignedRole)
Constructor
|
RoleAssignment(long revision,
AssignedRole assignedRole,
Set<Principal> members)
Constructor when you have a membership list defined.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
AssignedRole |
getAssignedRole()
Get the assignedRole who's membership this object manages.
|
Set<Principal> |
getMembers()
Get the membership of this roleAssignment.
|
String |
getObjectType()
Get the objectType of this roleAssignment.
|
long |
getRevision()
Get the internal revision number of this roleAssignment.
|
int |
hashCode()
Return a hash code value for the object.
|
void |
setMembers(Set<Principal> members)
Set the membership of this roleAssignment.
|
String |
toString()
Return a string representation of the object.
|
public static final String OBJECT_TYPE
public RoleAssignment(long revision, AssignedRole assignedRole, Set<Principal> members)
revision
- internal revision numberassignedRole
- The constructed roleAssignment represents the membership of this assignedRole.members
- The set of members to associate to the assignedRole.public RoleAssignment(long revision, AssignedRole assignedRole)
revision
- internal revision numberassignedRole
- The assigned role to manage membership of.public Set<Principal> getMembers()
public void setMembers(Set<Principal> members)
members
- The list of principals to set as the members of this roleAssignment.public AssignedRole getAssignedRole()
public String getObjectType()
public long getRevision()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA