|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.presenter.Presenter<M>
org.openpermis.editor.policy.presenter.PartPresenter<org.openpermis.policy.bean.RoleAssignmentRuleBean>
org.openpermis.editor.policy.presenter.RoleAssignmentRulePresenter
public class RoleAssignmentRulePresenter
Presenter for a single RoleAssignmentRuleBean
.
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 |
---|
public RoleAssignmentRulePresenter(org.openpermis.policy.bean.RoleAssignmentRuleBean model, PolicyContext context)
model
- the RoleAssignmentRuleBean
to work on, must not be null
.context
- policy context that provides additional information.Method Detail |
---|
public org.openpermis.policy.bean.DomainBean getActiveSubjectDomain()
public void setActiveResourceDomain(org.openpermis.policy.bean.DomainBean activeSubjectDomainBean)
activeSubjectDomainBean
- the new resource domain.public void removeActiveSubjectDomain(org.openpermis.policy.bean.DomainBean subjectDomain)
public void addSubjectDomain(EditPartCommand<org.openpermis.policy.bean.DomainBean> editPartCommand)
editPartCommand
- adding a domain implies opening an editor.public org.openpermis.policy.bean.AuthorityBean getActiveAuthority()
public void setActiveAuthority(org.openpermis.policy.bean.AuthorityBean newActiveAuthority)
newActiveAuthority
- the new authority.public void removeActiveAuthority(org.openpermis.policy.bean.AuthorityBean authority)
public void addAuthority(EditPartCommand<org.openpermis.policy.bean.AuthorityBean> editPartCommand)
editPartCommand
- adding an authority implies opening an editor.public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getRoles()
RoleAssignmentRuleBean
.
RoleAssignmentRuleBean
.public void updateDelegationDepthAtModel(int newDelegationDepth)
newDelegationDepth
- the new delegation depth.public int getDelegationDepth()
public void updateDelegationDepth(int newDelegationDepth)
newDelegationDepth
- the delegation depth.public org.openpermis.basic.TimePeriodConstraint getConstraint()
public void updateConstraintAtModel(org.openpermis.basic.TimePeriodConstraint newConstraint)
newConstraint
- the constraint.public void updateConstraint(org.openpermis.basic.TimePeriodConstraint newConstraint)
newConstraint
- the constraint.public void updateAuthority()
public void updateResourceDomain()
public void updateRoles()
public void updateDelegationDepth()
RoleAssignmentRuleBean
bean.
public void updateConstraint()
TimePeriodConstraint
of a RoleAssignmentRuleBean
bean.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG