com.atlassian.jira.user
Class DefaultUserPropertyManager

java.lang.Object
  extended by com.atlassian.jira.user.DefaultUserPropertyManager
All Implemented Interfaces:
Startable, UserPropertyManager

public class DefaultUserPropertyManager
extends Object
implements UserPropertyManager, Startable


Field Summary
protected  com.google.common.cache.Cache<String,com.opensymphony.module.propertyset.PropertySet> psCache
           
 
Constructor Summary
DefaultUserPropertyManager(UserKeyStore userKeyStore)
           
 
Method Summary
 void clearCache(ApplicationUser user)
           
 void clearCacheByKey(String userKey)
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet(ApplicationUser user)
          Get the property set associated with a user.
 com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.crowd.embedded.api.User user)
          Get the property set associated with a user.
 void onClearCache(ClearCacheEvent event)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

psCache

protected final com.google.common.cache.Cache<String,com.opensymphony.module.propertyset.PropertySet> psCache
Constructor Detail

DefaultUserPropertyManager

public DefaultUserPropertyManager(UserKeyStore userKeyStore)
Method Detail

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet(ApplicationUser user)
Description copied from interface: UserPropertyManager
Get the property set associated with a user.

Specified by:
getPropertySet in interface UserPropertyManager
Parameters:
user - the property set is associated with.
Returns:
Property set.

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyManager
Get the property set associated with a user.

Specified by:
getPropertySet in interface UserPropertyManager
Parameters:
user - the property set is associated with.
Returns:
Property set.

clearCache

public void clearCache(ApplicationUser user)
Specified by:
clearCache in interface UserPropertyManager

clearCacheByKey

public void clearCacheByKey(String userKey)
Specified by:
clearCacheByKey in interface UserPropertyManager


Copyright © 2002-2013 Atlassian. All Rights Reserved.