public class CachingServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore 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.serviceprovider.ServiceProviderToken |
get(String token) |
Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> |
getAccessTokensForUser(String username) |
void |
onUserRenamed(UserRenamedEvent event) |
com.atlassian.oauth.serviceprovider.ServiceProviderToken |
put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) |
void |
removeAndNotify(String token) |
void |
removeByConsumer(String consumerKey) |
void |
removeExpiredSessionsAndNotify() |
void |
removeExpiredTokensAndNotify() |
public CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore 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)
@EventListener public void onUserRenamed(UserRenamedEvent event)
public com.atlassian.oauth.serviceprovider.ServiceProviderToken get(String token) throws com.atlassian.oauth.serviceprovider.StoreException
get in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getAccessTokensForUser(String username)
getAccessTokensForUser in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorepublic com.atlassian.oauth.serviceprovider.ServiceProviderToken put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token)
throws com.atlassian.oauth.serviceprovider.StoreException
put in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeAndNotify(String token) throws com.atlassian.oauth.serviceprovider.StoreException
removeAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeExpiredTokensAndNotify()
throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredTokensAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeExpiredSessionsAndNotify()
throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredSessionsAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeByConsumer(String consumerKey)
removeByConsumer in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStoreCopyright © 2002-2017 Atlassian. All Rights Reserved.