|
![]() |
||||||||
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.RoleHierarchyBean>
org.openpermis.editor.policy.presenter.RoleHierarchyPresenter
public class RoleHierarchyPresenter
Presenter for a single RoleHierarchyBean
.
Field Summary | |
---|---|
private org.openpermis.policy.bean.basic.BasicPartBeanFactory |
basicPartBeanFactory
|
private URI |
identity
|
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
Constructor Summary | |
---|---|
RoleHierarchyPresenter(org.openpermis.policy.bean.RoleHierarchyBean model,
PolicyContext context)
Creates a new RoleHierarchyPresenter . |
Method Summary | |
---|---|
void |
addNewRole(String subRoleName)
Adds a new role in the hierarchy. |
void |
detachRole(String parentName,
String subRoleName)
Detaches a role from its parent. |
org.openpermis.policy.bean.basic.BasicPartBeanFactory |
getBasicPartBeanFactory()
Gets the BasicPartBeanFactory . |
URI |
getIdentity()
Gets the identity. |
org.openpermis.policy.bean.RoleHierarchyBean |
getRoleHierarchyBean()
Gets the model consisting in a RoleHierarchyBean . |
void |
includeRole(String parentName,
String subRoleName)
Given a parent role, include a role among its children. |
void |
removeRole(String subRoleName)
Removes a role from the hierarchy. |
void |
renameRole(String oldName,
String newName)
Renames a role. |
void |
setIdentity(URI identity)
Sets the identity of the model. |
void |
updateIdentity()
Handles property changes of identity. |
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 URI identity
private org.openpermis.policy.bean.basic.BasicPartBeanFactory basicPartBeanFactory
Constructor Detail |
---|
public RoleHierarchyPresenter(org.openpermis.policy.bean.RoleHierarchyBean model, PolicyContext context)
RoleHierarchyPresenter
.
model
- the action to work on.context
- policy context that provides additional information.Method Detail |
---|
public URI getIdentity()
public void setIdentity(URI identity)
identity
- the new identity to set.public void includeRole(String parentName, String subRoleName)
parentName
- name of the role to which the sub role is added.subRoleName
- name of the added sub role.public void detachRole(String parentName, String subRoleName)
parentName
- the parent name.subRoleName
- the sub-role name.public void addNewRole(String subRoleName)
subRoleName
- name of the added sub role.public void removeRole(String subRoleName)
subRoleName
- the sub-role name.public void renameRole(String oldName, String newName)
oldName
- old role name.newName
- new role name.public org.openpermis.policy.bean.RoleHierarchyBean getRoleHierarchyBean()
RoleHierarchyBean
.
public org.openpermis.policy.bean.basic.BasicPartBeanFactory getBasicPartBeanFactory()
BasicPartBeanFactory
.
BasicPartBeanFactory
.public void updateIdentity()
|
![]() |
||||||||
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