Package com.atlassian.jira.project.util
Class CachingProjectKeyStore
java.lang.Object
com.atlassian.jira.project.util.CachingProjectKeyStore
- All Implemented Interfaces:
InitializingComponent,ProjectKeyStore
public class CachingProjectKeyStore
extends Object
implements ProjectKeyStore, InitializingComponent
-
Constructor Summary
ConstructorsConstructorDescriptionCachingProjectKeyStore(ProjectKeyStore delegateProjectKeyStore, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProjectKey(Long projectId, String projectKey) voidCalled after all the beans are constructed and the ApplicationContext is fully populated.voiddeleteProjectKeys(Long projectId) getProjectId(String key) getProjectIdByKeyIgnoreCase(String projectKey) getProjectKeys(Long projectId) voidonClearCache(ClearCacheEvent event) voidrefresh()
-
Constructor Details
-
CachingProjectKeyStore
public CachingProjectKeyStore(ProjectKeyStore delegateProjectKeyStore, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
onClearCache
-
getProjectId
- Specified by:
getProjectIdin interfaceProjectKeyStore
-
addProjectKey
- Specified by:
addProjectKeyin interfaceProjectKeyStore
-
deleteProjectKeys
- Specified by:
deleteProjectKeysin interfaceProjectKeyStore
-
getAllProjectKeys
- Specified by:
getAllProjectKeysin interfaceProjectKeyStore
-
getProjectIdByKeyIgnoreCase
- Specified by:
getProjectIdByKeyIgnoreCasein interfaceProjectKeyStore
-
getProjectKeys
- Specified by:
getProjectKeysin interfaceProjectKeyStore
-
refresh
public void refresh()- Specified by:
refreshin interfaceProjectKeyStore
-