public class CachingConsumerStore extends Object implements com.atlassian.oauth.consumer.core.ConsumerServiceStore, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
CachingConsumerStore(com.atlassian.oauth.consumer.core.ConsumerServiceStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
clearCaches(ClearCacheEvent event) |
void |
destroy() |
com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret |
get(String service) |
Iterable<com.atlassian.oauth.Consumer> |
getAllServiceProviders() |
com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret |
getByKey(String key) |
void |
put(String service,
com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret cas) |
void |
removeByKey(String key) |
public CachingConsumerStore(com.atlassian.oauth.consumer.core.ConsumerServiceStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.cache.CacheManager cacheManager)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException@EventListener public void clearCaches(ClearCacheEvent event)
public com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret get(String service)
get in interface com.atlassian.oauth.consumer.core.ConsumerServiceStorepublic com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret getByKey(String key)
getByKey in interface com.atlassian.oauth.consumer.core.ConsumerServiceStorepublic void put(String service, com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret cas)
put in interface com.atlassian.oauth.consumer.core.ConsumerServiceStorepublic void removeByKey(String key)
removeByKey in interface com.atlassian.oauth.consumer.core.ConsumerServiceStorepublic Iterable<com.atlassian.oauth.Consumer> getAllServiceProviders()
getAllServiceProviders in interface com.atlassian.oauth.consumer.core.ConsumerServiceStoreCopyright © 2002-2019 Atlassian. All Rights Reserved.