Class Overview
An extension of the HibernateProfileProvider that caches handles() and propertyset lookups.
Summary
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.user.cache.CacheFactoryAware
abstract
void
|
setCacheFactory(CacheFactory arg0)
|
|
From interface
com.opensymphony.user.provider.ProfileProvider
abstract
PropertySet
|
getPropertySet(String arg0)
|
|
From interface
com.opensymphony.user.provider.UserProvider
abstract
boolean
|
create(String arg0)
|
abstract
void
|
flushCaches()
|
abstract
boolean
|
handles(String arg0)
|
abstract
boolean
|
init(Properties arg0)
|
abstract
List
|
list()
|
abstract
boolean
|
load(String arg0, Entity.Accessor arg1)
|
abstract
boolean
|
remove(String arg0)
|
abstract
boolean
|
store(String arg0, Entity.Accessor arg1)
|
|
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)