org.openpermis.editor.policy.presenter
Class TargetAccessRuleListPresenter

java.lang.Object
  extended by org.openpermis.editor.policy.presenter.Presenter<M>
      extended by org.openpermis.editor.policy.presenter.PartPresenter<org.openpermis.policy.bean.PolicyBean>
          extended by org.openpermis.editor.policy.presenter.TargetAccessRuleListPresenter

public class TargetAccessRuleListPresenter
extends PartPresenter<org.openpermis.policy.bean.PolicyBean>

Presenter for a list of TargetAccessRuleBeans found in a PolicyBean.

Since:
0.1.0

Field Summary
private  org.openpermis.policy.bean.TargetAccessRuleBean active
          The currently active target access rule.
private static org.slf4j.Logger LOGGER
          The logger object of this class.
private  org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetAccessRuleBean> targetAccessRules
          An observable list of all target access rules in the policy.
 
Constructor Summary
TargetAccessRuleListPresenter(org.openpermis.policy.bean.PolicyBean model, PolicyContext context)
          Creates a new target access rule list presenter.
 
Method Summary
 void addTargetAccessRule()
           
 org.openpermis.policy.bean.TargetAccessRuleBean getActive()
          Returns the currently active target access rule.
 org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetAccessRuleBean> getTargetAccessRules()
          Returns an observable list of target access rules.
 void removeTargetAccessRule(org.openpermis.policy.bean.TargetAccessRuleBean rule)
           
 void roleAssignmentRulesChanged()
          Handles property changes of targetAccessRules.
 void setActive(org.openpermis.policy.bean.TargetAccessRuleBean active)
          Sets the currently active target access rule.
 void targetAccessRulesChanged()
          Handles property changes of targetAccessRules.
 
Methods inherited from class org.openpermis.editor.policy.presenter.PartPresenter
change, change, containsSerial, createChangeCommand, createCollectionAtPresenter, dispose, execute, getActionPool, getAuthorityPool, getContext, getModelSerialNumber, getObligationPool, getPartBeanFactory, getResourceDomainPool, getRolePool, getSubjectDomainPool, getTargetPool, indexOfBySerial, sameSerial, updateCollectionAtPresenter
 
Methods inherited from class org.openpermis.editor.policy.presenter.Presenter
addPropertyChangeListener, firePropertyChange, getModel, getTitleParameters, removePropertyChangeListener, setTitleParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final org.slf4j.Logger LOGGER
The logger object of this class.

Since:
0.1.0

targetAccessRules

private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetAccessRuleBean> targetAccessRules
An observable list of all target access rules in the policy.

Since:
0.1.0

active

private org.openpermis.policy.bean.TargetAccessRuleBean active
The currently active target access rule.

Since:
0.1.0
Constructor Detail

TargetAccessRuleListPresenter

public TargetAccessRuleListPresenter(org.openpermis.policy.bean.PolicyBean model,
                                     PolicyContext context)
Creates a new target access rule list presenter.

Parameters:
model - the policy for which to provide the target access rules.
Since:
0.1.0
Method Detail

addTargetAccessRule

public void addTargetAccessRule()
Since:
0.1.0

removeTargetAccessRule

public void removeTargetAccessRule(org.openpermis.policy.bean.TargetAccessRuleBean rule)
Since:
0.1.0

getTargetAccessRules

public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetAccessRuleBean> getTargetAccessRules()
Returns an observable list of target access rules.

Returns:
an observable list of target access rules.
Since:
0.1.0

getActive

public org.openpermis.policy.bean.TargetAccessRuleBean getActive()
Returns the currently active target access rule.

Returns:
the currently active target access rule, may be null.
Since:
0.1.0

setActive

public void setActive(org.openpermis.policy.bean.TargetAccessRuleBean active)
Sets the currently active target access rule.

Parameters:
active - the target access rule to set active.
See Also:
setActive(TargetAccessRuleBean)
Since:
0.1.0

targetAccessRulesChanged

public void targetAccessRulesChanged()
Handles property changes of targetAccessRules.

Since:
0.1.0

roleAssignmentRulesChanged

public void roleAssignmentRulesChanged()
Handles property changes of targetAccessRules.

Since:
0.1.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG