|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.cache.AssociateInfoCache
public class AssociateInfoCache
Class AssociateInfoCache
| Field Summary | |
|---|---|
protected static HashMap |
_associatesPerHost
A mapping of hostnames to (Array)Lists of AssociateInfo objects. |
| Constructor Summary | |
|---|---|
AssociateInfoCache()
|
|
| Method Summary | |
|---|---|
protected static ArrayList |
_fillCache(String host)
Fills the cache for the indicated host with the info from the associatesdb. |
static ArrayList |
ensureAssociatesLoaded(String host)
Ensures that the list of associates for a certain host is loaded. |
static List |
getAssociatesForUser(String host,
String username)
Gets a list of AssociateInfo objects whose 'user' is equal to the supplied name. |
static List |
getUsersForAssociate(String host,
String assocName)
Gets a list of AssociateInfo objects whose 'associate' is equal to the supplied name. |
static void |
put(String host,
String username,
String associate,
int personal)
Puts a (new) associate into the AssociateInfoCache and the underlying associatesdb. |
static void |
refresh(String host)
Refreshes (throws away) the cached info for a certain host. |
static void |
removeAssociates(String host,
String username)
Removes all associates of the user with the supplied name from the AssociateInfoCache and the underlying associatesdb. |
static void |
removeUser(String host,
String username)
Removes ALL associate-info for the user with the supplied name from the AssociateInfoCache and the underlying associatesdb. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap _associatesPerHost
| Constructor Detail |
|---|
public AssociateInfoCache()
| Method Detail |
|---|
public static void refresh(String host)
host - the name of the server to refresh the cache forpublic static ArrayList ensureAssociatesLoaded(String host)
host - the name of the server to ensure the loaded list for
public static List getAssociatesForUser(String host,
String username)
host - the Zpad server on which the user is registeredusername - the name of the user
public static List getUsersForAssociate(String host,
String assocName)
host - the Zpad server on which the associate is registeredassocName - the associate name
public static void put(String host,
String username,
String associate,
int personal)
public static void removeAssociates(String host,
String username)
public static void removeUser(String host,
String username)
protected static ArrayList _fillCache(String host)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||