org.openpermis.editor.policy.presenter
Class PolicyPool

java.lang.Object
  extended by org.openpermis.editor.policy.presenter.PolicyPool

public class PolicyPool
extends Object

Pool Handling for a policy presenter.

Since:
0.1.0

Field Summary
private  PolicyPartPool<org.openpermis.policy.bean.ActionBean> actionPool
           
private  PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> authorityPool
           
private  PolicyPartPool<org.openpermis.policy.bean.ObligationBean> obligationPool
           
private  PolicyPartPool<org.openpermis.policy.bean.DomainBean> resourceDomainPool
           
private  PolicyRoleRefPool rolePool
           
private  PolicyPartPool<org.openpermis.policy.bean.DomainBean> subjectDomainPool
           
private  PolicyPartPool<org.openpermis.policy.bean.TargetBean> targetPool
           
 
Constructor Summary
PolicyPool(org.openpermis.policy.bean.PolicyBean policy)
          Creates a new presenter for the specified policy.
 
Method Summary
 PolicyPartPool<org.openpermis.policy.bean.ActionBean> getActionPool()
          Returns the policy pool for actions.
 PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> getAuthorityPool()
          Returns the policy pool for authorities.
 PolicyPartPool<org.openpermis.policy.bean.ObligationBean> getObligationPool()
          Returns the policy pool for obligations.
 PolicyPartPool<org.openpermis.policy.bean.DomainBean> getResourceDomainPool()
          Returns the policy pool for resourceDomains.
 PolicyRoleRefPool getRolePool()
          Returns the policy pool for roles.
 PolicyPartPool<org.openpermis.policy.bean.DomainBean> getSubjectDomainPool()
          Returns the policy pool for subjectDomains.
 PolicyPartPool<org.openpermis.policy.bean.TargetBean> getTargetPool()
          Returns the policy pool for targets.
 void mergePool(org.openpermis.policy.bean.PolicyBean policy, boolean expunge)
          Merges all pools.
 void mergeRolePool(org.openpermis.policy.bean.PolicyBean policy, boolean expunge)
          Merges role pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceDomainPool

private final PolicyPartPool<org.openpermis.policy.bean.DomainBean> resourceDomainPool

subjectDomainPool

private final PolicyPartPool<org.openpermis.policy.bean.DomainBean> subjectDomainPool

targetPool

private final PolicyPartPool<org.openpermis.policy.bean.TargetBean> targetPool

obligationPool

private final PolicyPartPool<org.openpermis.policy.bean.ObligationBean> obligationPool

rolePool

private final PolicyRoleRefPool rolePool

actionPool

private final PolicyPartPool<org.openpermis.policy.bean.ActionBean> actionPool

authorityPool

private final PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> authorityPool
Constructor Detail

PolicyPool

public PolicyPool(org.openpermis.policy.bean.PolicyBean policy)
Creates a new presenter for the specified policy.

Parameters:
policy - the policy to create the presenter for, must not be null.
Since:
0.1.0
Method Detail

getResourceDomainPool

public PolicyPartPool<org.openpermis.policy.bean.DomainBean> getResourceDomainPool()
Returns the policy pool for resourceDomains.

Returns:
Returns the policy pool for resourceDomains.
Since:
0.1.0

getSubjectDomainPool

public PolicyPartPool<org.openpermis.policy.bean.DomainBean> getSubjectDomainPool()
Returns the policy pool for subjectDomains.

Returns:
Returns the policy pool for subjectDomains.
Since:
0.3.0

getTargetPool

public PolicyPartPool<org.openpermis.policy.bean.TargetBean> getTargetPool()
Returns the policy pool for targets.

Returns:
Returns the policy pool for targets.
Since:
0.1.0

getObligationPool

public PolicyPartPool<org.openpermis.policy.bean.ObligationBean> getObligationPool()
Returns the policy pool for obligations.

Returns:
Returns the policy pool for obligations.
Since:
0.3.0

getRolePool

public PolicyRoleRefPool getRolePool()
Returns the policy pool for roles.

Returns:
Returns the policy pool for roles.
Since:
0.1.0

getActionPool

public PolicyPartPool<org.openpermis.policy.bean.ActionBean> getActionPool()
Returns the policy pool for actions.

Returns:
Returns the policy pool for actions.
Since:
0.1.0

getAuthorityPool

public PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> getAuthorityPool()
Returns the policy pool for authorities.

Returns:
a part pool for authorities.
Since:
0.3.0

mergePool

public void mergePool(org.openpermis.policy.bean.PolicyBean policy,
                      boolean expunge)
Merges all pools.

Parameters:
policy - the policy.
expunge - indicates if unused parts are removed from the list.
Since:
0.1.0

mergeRolePool

public void mergeRolePool(org.openpermis.policy.bean.PolicyBean policy,
                          boolean expunge)
Merges role pool.

Parameters:
policy - the policy.
expunge - indicates if unused parts are removed from the list.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG