|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.view.AbstractView
org.openpermis.editor.policy.view.AbstractEditor<RoleHierarchyPresenter>
org.openpermis.editor.policy.view.RoleHierarchyEditor
public class RoleHierarchyEditor
Editor for a RoleHierarchyPresenter
.
Constructor Summary | |
---|---|
RoleHierarchyEditor(ApplicationContext context,
Adapter trader,
RoleHierarchyPresenter presenter)
Creates a RoleHierarchyEditor . |
Method Summary | |
---|---|
void |
addNewRole()
Adds a new role in the hierarchy. |
void |
ancestorAdded(AncestorEvent event)
|
void |
ancestorMoved(AncestorEvent event)
|
void |
ancestorRemoved(AncestorEvent event)
|
protected void |
bind(org.jdesktop.beansbinding.BindingGroup bindings)
Binds all components to the presenter. |
protected JComponent |
createContentPane()
Creates the content pane of this view. |
void |
detachRole()
Detaches a role from its parent. |
void |
getParents(org.openpermis.editor.policy.view.RoleNode roleNode,
List<org.openpermis.editor.policy.view.RoleNode> result)
Returns the parents of a role. |
Object[] |
getTitleParameters()
Returns the parameters for the title of this view. |
void |
includeRole()
Given a parent role, include a role among its children. |
void |
removeRole()
Removes a role from the hierarchy. |
void |
renameRole()
Renames a role. |
void |
setSelectionPath(org.openpermis.editor.policy.view.RoleNode node)
Sets the tree selection path. |
void |
updateTree()
|
Methods inherited from class org.openpermis.editor.policy.view.AbstractEditor |
---|
adjustTitleParameters, canClose, close, contentPaneCreated, dispose, getModelSerialNumber, getPresenter, showYesNoDialog |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canEditPart, closeView, createEditor, createFormBuilder, createTranslationConverter, detach, editPart, getAction, getActionMap, getAdapteeTrader, getApplicationContext, getContentPane, getControlFactory, getDefaultFocusComponent, getIcon, getParentView, getResourceMap, getTitle, getViewContext, isEmbedded, openView, setEnabled, setParentView, showStatusError, updateTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.editor.policy.view.View |
---|
attach, detach, getContentPane, getDefaultFocusComponent, getIcon, getParentView, getTitle, isEmbedded, setParentView |
Constructor Detail |
---|
public RoleHierarchyEditor(ApplicationContext context, Adapter trader, RoleHierarchyPresenter presenter)
RoleHierarchyEditor
.
Method Detail |
---|
@Action public void includeRole()
@Action public void detachRole()
@Action public void addNewRole()
@Action public void removeRole()
@Action public void renameRole()
public void updateTree()
public void getParents(org.openpermis.editor.policy.view.RoleNode roleNode, List<org.openpermis.editor.policy.view.RoleNode> result)
roleNode
- the role whose parents we get.result
- the result.public void setSelectionPath(org.openpermis.editor.policy.view.RoleNode node)
node
- whose path is going to be selected.protected void bind(org.jdesktop.beansbinding.BindingGroup bindings)
AbstractEditor
This method is called after creation of the content pane.
bind
in class AbstractEditor<RoleHierarchyPresenter>
bindings
- the binding group to add bindings to.public Object[] getTitleParameters()
AbstractView
The default implementations returns an empty array.
getTitleParameters
in class AbstractEditor<RoleHierarchyPresenter>
null
.protected JComponent createContentPane()
AbstractView
createContentPane
in class AbstractView
null
.public void ancestorAdded(AncestorEvent event)
ancestorAdded
in interface AncestorListener
public void ancestorMoved(AncestorEvent event)
ancestorMoved
in interface AncestorListener
public void ancestorRemoved(AncestorEvent event)
ancestorRemoved
in interface AncestorListener
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG