|
![]() |
||||||||
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
public abstract class AbstractPolicySerializerPlugin
Plugin that provides standard file serialization.
Base class for serialization plugins.
Constructor Summary | |
---|---|
AbstractPolicySerializerPlugin(ApplicationContext context,
PolicyViewConfiguration configuration,
PolicyHolder policyHolder)
Creates a new plugin. |
Method Summary | |
---|---|
protected boolean |
canReplacePolicyPresenter()
Check if the policy presenter can be replaced at the holder. |
protected boolean |
confirmOverwrite(File file)
Asks the user to confirm overwriting the specified file. |
protected org.jdesktop.application.ResourceMap |
getBaseResourceMap()
Returns the context resource map of the abstract serializer. |
protected String |
getBaseTranslation(String key)
Returns the abstract serializer translation for the specified key. |
protected String |
getBaseTranslation(String key,
Object... args)
Returns the abstract serializer translation for the specified key. |
protected PolicyPresenter |
loadPolicyPresenter(Reader reader,
File file)
Loads the policy using the standard permis XML reader. |
protected boolean |
savePolicyPresenter(Writer writer,
File file,
PolicyPresenter policyPresenter)
Stores the policy using the standard permis XML writer. |
protected void |
setPolicyPresenter(PolicyPresenter policyPresenter)
Sets the policy at the policy holder. |
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 AbstractPolicySerializerPlugin(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 |
---|
protected org.jdesktop.application.ResourceMap getBaseResourceMap()
protected String getBaseTranslation(String key)
key
- the key to translate.
protected String getBaseTranslation(String key, Object... args)
key
- the key to translate.args
- additional arguments.
protected boolean canReplacePolicyPresenter()
true
if the policy can be replaced, false
otherwise.protected void setPolicyPresenter(PolicyPresenter policyPresenter)
policyPresenter
- the policy to set.protected boolean confirmOverwrite(File file)
file
- the file to ask for.
true
if overwriting is ok, false
if the action shoulde be aborted.protected PolicyPresenter loadPolicyPresenter(Reader reader, File file)
reader
- the reader to read the data from.file
- the file the policy is read from, used for messages only, may be null
.protected boolean savePolicyPresenter(Writer writer, File file, PolicyPresenter policyPresenter)
writer
- the writer to store the policy data to.file
- the file the policy is written to, used for messages only, may be null
.policyPresenter
- the policy presenter to whose policy to store.
true
if the save was successful, false
if there was an error.
|
![]() |
||||||||
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