com.wles.blm
Class BLMContextManager

java.lang.Object
  extended bycom.wles.blm.BLMContextManager

public class BLMContextManager
extends java.lang.Object

Represents a single BLM session for a administrative user. Use the BLMManager class to obtain a reference to a BLMContextManager. To terminate the session call the destroyContext method.

See Also:
BLMManager

Method Summary
 void beginTransaction()
          Begin a new BLM transaction, if a transaction has already been started then an exception is thrown
 void clearApplicationContext()
          Clear the application context.
 void commitTransaction()
          Commit a BLM transaction, if a transaction has not been started then an exception is thrown
 void destroyContext()
          Terminates this session to the BLM.
 void enableTransactionalAuditing(boolean enable)
          If the BLM context has is in the middle of a transaction then this method will return tru
 BLMApplicationManager getApplicationManager()
          Obtains an instance of the BLMApplicationManager.
 BLMDeclarationManager getDeclarationManager()
          Obtains an instance of the BLMDeclarationManager.
 BLMDirectoryManager getDirectoryManager()
          Obtains an instance of the BLMDirectoryManager.
 BLMLocalSubjectGroupManager getLocalSubjectGroupManager()
          Obtains an instance of the BLMLocalSubjectGroupManager.
 BLMLocalUserManager getLocalUserManager()
          Obtains an instance of the BLMLocalUserManager.
 BLMPolicyDistributor getPolicyDistributor()
          Obtains an instance of the BLMPolicyDistributor.
 BLMPrivgrpManager getPrivgrpManager()
          Obtains an instance of the BLMPrivgrpManager.
 BLMPrivilegeManager getPrivilegeManager()
          Obtains an instance of the BLMPrivilegeManager.
 BLMRoleManager getRoleManager()
          Obtains an instance of the BLMRoleManager.
 BLMRuleManager getRuleManager()
          Obtains an instance of the BLMRuleManager.
 SCMManager getSCMManager()
          Returns the instance of the SCMConfigurationManager.
 SSMConfigurationManager getSSMConfigurationManager()
          Returns the instance of the BLMConfigurationManager.
 boolean isTransactionalAuditingEnabled()
          If the BLM context has is in the middle of a transaction then this method will return tru
 void rollbackTransaction()
          Rollback a BLM transaction, if a transaction has not been started then an exception is thrown
 void setApplicationContext(java.util.Hashtable appCtx)
          Sets the application context in the BLM.
 boolean transactionIsActive()
          If the BLM context has is in the middle of a transaction then this method will return tru
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beginTransaction

public void beginTransaction()
                      throws com.wles.blm.BLMException
Begin a new BLM transaction, if a transaction has already been started then an exception is thrown

Throws:
com.wles.blm.BLMException

clearApplicationContext

public void clearApplicationContext()
                             throws com.wles.blm.BLMException
Clear the application context. Once cleared audit messages will generated from this Context Manager will not have application data associated with them.

Throws:
com.wles.blm.BLMException

commitTransaction

public void commitTransaction()
                       throws com.wles.blm.BLMException
Commit a BLM transaction, if a transaction has not been started then an exception is thrown

Throws:
com.wles.blm.BLMException

destroyContext

public void destroyContext()
                    throws com.wles.blm.BLMException
Terminates this session to the BLM. The BLM server releases all the open collections and managers associated with this session.

Throws:
com.wles.blm.BLMException

enableTransactionalAuditing

public void enableTransactionalAuditing(boolean enable)
                                 throws com.wles.blm.BLMException
If the BLM context has is in the middle of a transaction then this method will return tru

Returns:
true if the context is in the middle of a transaction
Throws:
com.wles.blm.BLMException

getApplicationManager

public BLMApplicationManager getApplicationManager()
                                            throws com.wles.blm.BLMException
Obtains an instance of the BLMApplicationManager.

Returns:
a application manager
Throws:
com.wles.blm.BLMException

getDeclarationManager

public BLMDeclarationManager getDeclarationManager()
                                            throws com.wles.blm.BLMException
Obtains an instance of the BLMDeclarationManager.

Returns:
a declaration manager
Throws:
com.wles.blm.BLMException

getDirectoryManager

public BLMDirectoryManager getDirectoryManager()
                                        throws com.wles.blm.BLMException
Obtains an instance of the BLMDirectoryManager.

Returns:
a directory manager
Throws:
com.wles.blm.BLMException

getLocalSubjectGroupManager

public BLMLocalSubjectGroupManager getLocalSubjectGroupManager()
                                                        throws com.wles.blm.BLMException
Obtains an instance of the BLMLocalSubjectGroupManager.

Returns:
a subject group manager
Throws:
com.wles.blm.BLMException

getLocalUserManager

public BLMLocalUserManager getLocalUserManager()
                                        throws com.wles.blm.BLMException
Obtains an instance of the BLMLocalUserManager.

Returns:
a user manager
Throws:
com.wles.blm.BLMException

getPolicyDistributor

public BLMPolicyDistributor getPolicyDistributor()
                                          throws com.wles.blm.BLMException
Obtains an instance of the BLMPolicyDistributor.

Returns:
a policy distributor manager
Throws:
com.wles.blm.BLMException

getPrivgrpManager

public BLMPrivgrpManager getPrivgrpManager()
                                    throws com.wles.blm.BLMException
Obtains an instance of the BLMPrivgrpManager.

Returns:
a privilege group manager
Throws:
com.wles.blm.BLMException

getPrivilegeManager

public BLMPrivilegeManager getPrivilegeManager()
                                        throws com.wles.blm.BLMException
Obtains an instance of the BLMPrivilegeManager.

Returns:
a privilege manager
Throws:
com.wles.blm.BLMException

getRoleManager

public BLMRoleManager getRoleManager()
                              throws com.wles.blm.BLMException
Obtains an instance of the BLMRoleManager.

Returns:
a role manager
Throws:
com.wles.blm.BLMException

getRuleManager

public BLMRuleManager getRuleManager()
                              throws com.wles.blm.BLMException
Obtains an instance of the BLMRuleManager.

Returns:
a rule manager
Throws:
com.wles.blm.BLMException

getSCMManager

public SCMManager getSCMManager()
                         throws com.wles.blm.BLMException
Returns the instance of the SCMConfigurationManager.

Returns:
an SCM manager.
Throws:
com.wles.blm.BLMException

getSSMConfigurationManager

public SSMConfigurationManager getSSMConfigurationManager()
                                                   throws com.wles.blm.BLMException
Returns the instance of the BLMConfigurationManager.

Returns:
a configuration manager
Throws:
com.wles.blm.BLMException

isTransactionalAuditingEnabled

public boolean isTransactionalAuditingEnabled()
                                       throws com.wles.blm.BLMException
If the BLM context has is in the middle of a transaction then this method will return tru

Returns:
true if the context is in the middle of a transaction
Throws:
com.wles.blm.BLMException

rollbackTransaction

public void rollbackTransaction()
                         throws com.wles.blm.BLMException
Rollback a BLM transaction, if a transaction has not been started then an exception is thrown

Throws:
com.wles.blm.BLMException

setApplicationContext

public void setApplicationContext(java.util.Hashtable appCtx)
                           throws com.wles.blm.BLMException
Sets the application context in the BLM. Once set all subsequent BLM API calls that log to the audit service will add the application context to the audit messages.

Parameters:
appCtx - Hashtable of name=value pars
Throws:
com.wles.blm.BLMException

transactionIsActive

public boolean transactionIsActive()
                            throws com.wles.blm.BLMException
If the BLM context has is in the middle of a transaction then this method will return tru

Returns:
true if the context is in the middle of a transaction
Throws:
com.wles.blm.BLMException


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