|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.entitlements.management.RolePolicyManager
Provides access to methods for performing role policy management including create, read, modify, and delete actions. Adds methods for managing custom predicate extensions of the entitlements engine. Eases the management of scoped role policies for application controlled scope.
Constructor Summary | |
RolePolicyManager()
|
Method Summary | |
static void |
createRolePolicy(RolePolicyItem aRolePolicyItem)
Creates a new role policy. |
static RolePolicyItem |
getRolePolicy(RolePolicyItem aRolePolicyItem)
Retrieves an existing role policy. |
static Object[][] |
listRolesForResource(int aResourceScope,
String anEntAppName,
String aWebAppName,
String aResourceId)
Finds all available role policies given a resourceId and a scope. |
static String[] |
listRolesForResource(String anEntAppName,
String aWebAppName,
String aResourceId)
Finds all available role policies given a resourceId. |
static void |
removeRolePolicy(RolePolicyItem aRolePolicyItem)
Removes an existing role policy. |
static boolean |
rolePolicyExists(RolePolicyItem aRolePolicyItem)
Tests for an existing role policy. |
static boolean |
rolePolicyHasRefs(RolePolicyItem aRolePolicyItem)
Checks whether a given Role Policy is currently referenced (i.e. being used by) any Security Policies. |
static void |
setRolePolicy(RolePolicyItem aRolePolicyItem)
Updates an existing role policy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RolePolicyManager()
Method Detail |
public static void createRolePolicy(RolePolicyItem aRolePolicyItem) throws com.bea.p13n.entitlements.common.PolicyExistsException, com.bea.p13n.entitlements.common.PolicyCreateException, com.bea.p13n.entitlements.common.PolicyNotFoundException, com.bea.p13n.entitlements.common.PolicyException
aRolePolicyItem
- The object containing the required and optional
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
com.bea.p13n.entitlements.common.PolicyExistsException
com.bea.p13n.entitlements.common.PolicyCreateException
com.bea.p13n.entitlements.common.PolicyNotFoundException
com.bea.p13n.entitlements.common.PolicyException
public static RolePolicyItem getRolePolicy(RolePolicyItem aRolePolicyItem) throws com.bea.p13n.entitlements.common.PolicyNotFoundException, com.bea.p13n.entitlements.common.PolicyException
The returned RolePolicyItem may be used to hold local updates to user lists, group lists, and role segment name changes prior to persisting changes using the setRolePolicy() method.
aRolePolicyItem
- The object containing the required and optional
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
com.bea.p13n.entitlements.common.PolicyNotFoundException
com.bea.p13n.entitlements.common.PolicyException
public static Object[][] listRolesForResource(int aResourceScope, String anEntAppName, String aWebAppName, String aResourceId)
aResourceScope
- A global, enterprise, webapp,
or application scope defined by the EntitlementConstants class.anEntAppName
- Enterprise Application nameaWebAppName
- Webapp name. Unused for Global role inheritanceaResourceId
- Application defined resource ID
public static String[] listRolesForResource(String anEntAppName, String aWebAppName, String aResourceId)
anEntAppName
- Enterprise Application nameaResourceId
- Application defined resource IDaWebAppName
- Webapp name. Unused for Global role inheritance
public static void removeRolePolicy(RolePolicyItem aRolePolicyItem) throws com.bea.p13n.entitlements.common.PolicyRemoveException, com.bea.p13n.entitlements.common.PolicyNotFoundException
rolePolicyHasRefs()
.
aRolePolicyItem
- The object containing the required
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
com.bea.p13n.entitlements.common.PolicyNotFoundException
com.bea.p13n.entitlements.common.PolicyRemoveException
public static boolean rolePolicyExists(RolePolicyItem aRolePolicyItem)
aRolePolicyItem
- The object containing the required
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
public static boolean rolePolicyHasRefs(RolePolicyItem aRolePolicyItem) throws com.bea.p13n.entitlements.common.PolicyRefException
aRolePolicyItem
- The object containing the required and optional
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
com.bea.p13n.entitlements.common.PolicyRefException
public static void setRolePolicy(RolePolicyItem aRolePolicyItem) throws com.bea.p13n.entitlements.common.PolicyExpressionException, com.bea.p13n.entitlements.common.PolicyNotFoundException, com.bea.p13n.entitlements.common.PolicyExistsException, com.bea.p13n.entitlements.common.PolicyCreateException, com.bea.p13n.entitlements.common.PolicyException
Note that if the aRolePolicyItem instance was retrieved using getRolePolicy(), all mandatory fields will already be initialized. The only fields that are updateable in the persisted role policy are the aUserList, aGroupList, and aRoleSegmentName.
aRolePolicyItem
- The object containing the required and optional
role policy attributes
com.bea.p13n.entitlements.common.InvalidArgsException
com.bea.p13n.entitlements.common.PolicyExpressionException
com.bea.p13n.entitlements.common.PolicyNotFoundException
com.bea.p13n.entitlements.common.PolicyExistsException
com.bea.p13n.entitlements.common.PolicyCreateException
com.bea.p13n.entitlements.common.PolicyException
|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |