com.bea.ales.management
Class DirectoryManager

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

public class DirectoryManager
extends java.lang.Object

This class manage identity Directory. It provides methods to create, remove and find directory. DirectoryManager can be created through RBAC_Context.


Method Summary
 Directory create(java.lang.String dirName)
          Create the identity directory.
 Directory get(java.lang.String dirName)
          Get the identity directoty with the specified name.
 DirectoryQueryResult getDirectories(java.lang.String filter)
          Get all directories whose names matches with the filter.
 void remove(Directory dir, boolean isCascade)
          Remove the identity directory.
 void remove(java.lang.String dirName, boolean isCascade)
          Remove an identity directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public Directory create(java.lang.String dirName)
                 throws ManagementException
Create the identity directory.

Parameters:
dirName - the name of directory to be created. For example: asi.
Returns:
the directory created
Throws:
ManagementException - if the operation fails.

remove

public void remove(Directory dir,
                   boolean isCascade)
            throws ManagementException
Remove the identity directory.

Parameters:
dir - the directory to be removed.
isCascade - if set true, remove the directory and all users, groups and associated policies. if set false, only remove the directory.
Throws:
ManagementException - if the operation fails.
See Also:
#remove(String)

remove

public void remove(java.lang.String dirName,
                   boolean isCascade)
            throws ManagementException
Remove an identity directory.

Parameters:
dirName - the name of directory to be removed. For example: asi.
isCascade - if set true, remove the directory and all users, groups and associated policies. if set false, only remove the directory.
Throws:
ManagementException - if the operation fails.
See Also:
#remove(Directory)

get

public Directory get(java.lang.String dirName)
              throws ManagementException
Get the identity directoty with the specified name.

Parameters:
dirName - directory name. For example: asi.
Returns:
directory which has the specified name.
Throws:
ManagementException - if the operation fails.

getDirectories

public DirectoryQueryResult getDirectories(java.lang.String filter)
                                    throws ManagementException
Get all directories whose names matches with the filter.

Parameters:
filter - the name of the pattern to match
Returns:
the DirectoryQueryResult which contains the collection of directories that match the filter.
Throws:
ManagementException - if the operation fails.


Copyright © 2006 BEA Systems Inc. All Rights Reserved.