|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.prefs.AbstractUserPreferencesDAO
public abstract class AbstractUserPreferencesDAO
User Preferences DAO
Constructor Summary | |
---|---|
AbstractUserPreferencesDAO()
|
Method Summary | |
---|---|
List<String> |
getUserId(String strKey,
String strValue)
Get the list of user id associated with the given key and value |
List<String> |
keys(String strUserId)
Get all preference keys for a given user |
String |
load(String strUserId,
String strKey,
String strDefault)
Get a preference for a given user |
void |
remove(String strUserId)
Clear all preferences for a given user |
void |
store(String strUserId,
String strKey,
String strValue)
Store a preference for a given user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUserPreferencesDAO()
Method Detail |
---|
public String load(String strUserId, String strKey, String strDefault)
load
in interface IPreferencesDAO
strUserId
- The user's IDstrKey
- The preference's keystrDefault
- The default value
public List<String> getUserId(String strKey, String strValue)
getUserId
in interface IPreferencesDAO
strKey
- The preference's keystrValue
- The preference's value
public void store(String strUserId, String strKey, String strValue)
store
in interface IPreferencesDAO
strUserId
- The user's IDstrKey
- The preference's keystrValue
- The valuepublic List<String> keys(String strUserId)
keys
in interface IPreferencesDAO
strUserId
- The user's ID
public void remove(String strUserId)
remove
in interface IPreferencesDAO
strUserId
- The user's ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |