com.atlassian.jira.index.property
Class CachingPluginIndexConfigurationManager

java.lang.Object
  extended by com.atlassian.jira.index.property.CachingPluginIndexConfigurationManager
All Implemented Interfaces:
PluginIndexConfigurationManager

public class CachingPluginIndexConfigurationManager
extends Object
implements PluginIndexConfigurationManager

Since:
v6.2

Constructor Summary
CachingPluginIndexConfigurationManager(OfBizPluginIndexConfigurationManager delegate, com.atlassian.cache.CacheManager cacheManager)
           
 
Method Summary
 Iterable<PluginIndexConfiguration> getDocumentsForEntity(String entityKey)
           
 void onClearCache(ClearCacheEvent event)
           
 void onPluginRefreshed(com.atlassian.plugin.event.events.PluginRefreshedEvent event)
           
 void onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)
           
 void onPluginUpgraded(com.atlassian.plugin.event.events.PluginUpgradedEvent event)
           
 void put(String pluginKey, String moduleKey, IndexDocumentConfiguration document)
          Sets the description of entity's indexing for the given plugin and module's keys.
 void remove(String pluginKey)
          Removes the description of entity's indexing for the given plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingPluginIndexConfigurationManager

public CachingPluginIndexConfigurationManager(OfBizPluginIndexConfigurationManager delegate,
                                              com.atlassian.cache.CacheManager cacheManager)
Method Detail

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

onPluginUninstalled

public void onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)

onPluginRefreshed

public void onPluginRefreshed(com.atlassian.plugin.event.events.PluginRefreshedEvent event)

onPluginUpgraded

public void onPluginUpgraded(com.atlassian.plugin.event.events.PluginUpgradedEvent event)

getDocumentsForEntity

public Iterable<PluginIndexConfiguration> getDocumentsForEntity(String entityKey)
Specified by:
getDocumentsForEntity in interface PluginIndexConfigurationManager
Parameters:
entityKey - name of entity eg. issue, project etc
Returns:
all EntityPropertyIndexDocument for the given plugin key.

put

public void put(String pluginKey,
                String moduleKey,
                IndexDocumentConfiguration document)
Description copied from interface: PluginIndexConfigurationManager
Sets the description of entity's indexing for the given plugin and module's keys.

Specified by:
put in interface PluginIndexConfigurationManager
Parameters:
pluginKey - the key of the plugin.
moduleKey - the key of the module.
document - the description of entity's indexing.

remove

public void remove(String pluginKey)
Description copied from interface: PluginIndexConfigurationManager
Removes the description of entity's indexing for the given plugin.

Specified by:
remove in interface PluginIndexConfigurationManager
Parameters:
pluginKey - the key of the plugin.


Copyright © 2002-2014 Atlassian. All Rights Reserved.