org.openpermis.editor.policy.presenter
Class RoleAssignmentRulePresenter

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

public class RoleAssignmentRulePresenter
extends PartPresenter<org.openpermis.policy.bean.RoleAssignmentRuleBean>

Presenter for a single RoleAssignmentRuleBean.

Since:
0.3.0

Constructor Summary
RoleAssignmentRulePresenter(org.openpermis.policy.bean.RoleAssignmentRuleBean model, PolicyContext context)
          Creates a new role assignment rule presenter.
 
Method Summary
 void addAuthority(EditPartCommand<org.openpermis.policy.bean.AuthorityBean> editPartCommand)
          Adds an authority.
 void addSubjectDomain(EditPartCommand<org.openpermis.policy.bean.DomainBean> editPartCommand)
          Adds a subject domain.
 org.openpermis.policy.bean.AuthorityBean getActiveAuthority()
          Returns the active authority of this model.
 org.openpermis.policy.bean.DomainBean getActiveSubjectDomain()
          Returns the active subject domain of this model.
 org.openpermis.basic.TimePeriodConstraint getConstraint()
           
 int getDelegationDepth()
          Gets the delegation depth.
 org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getRoles()
          The list of roles of this RoleAssignmentRuleBean.
 void removeActiveAuthority(org.openpermis.policy.bean.AuthorityBean authority)
          Removes the active authority in the whole policy.
 void removeActiveSubjectDomain(org.openpermis.policy.bean.DomainBean subjectDomain)
          Removes the active subject domain in the whole policy.
 void setActiveAuthority(org.openpermis.policy.bean.AuthorityBean newActiveAuthority)
          Sets the active authority of the target of this model.
 void setActiveResourceDomain(org.openpermis.policy.bean.DomainBean activeSubjectDomainBean)
          Sets the active subject domain of the target of this model.
 void updateAuthority()
          Handler for authority domain changes in a target.
 void updateConstraint()
          Handler for changes in the TimePeriodConstraint of a RoleAssignmentRuleBean bean.
 void updateConstraint(org.openpermis.basic.TimePeriodConstraint newConstraint)
          Sets the constraint.
 void updateConstraintAtModel(org.openpermis.basic.TimePeriodConstraint newConstraint)
          Updates the constraint in the model.
 void updateDelegationDepth()
          Handler for changes in the delegationDepth of a RoleAssignmentRuleBean bean.
 void updateDelegationDepth(int newDelegationDepth)
          Sets the delegation depth.
 void updateDelegationDepthAtModel(int newDelegationDepth)
          Updates the delegation depth in the model.
 void updateResourceDomain()
          Handler for subject domain changes in a target.
 void updateRoles()
          Handler for changes in the roles of a role assignment rule bean.
 
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

RoleAssignmentRulePresenter

public RoleAssignmentRulePresenter(org.openpermis.policy.bean.RoleAssignmentRuleBean model,
                                   PolicyContext context)
Creates a new role assignment rule presenter.

Parameters:
model - the RoleAssignmentRuleBean to work on, must not be null.
context - policy context that provides additional information.
Since:
0.3.0
Method Detail

getActiveSubjectDomain

public org.openpermis.policy.bean.DomainBean getActiveSubjectDomain()
Returns the active subject domain of this model.

Returns:
the active subject domain of this model.
Since:
new

setActiveResourceDomain

public void setActiveResourceDomain(org.openpermis.policy.bean.DomainBean activeSubjectDomainBean)
Sets the active subject domain of the target of this model.

Parameters:
activeSubjectDomainBean - the new resource domain.
Since:
0.3.0

removeActiveSubjectDomain

public void removeActiveSubjectDomain(org.openpermis.policy.bean.DomainBean subjectDomain)
Removes the active subject domain in the whole policy.

Since:
0.3.0

addSubjectDomain

public void addSubjectDomain(EditPartCommand<org.openpermis.policy.bean.DomainBean> editPartCommand)
Adds a subject domain.

Parameters:
editPartCommand - adding a domain implies opening an editor.
Since:
0.3.0

getActiveAuthority

public org.openpermis.policy.bean.AuthorityBean getActiveAuthority()
Returns the active authority of this model.

Returns:
the active authority of this model.
Since:
new

setActiveAuthority

public void setActiveAuthority(org.openpermis.policy.bean.AuthorityBean newActiveAuthority)
Sets the active authority of the target of this model.

Parameters:
newActiveAuthority - the new authority.
Since:
0.3.0

removeActiveAuthority

public void removeActiveAuthority(org.openpermis.policy.bean.AuthorityBean authority)
Removes the active authority in the whole policy.

Since:
0.3.0

addAuthority

public void addAuthority(EditPartCommand<org.openpermis.policy.bean.AuthorityBean> editPartCommand)
Adds an authority.

Parameters:
editPartCommand - adding an authority implies opening an editor.
Since:
0.3.0

getRoles

public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getRoles()
The list of roles of this RoleAssignmentRuleBean.

Returns:
the list of roles of this RoleAssignmentRuleBean.
Since:
0.3.0

updateDelegationDepthAtModel

public void updateDelegationDepthAtModel(int newDelegationDepth)
Updates the delegation depth in the model.

Parameters:
newDelegationDepth - the new delegation depth.
Since:
0.3.0

getDelegationDepth

public int getDelegationDepth()
Gets the delegation depth.

Returns:
the delegation depth.
Since:
0.3.0

updateDelegationDepth

public void updateDelegationDepth(int newDelegationDepth)
Sets the delegation depth.

Parameters:
newDelegationDepth - the delegation depth.
Since:
0.3.0

getConstraint

public org.openpermis.basic.TimePeriodConstraint getConstraint()
Since:
0.3.0

updateConstraintAtModel

public void updateConstraintAtModel(org.openpermis.basic.TimePeriodConstraint newConstraint)
Updates the constraint in the model.

Parameters:
newConstraint - the constraint.
Since:
0.3.0

updateConstraint

public void updateConstraint(org.openpermis.basic.TimePeriodConstraint newConstraint)
Sets the constraint.

Parameters:
newConstraint - the constraint.
Since:
0.3.0

updateAuthority

public void updateAuthority()
Handler for authority domain changes in a target.

Since:
0.3.0

updateResourceDomain

public void updateResourceDomain()
Handler for subject domain changes in a target.

Since:
0.3.0

updateRoles

public void updateRoles()
Handler for changes in the roles of a role assignment rule bean.

Since:
new

updateDelegationDepth

public void updateDelegationDepth()
Handler for changes in the delegationDepth of a RoleAssignmentRuleBean bean.

Since:
0.3.0

updateConstraint

public void updateConstraint()
Handler for changes in the TimePeriodConstraint of a RoleAssignmentRuleBean bean.

Since:
0.3.0


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