|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.cache.AliasInfoCache
public class AliasInfoCache
Class AliasInfoCache
| Field Summary | |
|---|---|
protected static HashMap |
_aliasesPerHost
A mapping of hostnames to (Array)Lists of AliasInfo objects. |
| Constructor Summary | |
|---|---|
AliasInfoCache()
|
|
| Method Summary | |
|---|---|
protected static ArrayList |
_fillCache(String host)
Fills the cache for the indicated host with the info from the aliasdb. |
static int |
binarySearch(List aliases,
String alias)
See Arrays.binarySearch() for comments. |
static void |
changeCover(String host,
String alias,
String cover)
Change the cover for a certain alias. |
static ArrayList |
ensureAliasesLoaded(String host)
Ensures the list of aliases for a certain host is loaded. |
static AliasInfo |
get(String host,
String alias)
Gets a AliasInfo object from this cache. |
static List |
getAll(String host,
String user)
Gets all aliases of a certain user. |
static List |
getAllAliases(String host)
Gets all aliases known for a certain host. |
static void |
put(String host,
UserInfo userInfo,
String alias)
Puts a (new) alias into the AliasInfoCache and the underlying aliasdb. |
static void |
refresh(String host)
Refreshes (throws away) the cached info for a certain host. |
static void |
remove(String host,
String alias)
Removes an alias from the AliasInfoCache and the underlying aliasdb. |
static void |
removeAll(String host,
String username)
Removes all aliases of a certain user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap _aliasesPerHost
| Constructor Detail |
|---|
public AliasInfoCache()
| Method Detail |
|---|
public static void refresh(String host)
host - the name of the server to refresh the cache forpublic static ArrayList ensureAliasesLoaded(String host)
host - the name of the server to ensure the loaded list for
public static AliasInfo get(String host,
String alias)
host - the Zpad server on which the user is registeredalias - the alias of a user
public static List getAll(String host,
String user)
public static List getAllAliases(String host)
public static void put(String host,
UserInfo userInfo,
String alias)
public static void remove(String host,
String alias)
public static void removeAll(String host,
String username)
host - the name of the serverusername - the real name of the user
public static void changeCover(String host,
String alias,
String cover)
protected static ArrayList _fillCache(String host)
public static int binarySearch(List aliases,
String alias)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||