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 ProjectKeyStore
public void addProjectKey(Long projectId, String projectKey)
addProjectKey
in interface ProjectKeyStore
public 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 ProjectKeyStore
public void refresh()
refresh
in interface ProjectKeyStore
Copyright © 2002-2021 Atlassian. All Rights Reserved.