|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.security.role.RoleAssignment
public class RoleAssignment
This object represents the association between an existing role, a context and the members assigned to the role at that context
Field Summary | |
---|---|
static String |
OBJECT_TYPE
Represents the type name of a RoleAssignment object. |
Constructor Summary | |
---|---|
RoleAssignment(long revision,
AssignedRole assignedRole)
Constructor |
|
RoleAssignment(long revision,
AssignedRole assignedRole,
Set<Principal> members)
Constructor when you have a membership list defined. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OBJECT_TYPE
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |