com.wles.blm
Class BLMComponentManager

java.lang.Object
  extended bycom.wles.blm.BLMComponentManager
Direct Known Subclasses:
BLMApplicationManager, BLMDeclarationManager, BLMDirectoryManager, BLMLocalSubjectGroupManager, BLMLocalUserManager, BLMPrivgrpManager, BLMPrivilegeManager, BLMRoleManager

public abstract class BLMComponentManager
extends java.lang.Object

Abstracts all the basic funcitonality of the derived manager classes. The derived classes implement the abstract functions. This class intorduces the concept of collection IDs. Many of the methods will return a unique collection ID which is a reference to the result set for a call on that method. This ID can be be used as input to other methods to interogate the result set. See getCount, find, getReport for more information on collection accessor methods.


Constructor Summary
BLMComponentManager()
           
 
Method Summary
abstract  void create(java.lang.String name)
          Creates the named element.
abstract  java.lang.String filter(java.lang.String filterPattern)
          Finds a set of policy elements matching the specified filter pattern.
abstract  boolean find(java.lang.String cID, java.lang.String name)
          Checks for a named entity within a collection.
abstract  int getCount(java.lang.String cID)
          Gets the number of elements in the specified collection.
abstract  void release(java.lang.String cID)
          Releases the specified collection.
abstract  void remove(java.lang.String name)
          Removes the named entity from the system.
abstract  void rename(java.lang.String oldName, java.lang.String newName)
          Renames a policy element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BLMComponentManager

public BLMComponentManager()
Method Detail

create

public abstract void create(java.lang.String name)
                     throws com.wles.blm.BLMException
Creates the named element.

Throws:
com.wles.blm.BLMException

filter

public abstract java.lang.String filter(java.lang.String filterPattern)
                                 throws com.wles.blm.BLMException
Finds a set of policy elements matching the specified filter pattern. Returns a collection ID specific to the type of data in the result set.

Parameters:
filterPattern - the filter pattern to match
Returns:
a collection ID for the result set
Throws:
com.wles.blm.BLMException
See Also:
getCount(String CID), release(String cID), find(String cID, String name)

find

public abstract boolean find(java.lang.String cID,
                             java.lang.String name)
                      throws com.wles.blm.BLMException
Checks for a named entity within a collection.

Parameters:
cID - the ID of the collection to search
name - the name of the entity to search for
Returns:
true if found, false if not
Throws:
com.wles.blm.BLMException

getCount

public abstract int getCount(java.lang.String cID)
                      throws com.wles.blm.BLMException
Gets the number of elements in the specified collection.

Parameters:
cID - the ID of the collection
Returns:
the number of elements in the collection
Throws:
com.wles.blm.BLMException

release

public abstract void release(java.lang.String cID)
                      throws com.wles.blm.BLMException
Releases the specified collection. This allows the BLM to free up any system resources for this collection.

Parameters:
cID - the ID of the collection
Throws:
com.wles.blm.BLMException

remove

public abstract void remove(java.lang.String name)
                     throws com.wles.blm.BLMException
Removes the named entity from the system.

Throws:
com.wles.blm.BLMException

rename

public abstract void rename(java.lang.String oldName,
                            java.lang.String newName)
                     throws com.wles.blm.BLMException
Renames a policy element.

Parameters:
oldName - the old name of the element
newName - the new name of the element
Throws:
com.wles.blm.BLMException


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