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.DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
@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.ConsumerServiceStore
public com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret getByKey(String key)
getByKey
in interface com.atlassian.oauth.consumer.core.ConsumerServiceStore
public void put(String service, com.atlassian.oauth.consumer.core.ConsumerServiceStore.ConsumerAndSecret cas)
put
in interface com.atlassian.oauth.consumer.core.ConsumerServiceStore
public void removeByKey(String key)
removeByKey
in interface com.atlassian.oauth.consumer.core.ConsumerServiceStore
public Iterable<com.atlassian.oauth.Consumer> getAllServiceProviders()
getAllServiceProviders
in interface com.atlassian.oauth.consumer.core.ConsumerServiceStore
Copyright © 2002-2021 Atlassian. All Rights Reserved.