com.atlassian.crowd.integration.atlassianuser
Class CacheManager

java.lang.Object
  extended by com.atlassian.crowd.integration.atlassianuser.CacheManager

public class CacheManager
extends Object


Field Summary
protected static String GROUP_KEY
           
protected static String GROUPNAMES_KEY
           
protected static String PRINCIPAL_KEY
           
protected static String PRINCIPALMEMBERSHIPS_KEY
           
protected static String PRINCIPALNAMES_KEY
           
 
Constructor Summary
CacheManager()
           
 
Method Summary
static void cacheGroup(SOAPGroup group)
           
static void cacheGroupNames(List principalNames)
           
static void cacheGroups(SOAPGroup[] groups)
           
static void cachePrincipal(SOAPPrincipal principal)
           
static void cachePrincipalMemberships(String username, List membership)
           
static void cachePrincipalNames(List principalNames)
           
static void cachePrincipals(SOAPPrincipal[] principals)
           
static void flushCaches()
           
static int getCacheSeconds()
           
static SOAPGroup getGroup(String name)
           
static List getGroupNames()
           
static List getGroups()
           
static SOAPPrincipal getPrincipal(String name)
           
static List getPrincipalMemberships(String username)
           
static List getPrincipalNames()
           
static List getPrincipals()
           
static boolean isCacheEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINCIPAL_KEY

protected static final String PRINCIPAL_KEY

PRINCIPALMEMBERSHIPS_KEY

protected static final String PRINCIPALMEMBERSHIPS_KEY

GROUP_KEY

protected static final String GROUP_KEY

PRINCIPALNAMES_KEY

protected static final String PRINCIPALNAMES_KEY

GROUPNAMES_KEY

protected static final String GROUPNAMES_KEY
Constructor Detail

CacheManager

public CacheManager()
Method Detail

isCacheEnabled

public static boolean isCacheEnabled()

getCacheSeconds

public static int getCacheSeconds()

cachePrincipals

public static void cachePrincipals(SOAPPrincipal[] principals)

getPrincipal

public static SOAPPrincipal getPrincipal(String name)
                                  throws NeedsRefreshException
Throws:
NeedsRefreshException

cacheGroups

public static void cacheGroups(SOAPGroup[] groups)

cacheGroup

public static void cacheGroup(SOAPGroup group)

getGroups

public static List getGroups()
                      throws NeedsRefreshException
Throws:
NeedsRefreshException

getGroup

public static SOAPGroup getGroup(String name)
                          throws NeedsRefreshException
Throws:
NeedsRefreshException

cachePrincipal

public static void cachePrincipal(SOAPPrincipal principal)

getPrincipals

public static List getPrincipals()
                          throws NeedsRefreshException
Throws:
NeedsRefreshException

getPrincipalNames

public static List getPrincipalNames()
                              throws NeedsRefreshException
Throws:
NeedsRefreshException

cachePrincipalNames

public static void cachePrincipalNames(List principalNames)

cacheGroupNames

public static void cacheGroupNames(List principalNames)

getGroupNames

public static List getGroupNames()
                          throws NeedsRefreshException
Throws:
NeedsRefreshException

getPrincipalMemberships

public static List getPrincipalMemberships(String username)
                                    throws NeedsRefreshException
Throws:
NeedsRefreshException

cachePrincipalMemberships

public static void cachePrincipalMemberships(String username,
                                             List membership)

flushCaches

public static void flushCaches()


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.