Skip navigation links


oracle.idm.provisioning.approval
Class Approvers

java.lang.Object
  extended by oracle.idm.provisioning.approval.Approvers

All Implemented Interfaces:
java.lang.Comparable, IPolicyTrusteeCollection

public class Approvers
extends java.lang.Object
implements java.lang.Comparable, IPolicyTrusteeCollection

Field Summary
static java.lang.String MGR_ROLE_NAME
           

 

Fields inherited from interface oracle.idm.policy.IPolicyTrusteeCollection
TRUSTEE_COLLECTION_PROPERTY_APPROVAL_LEVEL

 

Constructor Summary
Approvers()
           

 

Method Summary
 void addApproverRoleByName(java.lang.String role)
           
 void addGroupTrustee(java.lang.String grp)
          Adds a group trustee to the collection.
 void addManagerTrustee(int level)
          Adds a manager trustee to the collection.
 void addUserTrustee(java.lang.String user)
          Adds a user trustee to the collection.
 int compareTo(java.lang.Object obj)
           
 void copyTrusteeCollection(IPolicyTrusteeCollection tc)
           
 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.util.List getApproverGroups()
           
 java.util.List getApproverRoleNames()
           
 java.util.List getApproverUsers()
           
 java.lang.String getDescription()
          Gets description of the trustee collection.
 int getLevel()
           
 java.lang.String getName()
          Gets name of the trustee collection.
 java.lang.String getProperty(java.lang.String prop)
          Returns value of the given property for given trustee collection.
 java.util.List getPropertyNames()
          Returns a list of property names for this trustee collection.
static int getRoleLevel(java.lang.String name)
           
 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 setLevel(int level)
           
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

MGR_ROLE_NAME

public static java.lang.String MGR_ROLE_NAME

Constructor Detail

Approvers

public Approvers()

Method Detail

copyTrusteeCollection

public void copyTrusteeCollection(IPolicyTrusteeCollection tc)
                           throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getName

public java.lang.String getName()
Description copied from interface: IPolicyTrusteeCollection
Gets name of the trustee collection.
Specified by:
getName in interface IPolicyTrusteeCollection
Returns:
Name of this trustee collection.

getApproverUsers

public java.util.List getApproverUsers()

getApproverGroups

public java.util.List getApproverGroups()

getApproverRoleNames

public java.util.List getApproverRoleNames()

getDescription

public java.lang.String getDescription()
Description copied from interface: IPolicyTrusteeCollection
Gets description of the trustee collection.
Specified by:
getDescription in interface IPolicyTrusteeCollection
Returns:
Description of this trustee collection.

getTrusteesByType

public java.util.List getTrusteesByType(java.lang.String type)
Description copied from interface: IPolicyTrusteeCollection
Returns a list of trustees by type. Supported trustee types are IPolicyTrustee.USER_TRUSTEE, IPolicyTrustee.GROUP_TRUSTEE, IPolicyTrustee.MANAGER_TRUSTEE.
Specified by:
getTrusteesByType in interface IPolicyTrusteeCollection
Returns:
List of given trustees. Returns list of strings.

getLevel

public int getLevel()

getProperty

public java.lang.String getProperty(java.lang.String prop)
Description copied from interface: IPolicyTrusteeCollection
Returns value of the given property for given trustee collection.
Specified by:
getProperty in interface IPolicyTrusteeCollection
Returns:
Value of the given property of this trustee collection.

getPropertyNames

public java.util.List getPropertyNames()
Description copied from interface: IPolicyTrusteeCollection
Returns a list of property names for this trustee collection.
Specified by:
getPropertyNames in interface IPolicyTrusteeCollection
Returns:
List of property names. It is a list of strings.

setName

public void setName(java.lang.String name)
Description copied from interface: IPolicyTrusteeCollection
Sets name of this trustee collection.
Specified by:
setName in interface IPolicyTrusteeCollection
Parameters:
name - Name of the collection.

setDescription

public void setDescription(java.lang.String descr)
Description copied from interface: IPolicyTrusteeCollection
Sets description of this trustee collection.
Specified by:
setDescription in interface IPolicyTrusteeCollection
Parameters:
descr - Description of the collection.

addUserTrustee

public void addUserTrustee(java.lang.String user)
Description copied from interface: IPolicyTrusteeCollection
Adds a user trustee to the collection.
Specified by:
addUserTrustee in interface IPolicyTrusteeCollection
Parameters:
user - Id of the trustee.

addGroupTrustee

public void addGroupTrustee(java.lang.String grp)
Description copied from interface: IPolicyTrusteeCollection
Adds a group trustee to the collection.
Specified by:
addGroupTrustee in interface IPolicyTrusteeCollection
Parameters:
grp - Id of the trustee.

addManagerTrustee

public void addManagerTrustee(int level)
                       throws java.lang.IllegalArgumentException
Description copied from interface: IPolicyTrusteeCollection
Adds a manager trustee to the collection.
Specified by:
addManagerTrustee in interface IPolicyTrusteeCollection
Parameters:
level - Level of the manager. This will be evaluated at runtime in the context of the user.
Throws:
java.lang.IllegalArgumentException

setLevel

public void setLevel(int level)

getRoleLevel

public static int getRoleLevel(java.lang.String name)
                        throws java.lang.NumberFormatException,
                               java.lang.IllegalArgumentException
Throws:
java.lang.NumberFormatException
java.lang.IllegalArgumentException

deleteUserTrustee

public void deleteUserTrustee(java.lang.String id)
Description copied from interface: IPolicyTrusteeCollection
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.
Specified by:
deleteUserTrustee in interface IPolicyTrusteeCollection
Parameters:
id - ID of the user to be deleted.

deleteGroupTrustee

public void deleteGroupTrustee(java.lang.String id)
Description copied from interface: IPolicyTrusteeCollection
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.
Specified by:
deleteGroupTrustee in interface IPolicyTrusteeCollection
Parameters:
id - ID of the group to be deleted.

deleteManagerTrustee

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

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
                 throws java.lang.IllegalArgumentException
Description copied from interface: IPolicyTrusteeCollection
Sets value of a given property.
Specified by:
setProperty in interface IPolicyTrusteeCollection
Parameters:
name - Name of the property.
value - Value of the property.
Throws:
java.lang.IllegalArgumentException

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

addApproverRoleByName

public void addApproverRoleByName(java.lang.String role)

Skip navigation links