public class CachingPluginIndexConfigurationManager extends Object implements PluginIndexConfigurationManager
Constructor and Description |
---|
CachingPluginIndexConfigurationManager(OfBizPluginIndexConfigurationManager delegate,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
Iterable<PluginIndexConfiguration> |
getDocumentsForEntity(String entityKey) |
void |
onClearCache(ClearCacheEvent event) |
void |
onComponentManagerStartedEvent(ComponentManagerStartedEvent ignore) |
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.
|
public CachingPluginIndexConfigurationManager(OfBizPluginIndexConfigurationManager delegate, com.atlassian.cache.CacheManager cacheManager)
@EventListener public void onClearCache(ClearCacheEvent event)
public void onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)
public void onPluginRefreshed(com.atlassian.plugin.event.events.PluginRefreshedEvent event)
public void onPluginUpgraded(com.atlassian.plugin.event.events.PluginUpgradedEvent event)
@EventListener public void onComponentManagerStartedEvent(ComponentManagerStartedEvent ignore)
public Iterable<PluginIndexConfiguration> getDocumentsForEntity(@Nonnull String entityKey)
getDocumentsForEntity
in interface PluginIndexConfigurationManager
entityKey
- name of entity eg. issue, project etcEntityPropertyIndexDocument
for the given plugin key.public void put(@Nonnull String pluginKey, @Nonnull String moduleKey, @Nonnull IndexDocumentConfiguration document)
PluginIndexConfigurationManager
put
in interface PluginIndexConfigurationManager
pluginKey
- the key of the plugin.moduleKey
- the key of the module.document
- the description of entity's indexing.public void remove(@Nonnull String pluginKey)
PluginIndexConfigurationManager
remove
in interface PluginIndexConfigurationManager
pluginKey
- the key of the plugin.Copyright © 2002-2015 Atlassian. All Rights Reserved.