| 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 | 
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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.NodeNameNotUniqueException
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.entitlements.common.PolicyRefException
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.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 context
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.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 context
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.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 context
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.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 context
RolePolicyItem.
com.bea.p13n.entitlements.common.PolicyException
com.bea.p13n.entitlements.common.PolicyNotFoundException
Collection<String> getAllRoles(ResourceContext context)
                               throws com.bea.p13n.delegation.management.DelegationHierarchyException
context - the resource context
List of all available Roles
com.bea.p13n.delegation.management.DelegationHierarchyExceptionString getRoot(ResourceContext context)
context - the resource context
String.
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 context
String name of the child
com.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 context
true 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 context
DelegationHierarchy
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.entitlements.common.PolicyException
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.entitlements.common.PolicyException
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.entitlements.common.PolicyException
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.entitlements.common.PolicyException
com.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 context
com.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 context
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
com.bea.p13n.entitlements.common.PolicyException
com.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.NodeMoveNotAllowedException
com.bea.p13n.delegation.management.NodeNameNotUniqueException
com.bea.p13n.delegation.management.NodeNotFoundException
com.bea.p13n.delegation.management.DelegationRoleManagementException
  | 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||