org.openpermis.editor.policy.plugin
Class AbstractPolicyPlugin

java.lang.Object
  extended by org.openpermis.editor.policy.plugin.AbstractPlugin
      extended by org.openpermis.editor.policy.plugin.AbstractPolicyPlugin
All Implemented Interfaces:
Plugin, PolicyPlugin
Direct Known Subclasses:
AbstractConfigurationPolicyPlugin, ValidationPlugin, WsdlImportPlugin

public abstract class AbstractPolicyPlugin
extends AbstractPlugin
implements PolicyPlugin

Plugin that validates the active policy.

Since:
0.9.0

Constructor Summary
AbstractPolicyPlugin(ApplicationContext context)
          Creates a new validation plugin.
 
Method Summary
protected  PolicyPresenter getPolicyPresenter()
          Returns the active policy presenter.
 void refresh(PolicyPresenter newPresenter)
          Instructs the plugin to refresh itself with the specified policy presenter.
protected  void updateActions(boolean hasPresenter)
          Updates all actions of this plugin.
 
Methods inherited from class org.openpermis.editor.policy.plugin.AbstractPlugin
customizeMenu, customizeToolBar, getAction, getActionMap, getApplicationContext, getMainContentPane, getMainFrame, getResourceMap, getTranslation, getTranslation, showError, showWarning
 
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.plugin.Plugin
customizeMenu, customizeToolBar
 

Constructor Detail

AbstractPolicyPlugin

public AbstractPolicyPlugin(ApplicationContext context)
Creates a new validation plugin.

Parameters:
context - the application context of this plugin.
Since:
0.9.0
Method Detail

getPolicyPresenter

protected PolicyPresenter getPolicyPresenter()
Returns the active policy presenter.

Returns:
the active policy presenter, may be null.
Since:
0.9.0

updateActions

protected void updateActions(boolean hasPresenter)
Updates all actions of this plugin.

Parameters:
hasPresenter - true if a presenter is set, false otherwise.
Since:
0.9.0

refresh

public void refresh(PolicyPresenter newPresenter)
Description copied from interface: PolicyPlugin
Instructs the plugin to refresh itself with the specified policy presenter.

Specified by:
refresh in interface PolicyPlugin
Parameters:
newPresenter - the policy presenter to refresh with.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG