com.atlassian.crowd.plugin
Class CrowdPluginPersistentStateStore

java.lang.Object
  extended by com.atlassian.crowd.plugin.CrowdPluginPersistentStateStore
All Implemented Interfaces:
com.atlassian.plugin.manager.PluginPersistentStateStore

public class CrowdPluginPersistentStateStore
extends Object
implements com.atlassian.plugin.manager.PluginPersistentStateStore

Persists into the DB via the PluginPropertyManager the state of Crowd's plugins

It is crucial that the second-level cache in Hibernate for the Property is enabled for this class to work in an efficiently.


Field Summary
protected static String GLOBAL_PLUGIN_STATE_PREFIX
           
 
Constructor Summary
CrowdPluginPersistentStateStore(PluginPropertyManager pluginPropertyManager)
           
 
Method Summary
 com.atlassian.plugin.manager.PluginPersistentState load()
           
 void save(com.atlassian.plugin.manager.PluginPersistentState state)
          This method is synchronised so that you don't have two people trying to save plugin state at the same time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_PLUGIN_STATE_PREFIX

protected static final String GLOBAL_PLUGIN_STATE_PREFIX
See Also:
Constant Field Values
Constructor Detail

CrowdPluginPersistentStateStore

public CrowdPluginPersistentStateStore(PluginPropertyManager pluginPropertyManager)
Method Detail

save

public void save(com.atlassian.plugin.manager.PluginPersistentState state)
This method is synchronised so that you don't have two people trying to save plugin state at the same time

Specified by:
save in interface com.atlassian.plugin.manager.PluginPersistentStateStore

load

public com.atlassian.plugin.manager.PluginPersistentState load()
Specified by:
load in interface com.atlassian.plugin.manager.PluginPersistentStateStore


Copyright © 2012 Atlassian. All Rights Reserved.