|
![]() |
||||||||
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.AbstractToolView<TargetAccessRuleListPresenter>
org.openpermis.editor.policy.view.TargetAccessRuleListTool
public class TargetAccessRuleListTool
Tool view that displays all target access rules in a policy.
Nested Class Summary | |
---|---|
private class |
TargetAccessRuleListTool.Renderer
Renderer for target access rules. |
Field Summary | |
---|---|
private JList |
list
The list used to render the target access rules. |
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
Fields inherited from class org.openpermis.editor.policy.view.AbstractToolView |
---|
DEFAULT_LOCATION |
Constructor Summary | |
---|---|
TargetAccessRuleListTool(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader)
Creates an target access rules tool view. |
Method Summary | |
---|---|
void |
addRule()
Command to add a new target access rule. |
protected void |
attachPresenter(TargetAccessRuleListPresenter presenter,
org.jdesktop.beansbinding.BindingGroup bindings)
Attaches any listeners required to the new presenter and binds components. |
JComponent |
createContentPane()
Creates the content pane of this view. |
protected void |
detachPresenter(TargetAccessRuleListPresenter presenter)
Unlinks any listeners from the specified old presenter. |
void |
editRule()
Command to edit the active target access rule. |
void |
propertyChange(PropertyChangeEvent event)
|
void |
refresh(org.openpermis.policy.bean.PolicyBean policy,
PolicyContext context)
Instructs the tool to refresh itself with the specified policy. |
void |
removeRule()
Command to remove the active target access rule. |
protected void |
updateActions()
Prompts the tool to update its actions according to the presenter state. |
Methods inherited from class org.openpermis.editor.policy.view.AbstractToolView |
---|
contentPaneCreated, createToolBar, getDefaultLocation, getPresenter, getToolBar, getToolIdentifier, setPresenter |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canClose, canEditPart, closeView, detach, editPart, getActionMap, getAdapteeTrader, getContentPane, getIcon, getResourceMap, getTitle, getTitleParameters, getViewContext, label, openView, showStatusError, toolBar, 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, canClose, detach, getContentPane, getIcon, getTitle |
Field Detail |
---|
private static final org.slf4j.Logger LOGGER
private JList list
Constructor Detail |
---|
public TargetAccessRuleListTool(org.jdesktop.application.ApplicationContext context, AdapterTrader trader)
context
- the application context used to lookup the action and resource map.Method Detail |
---|
@Action public void addRule()
@Action public void removeRule()
@Action public void editRule()
public void refresh(org.openpermis.policy.bean.PolicyBean policy, PolicyContext context)
Tool
Called whenever the policy that this view renders changes.
refresh
in interface Tool
policy
- the policy to refresh with.context
- the policy context to use.protected void updateActions()
AbstractToolView
The default implementation does nothing.
updateActions
in class AbstractToolView<TargetAccessRuleListPresenter>
protected void detachPresenter(TargetAccessRuleListPresenter presenter)
AbstractToolView
This is called before a new presenter is set.
The default implementation removes any bean bindings.
detachPresenter
in class AbstractToolView<TargetAccessRuleListPresenter>
presenter
- the presenter to unlink.AbstractToolView.setPresenter(Presenter)
protected void attachPresenter(TargetAccessRuleListPresenter presenter, org.jdesktop.beansbinding.BindingGroup bindings)
AbstractToolView
The default implementation initializes the content pane if necessary.
attachPresenter
in class AbstractToolView<TargetAccessRuleListPresenter>
presenter
- the new presenter to attach to.bindings
- the binding group to add bindings to.public JComponent createContentPane()
AbstractView
createContentPane
in class AbstractView
null
.public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
|
![]() |
||||||||
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