public class

CachingProfileProvider

extends ChainedProfileProvider
implements CacheFactoryAware
java.lang.Object
   ↳ bucket.user.providers.ChainedUserProvider
     ↳ bucket.user.providers.ChainedProfileProvider
       ↳ bucket.user.providers.CachingProfileProvider

Class Overview

An extension of the HibernateProfileProvider that caches handles() and propertyset lookups.

See Also
  • CachingPropertySet

Summary

Fields
public static final String CACHE_KEY_PROFILE_PROVIDER_HANDLES
public static final String CACHE_KEY_PROFILE_PROVIDER_PROPERTYSETS
Public Constructors
CachingProfileProvider()
Public Methods
boolean create(String name)
void flushCaches()
PropertySet getPropertySet(String name)
boolean handles(String name)
boolean init(Properties properties)
HACK: LDAPCredentialsProvider.handles() calls UserManager.getInstance().getCredentialsProviders() which triggers of an initialisation of all providers in osuser.xml (including this one) Initialisation is done via this init() method, so we need to ensure a cacheManager is available so that this caching provider is initialised correctly (normally, we have CachingAccessProvider instantiated and initialised by altassian-user's DefaultOSUConfigurationLoader.addProvider())
boolean remove(String name)
void setCacheFactory(CacheFactory cacheFactory)
[Expand]
Inherited Methods
From class bucket.user.providers.ChainedProfileProvider
From class bucket.user.providers.ChainedUserProvider
From class java.lang.Object
From interface com.atlassian.user.cache.CacheFactoryAware
From interface com.opensymphony.user.provider.ProfileProvider
From interface com.opensymphony.user.provider.UserProvider

Fields

public static final String CACHE_KEY_PROFILE_PROVIDER_HANDLES

public static final String CACHE_KEY_PROFILE_PROVIDER_PROPERTYSETS

Public Constructors

public CachingProfileProvider ()

Public Methods

public boolean create (String name)

public void flushCaches ()

public PropertySet getPropertySet (String name)

public boolean handles (String name)

public boolean init (Properties properties)

HACK: LDAPCredentialsProvider.handles() calls UserManager.getInstance().getCredentialsProviders() which triggers of an initialisation of all providers in osuser.xml (including this one) Initialisation is done via this init() method, so we need to ensure a cacheManager is available so that this caching provider is initialised correctly (normally, we have CachingAccessProvider instantiated and initialised by altassian-user's DefaultOSUConfigurationLoader.addProvider())

Parameters
properties initialisation properties for this provider, and subsequent providers in the chain.
Returns
  • true if initialisation was successful, false otherwise

public boolean remove (String name)

public void setCacheFactory (CacheFactory cacheFactory)