org.equanda.test.login
Class LoginCache

java.lang.Object
  extended by org.equanda.cache.EquandaCache<LoginInfo>
      extended by org.equanda.test.login.LoginCache

public class LoginCache
extends EquandaCache<LoginInfo>


Field Summary
static String AUTH_ROLE_PREFIX
           
static String AUTH_USER_PREFIX
           
static String USER_PREFIX
           
 
Fields inherited from class org.equanda.cache.EquandaCache
SEARCH_FIRST_IN_CACHE, SEARCH_FIRST_IN_DB
 
Method Summary
 LoginInfo get(String user)
           
static LoginCache getLoginCache()
           
protected  LoginInfo getObject(String key)
           
 LoginInfo getUser(String user)
          Get LoginInfo with full proxy, you need to be logged in to use this!
 LoginInfo getWithAuth(String user)
          Get LoginInfo with full AuthAndConfig, you need to be logged in to use this!
 LoginInfo setUser(String user, String pass)
          Add LoginInfo in cache for given username/password pair (from parent LoginModule)
 
Methods inherited from class org.equanda.cache.EquandaCache
get, set, setObject, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_PREFIX

public static final String USER_PREFIX
See Also:
Constant Field Values

AUTH_USER_PREFIX

public static final String AUTH_USER_PREFIX
See Also:
Constant Field Values

AUTH_ROLE_PREFIX

public static final String AUTH_ROLE_PREFIX
See Also:
Constant Field Values
Method Detail

getLoginCache

public static LoginCache getLoginCache()

getObject

protected LoginInfo getObject(String key)
                       throws EquandaPersistenceException
Specified by:
getObject in class EquandaCache<LoginInfo>
Throws:
EquandaPersistenceException

setUser

public LoginInfo setUser(String user,
                         String pass)
                  throws EquandaPersistenceException
Add LoginInfo in cache for given username/password pair (from parent LoginModule)

Parameters:
user - username
pass - password
Returns:
built LoginInfo object
Throws:
EquandaPersistenceException - oops

getUser

public LoginInfo getUser(String user)
                  throws EquandaPersistenceException
Get LoginInfo with full proxy, you need to be logged in to use this!

Parameters:
user - username
Returns:
LoginInfo object
Throws:
EquandaPersistenceException - oops

get

public LoginInfo get(String user)
              throws EquandaPersistenceException
Overrides:
get in class EquandaCache<LoginInfo>
Throws:
EquandaPersistenceException

getWithAuth

public LoginInfo getWithAuth(String user)
                      throws EquandaPersistenceException
Get LoginInfo with full AuthAndConfig, you need to be logged in to use this!

Parameters:
user - username
Returns:
LoginInfo object
Throws:
EquandaPersistenceException - oops


Copyright © 2007-2008. All Rights Reserved.