com.bea.ales.management
Class RBAC_Context

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

public class RBAC_Context
extends java.lang.Object

This class represents a context of a series management API calls. It provides methods to manage the transactional operation and create all other kind of object managers.


Method Summary
 void commitTansaction()
          Commit the current transaction of this context.
 AttributeElement findAttribute(java.lang.String attrName)
           
 void flushCache()
          Flush all cache objects related to this context.
 ActionGroupManager getActionGroupManager()
          Get the ActionGroupManager of this context.
 ActionManager getActionManager()
          Get the ActionManager of this context.
 AdminRoleManager getAdminRoleManager()
           
 ConstantManager getConstantManager()
          Get the ConstantManager instance of this conext.
 DirectoryManager getDirectoryManager()
          Get the DirectoryManager of this context.
 ExtensionsManager getExtensionsManager()
          Get the ExtensionsManager instance.
 java.lang.String getLoginUser()
          Get login user name.
 MetaObjectFactory getMetaObjectFactory()
          Get MetaObjectFactory of this context.
 PoliciesManager getPoliciesManager()
          Get the PoliciesManager instance of this context.
 PolicyDistributor getPolicyDistributor()
          Get the PolicyDistributor of this context.
 ResourceManager getResourceManager()
          Get the ResourceManager of this context.
 RoleManager getRoleManager()
          Get the role manager instance of this context.
 Scope getScope()
          Get current scope
 ScopeManager getScopeManager()
           
 boolean isTransactionStarted()
          Check if a transaction has already been started for this context
 void rollbackTransaction()
          Rollback the current transaction of this context.
 void setScope(Scope scope)
          Set current scope
 void startTransaction()
          Start a transaction for this context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startTransaction

public void startTransaction()
                      throws ManagementException
Start a transaction for this context.

Throws:
ManagementException - if the operation fails.

commitTansaction

public void commitTansaction()
                      throws ManagementException
Commit the current transaction of this context.

Throws:
ManagementException - if the operation fails

rollbackTransaction

public void rollbackTransaction()
                         throws ManagementException
Rollback the current transaction of this context.

Throws:
ManagementException - if the operation fails.

isTransactionStarted

public boolean isTransactionStarted()
Check if a transaction has already been started for this context

Returns:
true if the transaction is started or false if not.

getPolicyDistributor

public PolicyDistributor getPolicyDistributor()
                                       throws ManagementException
Get the PolicyDistributor of this context.

Returns:
PolicyDistributor of this context.
Throws:
ManagementException - if the operation fails.

getDirectoryManager

public DirectoryManager getDirectoryManager()
                                     throws ManagementException
Get the DirectoryManager of this context.

Returns:
DirectoryManager of this context.
Throws:
ManagementException - if the operation fails.

getResourceManager

public ResourceManager getResourceManager()
                                   throws ManagementException
Get the ResourceManager of this context.

Returns:
ResourceManager of this context.
Throws:
ManagementException - if the operation fails.

getActionManager

public ActionManager getActionManager()
                               throws ManagementException
Get the ActionManager of this context.

Returns:
ActionManager of this context.
Throws:
ManagementException - if the operation fails.

getActionGroupManager

public ActionGroupManager getActionGroupManager()
                                         throws ManagementException
Get the ActionGroupManager of this context.

Returns:
ActionGroupManager of this context.
Throws:
ManagementException - if the operation fails.

getConstantManager

public ConstantManager getConstantManager()
                                   throws ManagementException
Get the ConstantManager instance of this conext.

Returns:
ConstantManager of this conext.
Throws:
ManagementException - if the operation fails.

getExtensionsManager

public ExtensionsManager getExtensionsManager()
                                       throws ManagementException
Get the ExtensionsManager instance.

Returns:
ExtensionsManager
Throws:
ManagementException - if the operation fails.

getMetaObjectFactory

public MetaObjectFactory getMetaObjectFactory()
                                       throws ManagementException
Get MetaObjectFactory of this context.

Returns:
MetaObjectFactory of this context.
Throws:
ManagementException - if the operation fails.

getLoginUser

public java.lang.String getLoginUser()
                              throws ManagementException
Get login user name.

Returns:
qualified user name
Throws:
ManagementException - if the operation fails.

flushCache

public void flushCache()
                throws ManagementException
Flush all cache objects related to this context.

getPoliciesManager

public PoliciesManager getPoliciesManager()
                                   throws ManagementException
Get the PoliciesManager instance of this context.

Returns:
PoliciesManager the PoliciesManager instance of this context.
Throws:
ManagementException - if failed to create a new PoliciesManager instance

getRoleManager

public RoleManager getRoleManager()
                           throws ManagementException
Get the role manager instance of this context.

Returns:
RoleManager the RoleManager instance of this context.
Throws:
ManagementException - if failed to get the RoleManager instance

findAttribute

public AttributeElement findAttribute(java.lang.String attrName)
                               throws ManagementException

setScope

public void setScope(Scope scope)
Set current scope

getScope

public Scope getScope()
Get current scope

Returns:
 

getAdminRoleManager

public AdminRoleManager getAdminRoleManager()
                                     throws ManagementException

getScopeManager

public ScopeManager getScopeManager()
                             throws ManagementException


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