public class Role extends java.lang.Object implements ADFRole
Constructor and Description |
---|
Role()
Internal: Applications should not use this method.
Constructor for Role class.
|
Role(java.lang.String name)
Internal: Applications should not use this method.
Constructor for Role class
|
Modifier and Type | Method and Description |
---|---|
void |
addMember(java.security.Principal member)
Internal: Applications should not use this method.
Adds principal to this role.
|
boolean |
equals(java.lang.Object obj)
Internal: Applications should not use this method.
Returns true if the specified object has the same name as this
class.
|
java.util.List<ADFIdentity> |
getADFIdentityMembers()
Internal: Applications should not use this method.
|
java.security.Principal[] |
getMembers()
Internal: Applications should not use this method.
Returns a list of member principals.
|
java.lang.String |
getName()
Internal: Applications should not use this method.
Returns the role name.
|
ADFIdentityType |
getType()
Internal: Applications should not use this method.
|
boolean |
hasMember(java.security.Principal member)
Internal: Applications should not use this method.
Return true if the specified principal is memmber of this role.
|
void |
removeMember(java.security.Principal member)
Internal: Applications should not use this method.
Removes principal from this role.
|
void |
setName(java.lang.String name)
Internal: Applications should not use this method.
Sets the role name.
|
public Role()
public Role(java.lang.String name)
name
- the role name.public java.lang.String getName()
getName
in interface ADFIdentity
public void setName(java.lang.String name)
name
- the role name.public void addMember(java.security.Principal member)
member
- the principal to be added.public void removeMember(java.security.Principal member)
member
- the principal to be removed.public java.security.Principal[] getMembers()
public java.util.List<ADFIdentity> getADFIdentityMembers()
getADFIdentityMembers
in interface ADFRole
public boolean hasMember(java.security.Principal member)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the role object to be compared.public ADFIdentityType getType()
getType
in interface ADFIdentity