|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@ControlInterface
public interface DelegationRoleManagerControl
DelegationRoleManagerControlBean interface class that contains all the role management calls for Delegated Administration.
| Method Summary | |
|---|---|
void |
addGroupsToRole(String roleName, List<String> groups, ResourceContext context)This method adds multiple groups to a role definition. |
void |
addGroupToRole(String roleName, String group, ResourceContext context)This method adds one group to a role definition. |
void |
addRole(String newRoleName, String newRoleDescription, String parentRoleName, ResourceContext context)Method used to add/Create a new role. |
void |
addUsersToRole(String roleName, List<String> users, ResourceContext context)This method adds multiple users to a role definition. |
void |
addUserToRole(String roleName, String user, ResourceContext context)This method adds one user to a role definition. |
void |
deleteRole(String roleName, ResourceContext context)Deletes a role from the delegation hierarchy |
Collection<String> |
getAllRoles(ResourceContext context)Gets a pruned and sorted list of available Role Policies. |
String |
getChild(String parent, int index, ResourceContext context)Gets a child name at a specified index from the parent node. |
List<String> |
getChildRoles(String parent, ResourceContext context, boolean immediateOnly)Gets all children of the parent node. |
com.bea.p13n.delegation.common.DelegationHierarchy |
getDelegationHierarchy(ResourceContext context)Gets the DelegationHierarchy |
SortableFilterablePagedResult<SecurityPolicyItem> |
getPolicyRefs(String roleName, int pageSize, ResourceContext context) |
RolePolicyItem |
getRoleItem(String role, ResourceContext context)Getter for the role policy item. |
String |
getRoot(ResourceContext context)Getter for the root of the Delegation Hierarchy. |
boolean |
isLeaf(String node, ResourceContext context)Determines if a node has more child nodes or not. |
void |
moveRole(String roleName, String newRoleParent, ResourceContext context) |
void |
purgeRole(String roleName, ResourceContext context)Removes this role from all security policy references and deletes the role. |
void |
removeGroupFromRole(String roleName, String group, ResourceContext context)Given a group name this method will remove it from the role definition. |
void |
removeGroupsFromRole(String roleName, List<String> groups, ResourceContext context)Given a list of groups this method will remove them from the role definition. |
void |
removeUserFromRole(String roleName, String user, ResourceContext context)Given a user name this method will remove it from the role definition. |
void |
removeUsersFromRole(String roleName, List<String> users, ResourceContext context)Given a list of users this method will remove them from the role definition. |
void |
renameRole(String roleName, String newRoleName, ResourceContext context)Renames a role policy. |
void |
setDescription(String roleName, String newDescription, ResourceContext context)Set the description of a role policy. |
void |
setRoleSegmentLogicalAnd(String roleName, boolean val, ResourceContext context)Sets the role segment logical and boolean value for a given role. |
| Method Detail |
|---|
void addRole(String newRoleName,
String newRoleDescription,
String parentRoleName,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.NodeNameNotUniqueException,
com.bea.p13n.delegation.management.DelegationRoleManagementException
newRoleName - Name of the role.newRoleDescription - Name of the role.parentRoleName - Name of the parent role.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.NodeNameNotUniqueExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementException
void deleteRole(String roleName,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.entitlements.common.PolicyRefException,
com.bea.p13n.delegation.management.DelegationRoleManagementException
roleName - Name of the role to delete.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.entitlements.common.PolicyRefExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementException
void addUserToRole(String roleName,
String user,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException
roleName - The role name to edit.user - The user to add to the role.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementException
void addUsersToRole(String roleName,
List<String> users,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.delegation.management.NodeNotFoundException
roleName - The role name to edit.users - The users to add to the role definition.context - the resource contextcom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.delegation.management.NodeNotFoundException
void addGroupToRole(String roleName,
String group,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.delegation.management.NodeNotFoundException
roleName - The role name to edit.group - The group to add to the role.context - the resource contextcom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.delegation.management.NodeNotFoundException
void addGroupsToRole(String roleName,
List<String> groups,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.delegation.management.NodeNotFoundException
roleName - The role name to edit.groups - The users to add to the role definition.context - the resource contextcom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.delegation.management.NodeNotFoundException
RolePolicyItem getRoleItem(String role,
ResourceContext context)
throws com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
role - The role name used to obtain the RolePolicyItem for.context - the resource contextRolePolicyItem.com.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
Collection<String> getAllRoles(ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationHierarchyException
context - the resource contextList of all available Rolescom.bea.p13n.delegation.management.DelegationHierarchyExceptionString getRoot(ResourceContext context)
context - the resource contextString.
String getChild(String parent,
int index,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationHierarchyException
parent - The parent name.index - The index of the child.context - the resource contextString name of the childcom.bea.p13n.delegation.management.NodeNotFoundException - if the parent or child entity cannot be found.com.bea.p13n.delegation.management.DelegationHierarchyException
List<String> getChildRoles(String parent,
ResourceContext context,
boolean immediateOnly)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationHierarchyException
parent - The parent name.context - the resource contextimmediateOnly - true if you want immediate children, false if you want all children (recursive)com.bea.p13n.delegation.management.NodeNotFoundException - if the parent or child entity cannot be found.com.bea.p13n.delegation.management.DelegationHierarchyException
boolean isLeaf(String node,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationHierarchyException
node - Node in qestion.context - the resource contexttrue if this node does not have more child nodes false if it does.com.bea.p13n.delegation.management.NodeNotFoundException - if the node entity cannot be found.com.bea.p13n.delegation.management.DelegationHierarchyException
com.bea.p13n.delegation.common.DelegationHierarchy getDelegationHierarchy(ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationHierarchyException
context - the resource contextDelegationHierarchycom.bea.p13n.delegation.management.DelegationHierarchyException
void removeUsersFromRole(String roleName,
List<String> users,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
roleName - Name of the role to operate on.users - List of users to remove.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
void removeUserFromRole(String roleName,
String user,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
roleName - Name of the role to operate on.user - The role name to remove.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
void removeGroupsFromRole(String roleName,
List<String> groups,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
roleName - Name of the role to operate on.groups - List of groups to remove.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
void removeGroupFromRole(String roleName,
String group,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
roleName - Name of the role to operate on.group - The group name to remove.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
void purgeRole(String roleName,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException
roleName - The name of the role to purgecontext - the resource contextcom.bea.p13n.delegation.management.DelegationRoleManagementException - occurs.
SortableFilterablePagedResult<SecurityPolicyItem> getPolicyRefs(String roleName,
int pageSize,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.delegation.management.DelegationRoleManagementException
void setRoleSegmentLogicalAnd(String roleName,
boolean val,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.entitlements.common.PolicyException,
com.bea.p13n.entitlements.common.PolicyNotFoundException
roleName - Name of the role to operate on.val - The And value to set.context - the resource contextcom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementExceptioncom.bea.p13n.entitlements.common.PolicyExceptioncom.bea.p13n.entitlements.common.PolicyNotFoundException
void moveRole(String roleName,
String newRoleParent,
ResourceContext context)
throws com.bea.p13n.delegation.management.NodeMoveNotAllowedException,
com.bea.p13n.delegation.management.NodeNameNotUniqueException,
com.bea.p13n.delegation.management.NodeNotFoundException,
com.bea.p13n.delegation.management.DelegationRoleManagementException
roleName - The name of the role to be movednewRoleParent - The name of the new parent for roleNamecontext -com.bea.p13n.delegation.management.NodeMoveNotAllowedExceptioncom.bea.p13n.delegation.management.NodeNameNotUniqueExceptioncom.bea.p13n.delegation.management.NodeNotFoundExceptioncom.bea.p13n.delegation.management.DelegationRoleManagementException
void setDescription(String roleName,
String newDescription,
ResourceContext context)
throws com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.delegation.management.NodeNotFoundException
roleName - The role which will have its description updated.newDescription - The description to update.com.bea.p13n.delegation.management.DelegationRoleManagementException - General management exception.com.bea.p13n.delegation.management.NodeNotFoundException - If the role represented by the roleName name doesn't exist.
void renameRole(String roleName,
String newRoleName,
ResourceContext context)
throws com.bea.p13n.entitlements.common.PolicyRefException,
com.bea.p13n.delegation.management.NodeNameNotUniqueException,
com.bea.p13n.delegation.management.DelegationRoleManagementException,
com.bea.p13n.delegation.management.NodeNotFoundException
roleName - The old role name.newRoleName - The new role name.com.bea.p13n.entitlements.common.PolicyRefException - If at least one SecurityPolicy is assigned to the role represented by the old name.com.bea.p13n.delegation.management.NodeNameNotUniqueException - If the a role with the new name already exitscom.bea.p13n.delegation.management.DelegationRoleManagementException - General management exception.com.bea.p13n.delegation.management.NodeNotFoundException - If the role represented by the old node name doesn't exist.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.