public class CachingAccessProvider extends ChainedAccessProvider implements com.atlassian.user.cache.CacheFactoryAware
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.cache.CacheFactory |
cacheFactory |
| Constructor and Description |
|---|
CachingAccessProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToGroup(String username,
String groupname) |
boolean |
create(String name) |
void |
flushCaches() |
boolean |
handles(String name) |
boolean |
inGroup(String username,
String groupname) |
boolean |
init(Properties properties)
NECESSARY 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) |
boolean |
removeFromGroup(String username,
String groupname) |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory) |
flushCache, getNextAccessProvider, getProviderClass, listGroupsContainingUser, listUsersInGroupgetNextProvider, list, load, storepublic boolean init(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(String name)
handles in interface com.opensymphony.user.provider.UserProviderhandles in class ChainedUserProviderpublic boolean create(String name)
create in interface com.opensymphony.user.provider.UserProvidercreate in class ChainedUserProviderpublic boolean remove(String name)
remove in interface com.opensymphony.user.provider.UserProviderremove in class ChainedUserProviderpublic boolean inGroup(String username, String groupname)
inGroup in interface com.opensymphony.user.provider.AccessProviderinGroup in class ChainedAccessProviderpublic boolean addToGroup(String username, String groupname)
addToGroup in interface com.opensymphony.user.provider.AccessProvideraddToGroup in class ChainedAccessProviderpublic boolean removeFromGroup(String username, String groupname)
removeFromGroup in interface com.opensymphony.user.provider.AccessProviderremoveFromGroup in class ChainedAccessProviderpublic void flushCaches()
flushCaches in interface com.opensymphony.user.provider.UserProviderflushCaches in class ChainedUserProviderpublic void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
setCacheFactory in interface com.atlassian.user.cache.CacheFactoryAwareCopyright © 2003–2017 Atlassian. All rights reserved.