Package com.atlassian.crowd.cache
Class ClusterAwareUserAuthorisationCache
java.lang.Object
com.atlassian.crowd.cache.DelegatingUserAuthorisationCache
com.atlassian.crowd.cache.ClusterAwareUserAuthorisationCache
- All Implemented Interfaces:
UserAuthorisationCache
public class ClusterAwareUserAuthorisationCache
extends DelegatingUserAuthorisationCache
implements UserAuthorisationCache
A cluster-safe implementation of UserAuthorisationCache. The cache itself is node-local. Cluster safety is achieved by:
- using a key that is resilient to configuration and data changes (includes the user external id, and directory id)
- propagating full clears using the
ClusterMessageService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClusterAwareUserAuthorisationCache
(UserAuthorisationCache delegate, ClusterMessageService clusterMessageService) -
Method Summary
Methods inherited from class com.atlassian.crowd.cache.DelegatingUserAuthorisationCache
isPermitted, setPermitted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.cache.UserAuthorisationCache
isPermitted, setPermitted
-
Field Details
-
CLUSTER_MESSAGE_CHANNEL
- See Also:
-
CLUSTER_MESSAGE_CLEAR
- See Also:
-
-
Constructor Details
-
ClusterAwareUserAuthorisationCache
public ClusterAwareUserAuthorisationCache(UserAuthorisationCache delegate, ClusterMessageService clusterMessageService)
-
-
Method Details
-
clear
public void clear()Description copied from interface:UserAuthorisationCache
Clears the user authorisation cache.- Specified by:
clear
in interfaceUserAuthorisationCache
- Overrides:
clear
in classDelegatingUserAuthorisationCache
-
registerClusterListener
@PostConstruct public void registerClusterListener() -
unregisterClusterListener
@PreDestroy public void unregisterClusterListener()
-