public class CachingProjectKeyStore extends Object implements ProjectKeyStore
| Constructor and Description |
|---|
CachingProjectKeyStore(ProjectKeyStore delegateProjectKeyStore,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProjectKey(Long projectId,
String projectKey) |
void |
deleteProjectKeys(Long projectId) |
Map<String,Long> |
getAllProjectKeys() |
Long |
getProjectId(String key) |
Long |
getProjectIdByKeyIgnoreCase(String projectKey) |
Set<String> |
getProjectKeys(Long projectId) |
void |
onClearCache(ClearCacheEvent event) |
void |
refresh() |
public CachingProjectKeyStore(ProjectKeyStore delegateProjectKeyStore, com.atlassian.cache.CacheManager cacheManager)
@EventListener public void onClearCache(ClearCacheEvent event)
@Nullable public Long getProjectId(String key)
getProjectId in interface ProjectKeyStorepublic void addProjectKey(Long projectId, String projectKey)
addProjectKey in interface ProjectKeyStorepublic void deleteProjectKeys(Long projectId)
deleteProjectKeys in interface ProjectKeyStore@Nonnull public Map<String,Long> getAllProjectKeys()
getAllProjectKeys in interface ProjectKeyStore@Nullable public Long getProjectIdByKeyIgnoreCase(String projectKey)
getProjectIdByKeyIgnoreCase in interface ProjectKeyStore@Nonnull public Set<String> getProjectKeys(Long projectId)
getProjectKeys in interface ProjectKeyStorepublic void refresh()
refresh in interface ProjectKeyStoreCopyright © 2002-2017 Atlassian. All Rights Reserved.