com.atlassian.jira.issue.fields.option
Class CachedOptionSetManager

java.lang.Object
  extended by com.atlassian.jira.issue.fields.option.CachedOptionSetManager
All Implemented Interfaces:
Startable, OptionSetManager, JiraCachedManager

public class CachedOptionSetManager
extends java.lang.Object
implements OptionSetManager, JiraCachedManager, Startable


Constructor Summary
CachedOptionSetManager(OptionSetPersister optionSetPersister, ConstantsManager constantsManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 OptionSet createOptionSet(FieldConfig config, java.util.Collection optionIds)
           
 long getCacheSize()
           
 OptionSet getOptionsForConfig(FieldConfig config)
           
 void init()
           
 void onClearCache(ClearCacheEvent event)
           
 void refreshCache()
           
 void removeOptionSet(FieldConfig config)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 OptionSet updateOptionSet(FieldConfig config, java.util.Collection optionIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedOptionSetManager

public CachedOptionSetManager(OptionSetPersister optionSetPersister,
                              ConstantsManager constantsManager,
                              com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - Allows implementations to throw an Exception.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

init

public void init()

getOptionsForConfig

public OptionSet getOptionsForConfig(FieldConfig config)
Specified by:
getOptionsForConfig in interface OptionSetManager

createOptionSet

public OptionSet createOptionSet(FieldConfig config,
                                 java.util.Collection optionIds)
Specified by:
createOptionSet in interface OptionSetManager

updateOptionSet

public OptionSet updateOptionSet(FieldConfig config,
                                 java.util.Collection optionIds)
Specified by:
updateOptionSet in interface OptionSetManager

removeOptionSet

public void removeOptionSet(FieldConfig config)
Specified by:
removeOptionSet in interface OptionSetManager

getCacheSize

public long getCacheSize()
Specified by:
getCacheSize in interface JiraCachedManager

refreshCache

public void refreshCache()
Specified by:
refreshCache in interface JiraCachedManager


Copyright © 2002-2010 Atlassian. All Rights Reserved.