|
![]() |
||||||||
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
.
Field Summary | |
---|---|
private org.openpermis.policy.bean.AuthorityBean |
activeAuthority
The currently active authority. |
private org.openpermis.policy.bean.DomainBean |
activeSubjectDomain
The currently active subject domain. |
private org.openpermis.basic.TimePeriodConstraint |
constraint
|
private int |
delegationDepth
|
private static org.slf4j.Logger |
LOGGER
|
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
roles
|
private org.jdesktop.observablecollections.ObservableListListener |
rolesUpdater
|
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. |
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
createRoleList(org.openpermis.policy.bean.RoleAssignmentRuleBean model)
Creates the initial role list for the specified model. |
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. |
private String |
getIdentity(org.openpermis.policy.Identifiable identifiable)
Returns the identity string representation of the specified identifiable. |
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. |
private void |
updateActiveAuthority(org.openpermis.policy.bean.AuthorityBean newActiveAuthority)
Forwards model changes to the listeners of this presenter. |
private void |
updateActiveSubjectDomain(org.openpermis.policy.bean.DomainBean activeSubjectDomainBean)
Forwards model changes to the listeners of this presenter. |
private void |
updateAddedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles,
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
|
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. |
private void |
updateDeletedRolesAtPresenter(org.openpermis.policy.bean.RoleCollection modelRoles,
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> list)
|
void |
updateResourceDomain()
Handler for subject domain changes in a target. |
void |
updateRoles()
Handler for changes in the roles of a role assignment rule 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. |
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 org.openpermis.policy.bean.AuthorityBean activeAuthority
private org.openpermis.policy.bean.DomainBean activeSubjectDomain
private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> roles
private final org.jdesktop.observablecollections.ObservableListListener rolesUpdater
private int delegationDepth
private org.openpermis.basic.TimePeriodConstraint constraint
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.private void updateActiveSubjectDomain(org.openpermis.policy.bean.DomainBean activeSubjectDomainBean)
activeSubjectDomainBean
- the active resource domain to set.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.private void updateActiveAuthority(org.openpermis.policy.bean.AuthorityBean newActiveAuthority)
newActiveAuthority
- the active 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.private String getIdentity(org.openpermis.policy.Identifiable identifiable)
identifiable
- the identifiable for which to retrieve the identity.
private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> createRoleList(org.openpermis.policy.bean.RoleAssignmentRuleBean model)
model
- the model to create the list for.
null
.private void updateRolesAtModel()
private void updateRolesAtPresenter()
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)
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:48
Copyright (c) 2002-2007 Ergon Informatik AG