org.ow2.jonas.lib.security
Class AbsPermissionManager

java.lang.Object
  extended by org.ow2.jonas.lib.security.AbsPermissionManager
Direct Known Subclasses:
PermissionManager, PermissionManager

public abstract class AbsPermissionManager
extends Object

Defines an abstract PermissionManager class which will manage JACC permissions for an ejbjar, webapp, etc.

Author:
Florent Benoit

Constructor Summary
AbsPermissionManager(String contextId)
          Default Constructor.
AbsPermissionManager(String contextId, boolean remove)
          Default Constructor.
 
Method Summary
 void commit()
          Commit the Policy Configuration.
 void delete()
          Delete this object.
protected  String getContextId()
           
protected static Policy getPolicy()
           
protected  PolicyConfiguration getPolicyConfiguration()
           
protected abstract  void resetDeploymentDesc()
          Reset Deployment Descriptor.
protected  void setContextId(String contextId)
           
protected static void setPolicy(Policy policy)
           
protected  void setPolicyConfiguration(PolicyConfiguration policyConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsPermissionManager

public AbsPermissionManager(String contextId)
                     throws PermissionManagerException
Default Constructor.

Parameters:
contextId - context ID used for PolicyContext
Throws:
PermissionManagerException - if permissions can't be set

AbsPermissionManager

public AbsPermissionManager(String contextId,
                            boolean remove)
                     throws PermissionManagerException
Default Constructor.

Parameters:
contextId - context ID used for PolicyContext
remove - - if true, the policy configuration will be removed.
Throws:
PermissionManagerException - if permissions can't be set
Method Detail

delete

public void delete()
            throws PermissionManagerException
Delete this object.

Throws:
PermissionManagerException - if the configuration can't be deleted

commit

public void commit()
            throws PermissionManagerException
Commit the Policy Configuration.

Throws:
PermissionManagerException - if commit can't be done

resetDeploymentDesc

protected abstract void resetDeploymentDesc()
Reset Deployment Descriptor.


getPolicy

protected static Policy getPolicy()
Returns:
Returns the policy.

setPolicy

protected static void setPolicy(Policy policy)
Parameters:
policy - The policy to set.

getContextId

protected String getContextId()
Returns:
Returns the contextId.

setContextId

protected void setContextId(String contextId)
Parameters:
contextId - The contextId to set.

getPolicyConfiguration

protected PolicyConfiguration getPolicyConfiguration()
Returns:
Returns the policyConfiguration.

setPolicyConfiguration

protected void setPolicyConfiguration(PolicyConfiguration policyConfiguration)
Parameters:
policyConfiguration - The policyConfiguration to set.


Copyright © 2010 OW2 Consortium. All Rights Reserved.