org.openpermis.editor.policy.presenter
Class RoleAssignmentRuleListPresenter

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.RoleAssignmentRuleListPresenter

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

Presenter for a list of RoleAssignmentRuleBeans found in a PolicyBean.

Since:
0.3.0

Constructor Summary
RoleAssignmentRuleListPresenter(org.openpermis.policy.bean.PolicyBean model, PolicyContext context)
          Creates a new role assignment rule list presenter.
 
Method Summary
 void addRoleAssignmentRule()
           
 org.openpermis.policy.bean.RoleAssignmentRuleBean getActive()
          Returns the currently active role assignment rule.
 org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.RoleAssignmentRuleBean> getRoleAssignmentRules()
          Returns an observable list of role assignment rules.
 void policyChanged()
          Handles all other property changes on the policy.
 void removeRoleAssignmentRule(org.openpermis.policy.bean.RoleAssignmentRuleBean rule)
           
 void roleAssignmentRulesChanged()
          Handles property changes of roleAssignmentRules.
 void setActive(org.openpermis.policy.bean.RoleAssignmentRuleBean active)
          Sets the currently active role assignment rule.
 
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
 

Constructor Detail

RoleAssignmentRuleListPresenter

public RoleAssignmentRuleListPresenter(org.openpermis.policy.bean.PolicyBean model,
                                       PolicyContext context)
Creates a new role assignment rule list presenter.

Parameters:
model - the policy for which to provide the role assignment rules.
Since:
0.3.0
Method Detail

addRoleAssignmentRule

public void addRoleAssignmentRule()
Since:
0.3.0

removeRoleAssignmentRule

public void removeRoleAssignmentRule(org.openpermis.policy.bean.RoleAssignmentRuleBean rule)
Since:
0.3.0

getRoleAssignmentRules

public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.RoleAssignmentRuleBean> getRoleAssignmentRules()
Returns an observable list of role assignment rules.

Returns:
an observable list of role assignment rules.
Since:
0.3.0

getActive

public org.openpermis.policy.bean.RoleAssignmentRuleBean getActive()
Returns the currently active role assignment rule.

Returns:
the currently active role assignment rule, may be null.
Since:
0.3.0

setActive

public void setActive(org.openpermis.policy.bean.RoleAssignmentRuleBean active)
Sets the currently active role assignment rule.

Parameters:
active - the role assignment rule to set active.
See Also:
setActive(RoleAssignmentRuleBean)
Since:
0.3.0

roleAssignmentRulesChanged

public void roleAssignmentRulesChanged()
Handles property changes of roleAssignmentRules.

Since:
0.3.0

policyChanged

public void policyChanged()
Handles all other property changes on the policy.

Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG