|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.plugin.AbstractPlugin
org.openpermis.editor.policy.plugin.AbstractPolicyPlugin
org.openpermis.editor.policy.plugin.AbstractConfigurationPolicyPlugin
org.openpermis.editor.policy.plugin.AbstractPolicySerializerPlugin
org.openpermis.editor.policy.plugin.BasicPolicySerializerPlugin
public class BasicPolicySerializerPlugin
Plugin that provides basic XML file serialization.
This plugin does not provide any menu or tool bar actions. It is injected or used as
PolicySerializer
wherever it is needed.
PolicyViewConfiguration.getPolicySerializer()
Constructor Summary | |
---|---|
BasicPolicySerializerPlugin(ApplicationContext context,
PolicyViewConfiguration configuration,
PolicyHolder policyHolder)
Creates a new plugin. |
Method Summary | |
---|---|
void |
loadPolicy()
Opens a file chooser to load a policy. |
void |
loadPolicy(File file)
Loads the specified policy from a file. |
void |
newPolicy()
Creates a new policy for editing. |
void |
savePolicy()
Saves the policy. |
void |
savePolicy(File file)
Saves the policy to given file. |
void |
savePolicyAs()
Saves the policy. |
Methods inherited from class org.openpermis.editor.policy.plugin.AbstractPolicySerializerPlugin |
---|
canReplacePolicyPresenter, confirmOverwrite, getBaseResourceMap, getBaseTranslation, getBaseTranslation, loadPolicyPresenter, savePolicyPresenter, setPolicyPresenter |
Methods inherited from class org.openpermis.editor.policy.plugin.AbstractConfigurationPolicyPlugin |
---|
getConfiguration |
Methods inherited from class org.openpermis.editor.policy.plugin.AbstractPolicyPlugin |
---|
getPolicyPresenter, refresh, updateActions |
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 |
---|
public BasicPolicySerializerPlugin(ApplicationContext context, PolicyViewConfiguration configuration, PolicyHolder policyHolder)
context
- the application context of this plugin.configuration
- the configuration of this plugin.policyHolder
- the holder to set new policies at.Method Detail |
---|
public void newPolicy()
PolicySerializer
newPolicy
in interface PolicySerializer
public void loadPolicy()
PolicySerializer
loadPolicy
in interface PolicySerializer
public void loadPolicy(File file)
PolicySerializer
loadPolicy
in interface PolicySerializer
file
- the file to load the policy from.public void savePolicy()
PolicySerializer
savePolicy
in interface PolicySerializer
public void savePolicy(File file)
PolicySerializer
savePolicy
in interface PolicySerializer
file
- the file to store the policy to.public void savePolicyAs()
PolicySerializer
savePolicyAs
in interface PolicySerializer
|
![]() |
||||||||
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