|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.prefs.BaseUserPreferencesServiceImpl
public class BaseUserPreferencesServiceImpl
Abstract User Preferences Service
| Constructor Summary | |
|---|---|
protected |
BaseUserPreferencesServiceImpl()
Constructor |
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
clear(String strUserId)
Clear all preferences for a given user |
void |
clearKey(String strUserId,
String strKey)
Clear a preference for a given user |
void |
clearKeyPrefix(String strUserId,
String strPrefix)
Clear all preferences with a given prefix for a given user |
boolean |
existsKey(String strUserId,
String strKey)
Cheks if a preference key exists |
String |
get(String strUserId,
String strKey,
String strDefault)
Get a preference for a given user |
boolean |
getBoolean(String strUserId,
String strKey,
boolean bDefault)
Get a boolean preference for a given user |
int |
getInt(String strUserId,
String strKey,
int nDefault)
Get an integer preference for a given user |
List<String> |
getUsers(String strKey,
String strValue)
Get the list of users associated with a key and a value |
List<String> |
keys(String strUserId)
Get all preference keys for a given user |
void |
put(String strUserId,
String strKey,
String strValue)
Put a preference for a given user |
void |
putBoolean(String strUserId,
String strKey,
boolean bValue)
Put a boolean preference for a given user |
void |
putInt(String strUserId,
String strKey,
int nValue)
Put an integer preference for a given user |
void |
setDao(IPreferencesDAO dao)
Sets the DAO |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseUserPreferencesServiceImpl()
| Method Detail |
|---|
public void setDao(IPreferencesDAO dao)
dao - The DAO
public String get(String strUserId,
String strKey,
String strDefault)
get in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keystrDefault - The default value
public int getInt(String strUserId,
String strKey,
int nDefault)
getInt in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keynDefault - The default value
public boolean getBoolean(String strUserId,
String strKey,
boolean bDefault)
getBoolean in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keybDefault - The default value
public void put(String strUserId,
String strKey,
String strValue)
put in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keystrValue - The value
public void putInt(String strUserId,
String strKey,
int nValue)
putInt in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keynValue - The value
public void putBoolean(String strUserId,
String strKey,
boolean bValue)
putBoolean in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's keybValue - The valuepublic List<String> keys(String strUserId)
keys in interface IUserPreferencesServicestrUserId - The user's ID
public void clear(String strUserId)
clear in interface IUserPreferencesServicestrUserId - The user's ID
public void clearKey(String strUserId,
String strKey)
clearKey in interface IUserPreferencesServicestrUserId - The user's IDstrKey - The preference's key
public void clearKeyPrefix(String strUserId,
String strPrefix)
clearKeyPrefix in interface IUserPreferencesServicestrUserId - The user's IDstrPrefix - The keys prefix
public boolean existsKey(String strUserId,
String strKey)
existsKey in interface IUserPreferencesServicestrUserId - The User IDstrKey - The Pref key
public List<String> getUsers(String strKey,
String strValue)
getUsers in interface IUserPreferencesServicestrKey - The preference's keystrValue - The preference's value
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||