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 Object
implements OptionSetManager, JiraCachedManager, Startable


Constructor Summary
CachedOptionSetManager(OptionSetPersister optionSetPersister, ConstantsManager constantsManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 OptionSet createOptionSet(FieldConfig config, 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, 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 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:
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,
                                 Collection optionIds)
Specified by:
createOptionSet in interface OptionSetManager

updateOptionSet

public OptionSet updateOptionSet(FieldConfig config,
                                 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-2012 Atlassian. All Rights Reserved.