public class CachingProfileProvider extends ChainedProfileProvider implements com.atlassian.user.cache.CacheFactoryAware
CachingPropertySet,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHE_KEY_PROFILE_PROVIDER_HANDLES |
static java.lang.String |
CACHE_KEY_PROFILE_PROVIDER_PROPERTYSETS |
| Constructor and Description |
|---|
CachingProfileProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create(java.lang.String name) |
void |
flushCaches() |
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(java.lang.String name) |
boolean |
handles(java.lang.String name) |
boolean |
init(java.util.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(java.lang.String name) |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory) |
getNextProfileProvider, getProviderClassgetNextProvider, list, load, storepublic static final java.lang.String CACHE_KEY_PROFILE_PROVIDER_HANDLES
public static final java.lang.String CACHE_KEY_PROFILE_PROVIDER_PROPERTYSETS
public boolean init(java.util.Properties properties)
init in interface com.opensymphony.user.provider.UserProviderinit in class ChainedUserProviderproperties - initialisation properties for this provider, and subsequent
providers in the chain.public boolean handles(java.lang.String name)
handles in interface com.opensymphony.user.provider.UserProviderhandles in class ChainedUserProviderpublic boolean create(java.lang.String name)
create in interface com.opensymphony.user.provider.UserProvidercreate in class ChainedUserProviderpublic boolean remove(java.lang.String name)
remove in interface com.opensymphony.user.provider.UserProviderremove in class ChainedUserProviderpublic void flushCaches()
flushCaches in interface com.opensymphony.user.provider.UserProviderflushCaches in class ChainedUserProviderpublic com.opensymphony.module.propertyset.PropertySet getPropertySet(java.lang.String name)
getPropertySet in interface com.opensymphony.user.provider.ProfileProvidergetPropertySet in class ChainedProfileProviderpublic void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
setCacheFactory in interface com.atlassian.user.cache.CacheFactoryAwareCopyright © 2014 Atlassian. All Rights Reserved.