Skip navigation links


oracle.idm.policy
Interface IPolicyTrusteeCollection

All Known Implementing Classes:
Approvers

public interface IPolicyTrusteeCollection

Field Summary
static java.lang.String TRUSTEE_COLLECTION_PROPERTY_APPROVAL_LEVEL
           

 

Method Summary
 void addGroupTrustee(java.lang.String id)
          Adds a group trustee to the collection.
 void addManagerTrustee(int level)
          Adds a manager trustee to the collection.
 void addUserTrustee(java.lang.String id)
          Adds a user trustee to the collection.
 void deleteGroupTrustee(java.lang.String id)
          Deletes a group trustee from the collection.
 void deleteManagerTrustee(int level)
          Deletes a manager trustee from the collection.
 void deleteUserTrustee(java.lang.String id)
          Deletes a user trustee from the collection.
 java.lang.String getDescription()
          Gets description of the trustee collection.
 java.lang.String getName()
          Gets name of the trustee collection.
 java.lang.String getProperty(java.lang.String propname)
          Returns value of the given property for given trustee collection.
 java.util.List getPropertyNames()
          Returns a list of property names for this trustee collection.
 java.util.List getTrusteesByType(java.lang.String type)
          Returns a list of trustees by type.
 void setDescription(java.lang.String descr)
          Sets description of this trustee collection.
 void setName(java.lang.String name)
          Sets name of this trustee collection.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets value of a given property.

 

Field Detail

TRUSTEE_COLLECTION_PROPERTY_APPROVAL_LEVEL

static final java.lang.String TRUSTEE_COLLECTION_PROPERTY_APPROVAL_LEVEL
See Also:
Constant Field Values

Method Detail

getName

java.lang.String getName()
Gets name of the trustee collection.
Returns:
Name of this trustee collection.

getDescription

java.lang.String getDescription()
Gets description of the trustee collection.
Returns:
Description of this trustee collection.

getTrusteesByType

java.util.List getTrusteesByType(java.lang.String type)
Returns a list of trustees by type. Supported trustee types are IPolicyTrustee.USER_TRUSTEE, IPolicyTrustee.GROUP_TRUSTEE, IPolicyTrustee.MANAGER_TRUSTEE.
Returns:
List of given trustees. Returns list of strings.

getPropertyNames

java.util.List getPropertyNames()
Returns a list of property names for this trustee collection.
Returns:
List of property names. It is a list of strings.

getProperty

java.lang.String getProperty(java.lang.String propname)
Returns value of the given property for given trustee collection.
Returns:
Value of the given property of this trustee collection.

setName

void setName(java.lang.String name)
Sets name of this trustee collection.
Parameters:
name - Name of the collection.

setDescription

void setDescription(java.lang.String descr)
Sets description of this trustee collection.
Parameters:
descr - Description of the collection.

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)
                 throws java.lang.IllegalArgumentException
Sets value of a given property.
Parameters:
name - Name of the property.
value - Value of the property.
Throws:
java.lang.IllegalArgumentException

addUserTrustee

void addUserTrustee(java.lang.String id)
Adds a user trustee to the collection.
Parameters:
id - Id of the trustee.

addGroupTrustee

void addGroupTrustee(java.lang.String id)
Adds a group trustee to the collection.
Parameters:
id - Id of the trustee.

addManagerTrustee

void addManagerTrustee(int level)
Adds a manager trustee to the collection.
Parameters:
level - Level of the manager. This will be evaluated at runtime in the context of the user.

deleteManagerTrustee

void deleteManagerTrustee(int level)
Deletes a manager trustee from the collection. Ignores the delete if a manager with the given level does not exist in the collection.
Parameters:
level - Level of the manager to be deleted.

deleteUserTrustee

void deleteUserTrustee(java.lang.String id)
Deletes a user trustee from the collection. Ignores the delete if user does not exist in collection. Note that at trustee collection level, we may only do a string compare to find the trustee to be deleted. It is upto the policy manager and caller to make sure that normalized IDs are used.
Parameters:
id - ID of the user to be deleted.

deleteGroupTrustee

void deleteGroupTrustee(java.lang.String id)
Deletes a group trustee from the collection. Ignores the delete if group does not exist in collection. Note that at trustee collection level, we may only do a string compare to find the trustee to be deleted. It is upto the policy manager and caller to make sure that normalized IDs are used.
Parameters:
id - ID of the group to be deleted.

Skip navigation links