|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.cache.UserInfoCache
public class UserInfoCache
Class UserInfoCache
| Field Summary | |
|---|---|
protected static HashMap |
_usersPerHost
A mapping of hostnames to (Array)Lists of UserInfo objects. |
| Constructor Summary | |
|---|---|
UserInfoCache()
|
|
| Method Summary | |
|---|---|
protected static ArrayList |
_fillCache(String host)
Fills the cache for the indicated host with the info from the userdb. |
protected static UserInfo |
_get(String host,
String username)
Gets a UserInfo object from the cache. |
static int |
binarySearch(List users,
String name)
See Arrays.binarySearch() for comments. |
static void |
changeAselev(String host,
String username,
int aselev)
Changes the aselev (Associates Edit Level -- currently only 0 or 1) value for a certain user. |
static void |
changeCover(String host,
String username,
String cover)
Change the cover of a certain user. |
static void |
changeEmail(String host,
String username,
String email)
Changes the email address for a certain user. |
static void |
changeInheritCfg(String host,
String username,
String inheritcfg)
Changes the inheritcfg for a certain user. |
static void |
changePassword(String host,
String username,
String password)
Changes the password for a certain user. |
static ArrayList |
ensureUsersLoaded(String host)
Ensures the list of users for a certain host is loaded. |
static boolean |
exists(String host,
String username)
|
static UserInfo |
get(String host,
String username)
Gets a UserInfo object from this cache. |
static List |
getAllHosts()
Get a list of all hosts currently active. |
static List |
getAllUserNames(String host)
Gets all usernames known for a certain host. |
static List |
getAllUsers(String host)
Gets a list of all UserInfo objects for a certain host. |
static List |
getCfgInheritors(String host,
String user)
Get a list of all UserInfo objects for a certain host that inherit their configuration (a.k.a. |
static void |
put(String host,
UserInfo userInfo)
Puts a (new) user into the UserInfoCache and the underlying userdb. |
static void |
refresh(String host)
Refreshes (throws away) the cached info for a certain host. |
static void |
remove(String host,
UserInfo userInfo)
Removes a user and all of its aliases from the UserInfoCache, the AliasInfoCache, the AssociateInfoCache as well as from the underlying databases. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap _usersPerHost
| Constructor Detail |
|---|
public UserInfoCache()
| Method Detail |
|---|
public static void refresh(String host)
host - the name of the server to refresh the cache forpublic static ArrayList ensureUsersLoaded(String host)
host - the name of the server to ensure the loaded list for
public static boolean exists(String host,
String username)
public static UserInfo get(String host,
String username)
host - the Zpad server on which the user is registeredusername - the name of a user
public static List getAllUsers(String host)
public static List getCfgInheritors(String host,
String user)
public static List getAllHosts()
public static List getAllUserNames(String host)
protected static UserInfo _get(String host,
String username)
public static void put(String host,
UserInfo userInfo)
public static void remove(String host,
UserInfo userInfo)
public static void changeCover(String host,
String username,
String cover)
public static void changeEmail(String host,
String username,
String email)
public static void changePassword(String host,
String username,
String password)
public static void changeAselev(String host,
String username,
int aselev)
public static void changeInheritCfg(String host,
String username,
String inheritcfg)
protected static ArrayList _fillCache(String host)
public static int binarySearch(List users,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||