|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.bea.ales.management.DirectoryManager
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 directory with the specified name. |
DirectoryQueryResult |
getDirectories(java.lang.String filter)
Get all direct directories whose names matches with the filter. |
Directory[] |
getDirectoriesRecursive(java.lang.String filter,
Scope aScope)
Gets a List of Direcorys recursively starting at the given Scope and
going up in the scope hierarchy up to the root scope. |
Directory |
getDirectory(Scope dirScope,
java.lang.String relativeName)
Gets a Directory belonging to the given scope with the given relative name.
|
void |
remove(Directory dir,
boolean isCascade)
Remove the identity directory. |
void |
remove(java.lang.String dirName,
boolean isCascade)
Remove an identity directory. |
Directory |
rename(java.lang.String originalName,
java.lang.String newName)
Rename a directory with given original name to a new name. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public Directory create(java.lang.String dirName)
throws ManagementException
dirName - the name of directory to be created. For example: asi.
public Directory rename(java.lang.String originalName,
java.lang.String newName)
throws ManagementException
originalName - The relative or short name of the directory to be renamed.newName - The new relative or short name for that directory.Directory after it is renamed.Directory cannot be constructed using the newName
parameter or there was a BLMException while renaming the directory.
public void remove(Directory dir,
boolean isCascade)
throws ManagementException
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.remove(String, boolean)
public void remove(java.lang.String dirName,
boolean isCascade)
throws ManagementException
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.remove(Directory, boolean)
public Directory get(java.lang.String dirName)
throws ManagementException
dirName - directory name - which is accepted in two formats.
//dir/RootOrg!dir1
etc. In the second scenario this method uses the fully qualified name given by the
caller directly.
public DirectoryQueryResult getDirectories(java.lang.String filter)
throws ManagementException
//dir/orgA!OrgB!* - a direct directory will be
//dir/OrgA!OrgB!MyDir1 but NEITHER of
//dir/OrgA!parentScopeDir NOR
//dir/OrgA!OrgB!OrgC!childScopeDir1.
filter - the name of the pattern to matchDirectoryQueryResult which contains the collection of direct directories that match
the filter.
public Directory getDirectory(Scope dirScope,
java.lang.String relativeName)
throws ManagementException
Directory belonging to the given scope with the given relative name.
dirScope - The Scope in which to look for the directory.relativeName - The relative name of the directory to retrieve. This will be of the
format myDir. Using
directory name such as //dir/myDir or RootOrg!OrgA!myDir is improper
and will result in IllegalArgumentException being thrown .Directory.
public Directory[] getDirectoriesRecursive(java.lang.String filter,
Scope aScope)
throws ManagementException
List of Direcorys recursively starting at the given Scope and
going up in the scope hierarchy up to the root scope.
filter - The filter String to be used to look for Directorys.aScope - The Scope at which to start looking for the Directorys. This
parameter can be null. If the Scope is null no recursion will occur and the
directory search will be at the root organization.List of Directorys.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||