Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

oracle.adf.share.security.identitymanagement
Class Role

java.lang.Object
  extended by oracle.adf.share.security.identitymanagement.Role
All Implemented Interfaces:
ADFIdentity, ADFRole

public class Role
extends java.lang.Object
implements ADFRole

Internal: Applications should not use this class.


Constructor Summary
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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Role

public Role()
Internal: Applications should not use this method. Constructor for Role class.


Role

public Role(java.lang.String name)
Internal: Applications should not use this method. Constructor for Role class

Parameters:
name - the role name.
Method Detail

getName

public java.lang.String getName()
Internal: Applications should not use this method. Returns the role name.

Specified by:
getName in interface ADFIdentity
Returns:
String the role name.

setName

public void setName(java.lang.String name)
Internal: Applications should not use this method. Sets the role name.

Parameters:
name - the role name.

addMember

public void addMember(java.security.Principal member)
Internal: Applications should not use this method. Adds principal to this role. This method does not grant membership to role in identity store. See RoleManager.addToRole() to add membership to role.

Parameters:
member - the principal to be added.

removeMember

public void removeMember(java.security.Principal member)
Internal: Applications should not use this method. Removes principal from this role. This method does not remove membership from role in identity store. See RoleManager.deleteFromRole() to remove membership from role.

Parameters:
member - the principal to be removed.

getMembers

public java.security.Principal[] getMembers()
Internal: Applications should not use this method. Returns a list of member principals.

Returns:
Principal[] members of this role.

getADFIdentityMembers

public java.util.List<ADFIdentity> getADFIdentityMembers()
Internal: Applications should not use this method.

Specified by:
getADFIdentityMembers in interface ADFRole

hasMember

public boolean hasMember(java.security.Principal member)
Internal: Applications should not use this method. Return true if the specified principal is memmber of this role.

Returns:
boolean true if the specified principal is member of this role.

equals

public 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.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the role object to be compared.
Returns:
boolean true if both objects have the same name.

getType

public ADFIdentityType getType()
Internal: Applications should not use this method.

Specified by:
getType in interface ADFIdentity

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

Copyright © 1997, 2011, Oracle. All rights reserved.