com.bea.ales.management
Class ActionGroupManager

java.lang.Object
  |
  +--com.bea.ales.management.ActionGroupManager

public class ActionGroupManager
extends java.lang.Object

This class manages action groups. It provides methods to create, delete, rename and find actions groups.


Method Summary
 com.bea.ales.management.ActionGroup create(java.lang.String name)
          Create a new action group with the specified name.
 com.bea.ales.management.ActionGroup get(java.lang.String name)
          Find an action group with the specified name.
 ActionGroupQueryResult getActionGroups(java.lang.String filter)
          Find action groups whose names matche the given filter string.
 void remove(com.bea.ales.management.ActionGroup grp)
          Delete the given action group.
 void remove(java.util.Collection actionGroupNames)
          Remove all the action groups in the given Collection of action group names.
 void remove(java.lang.String name)
          Delete the action group with the specified name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public com.bea.ales.management.ActionGroup create(java.lang.String name)
                   throws ManagementException
Create a new action group with the specified name.

Parameters:
name - the name of new action group.
Returns:
the new action group.
Throws:
ManagementException - if the operation fails.

remove

public void remove(java.lang.String name)
            throws ManagementException
Delete the action group with the specified name.

Parameters:
name - name of action group to be deleted.
Throws:
ManagementException - if the operation fails.

remove

public void remove(com.bea.ales.management.ActionGroup grp)
            throws ManagementException
Delete the given action group.

Parameters:
grp - the action group to be deleted.
Throws:
ManagementException - if the operation fails.
java.lang.IllegalArgumentException - if grp is null.

remove

public void remove(java.util.Collection actionGroupNames)
            throws ManagementException
Remove all the action groups in the given Collection of action group names.
If transaction has not been started for the RBAC_Context associated with this ActionGroupManager, a local transaction for the remove operation for all the action groups is started.

Parameters:
actionGroupNames - The Collection of action group name Strings to remove. The current identity must have privilege to remove all the actions groups in this Collection or else this method will not remove ANY action groups.
Throws:
ManagementException - Exception while removing the actions. When encountered, further processing of the remove collection is stopped and any local transaction started by this method is rolled back.

get

public com.bea.ales.management.ActionGroup get(java.lang.String name)
                throws ManagementException
Find an action group with the specified name.

Parameters:
name - name of group.
Returns:
action group whose name is name, null if no such group found.
Throws:
ManagementException - if the operation fails.
java.lang.IllegalArgumentException - if name is null or a empty string.

getActionGroups

public ActionGroupQueryResult getActionGroups(java.lang.String filter)
                                       throws ManagementException
Find action groups whose names matche the given filter string.

Parameters:
filter - the filter condition.
Returns:
ActionQueryResult holds the action groups that matches the filter.
Throws:
ManagementException - if the operation fails.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.