|
![]() |
||||||||
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.TargetAccessRuleBean>
org.openpermis.editor.policy.presenter.TargetAccessRulePresenter
public class TargetAccessRulePresenter
Presenter for a single TargetAccessRuleBean
.
Field Summary | |
---|---|
private org.openpermis.policy.Predicate |
condition
This target access rule's condition. |
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> |
obligations
The obligations of this targetaccessrule-view as observable collection. |
private org.jdesktop.observablecollections.ObservableListListener |
obligationsUpdater
Updater that keeps the model in sync with the observable obligation list. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
roles
The roles of this targetaccessrule-view as observable collection. |
private org.jdesktop.observablecollections.ObservableListListener |
rolesUpdater
Updater that keeps the model in sync with the observable roles list. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> |
targets
The targets of this targetaccessrule-view as observable collection. |
private org.jdesktop.observablecollections.ObservableListListener |
targetsUpdater
Updater that keeps the model in sync with the observable targets list. |
Constructor Summary | |
---|---|
TargetAccessRulePresenter(org.openpermis.policy.bean.TargetAccessRuleBean model,
PolicyContext context)
Creates a new target access rule presenter. |
Method Summary | |
---|---|
void |
addObligation(EditPartCommand<org.openpermis.policy.bean.ObligationBean> editPartCommand)
|
void |
addTarget(EditPartCommand<org.openpermis.policy.bean.TargetBean> editPartCommand)
|
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> |
createObligationList(org.openpermis.policy.bean.TargetAccessRuleBean model)
Creates the initial obligation list for the specified model. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
createRoleList(org.openpermis.policy.bean.TargetAccessRuleBean model)
Creates the initial role list for the specified model. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> |
createTargetList(org.openpermis.policy.bean.TargetAccessRuleBean model)
Creates the initial target list for the specified model. |
org.openpermis.policy.Predicate |
getCondition()
Returns the condition. |
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> |
getObligations()
The list of obligations of this targetaccessrule. |
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
getRoles()
The list of roles of this targetaccessrule. |
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> |
getTargets()
The list of targets of this targetaccessrule. |
void |
removeActiveObligation(org.openpermis.policy.bean.ObligationBean activeObligation)
Removes the active obligation in the whole policy. |
void |
removeActiveTarget(org.openpermis.policy.bean.TargetBean activeTarget)
Removes the active target in the whole policy. |
private void |
updateAddedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles,
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
|
void |
updateCondition()
Handler for changes in the condition of a targetaccessrule bean. |
void |
updateConditionAtModel(org.openpermis.policy.Predicate predicate)
Writes the condition in the presenter to the model. |
private void |
updateConditionAtPresenter()
Writes the condition in the presenter according to the model. |
private void |
updateDeletedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles,
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
|
void |
updateObligations()
Handler for changes in the obligations of a targetaccessrule bean. |
private void |
updateObligationsAtModel()
Writes the obligations in the presenter to the model. |
private void |
updateObligationsAtPresenter()
Writes the obligations in the presenter according to the model. |
void |
updateRoles()
Handler for changes in the roles of a targetaccessrule bean. |
private void |
updateRolesAtModel()
Writes the roles in the presenter to the model. |
private void |
updateRolesAtPresenter()
Writes the roles in the presenter according to the model. |
void |
updateTargets()
Handler for changes in the targets of a targetaccessrule bean. |
private void |
updateTargetsAtModel()
Writes the targets in the presenter to the model. |
private void |
updateTargetsAtPresenter()
Writes the targets in the presenter according to the model. |
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 |
---|
private static final org.slf4j.Logger LOGGER
private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> targets
private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> obligations
private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> roles
private final org.jdesktop.observablecollections.ObservableListListener rolesUpdater
private final org.jdesktop.observablecollections.ObservableListListener targetsUpdater
private final org.jdesktop.observablecollections.ObservableListListener obligationsUpdater
private org.openpermis.policy.Predicate condition
Constructor Detail |
---|
public TargetAccessRulePresenter(org.openpermis.policy.bean.TargetAccessRuleBean model, PolicyContext context)
model
- the target access rule to work on, must not be null
.context
- policy context that provides additional information. *Method Detail |
---|
public org.openpermis.policy.Predicate getCondition()
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> createRoleList(org.openpermis.policy.bean.TargetAccessRuleBean model)
model
- the model to create the list for.
null
.private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> createTargetList(org.openpermis.policy.bean.TargetAccessRuleBean model)
model
- the model to create the list for.
null
.private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> createObligationList(org.openpermis.policy.bean.TargetAccessRuleBean model)
model
- the model to create the list for.
null
.private void updateRolesAtModel()
private void updateTargetsAtModel()
private void updateObligationsAtModel()
private void updateRolesAtPresenter()
public void updateConditionAtModel(org.openpermis.policy.Predicate predicate)
private void updateConditionAtPresenter()
private void updateAddedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles, org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
private void updateDeletedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles, org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
private void updateTargetsAtPresenter()
private void updateObligationsAtPresenter()
public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getRoles()
public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.TargetBean> getTargets()
public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ObligationBean> getObligations()
public void removeActiveTarget(org.openpermis.policy.bean.TargetBean activeTarget)
public void removeActiveObligation(org.openpermis.policy.bean.ObligationBean activeObligation)
public void addTarget(EditPartCommand<org.openpermis.policy.bean.TargetBean> editPartCommand)
public void addObligation(EditPartCommand<org.openpermis.policy.bean.ObligationBean> editPartCommand)
public void updateTargets()
public void updateObligations()
public void updateRoles()
public void updateCondition()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG