|
||||||||||
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 |
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 DAOpublic String get(String strUserId, String strKey, String strDefault)
get
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keystrDefault
- The default value
public int getInt(String strUserId, String strKey, int nDefault)
getInt
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keynDefault
- The default value
public boolean getBoolean(String strUserId, String strKey, boolean bDefault)
getBoolean
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keybDefault
- The default value
public void put(String strUserId, String strKey, String strValue)
put
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keystrValue
- The valuepublic void putInt(String strUserId, String strKey, int nValue)
putInt
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keynValue
- The valuepublic void putBoolean(String strUserId, String strKey, boolean bValue)
putBoolean
in interface IUserPreferencesService
strUserId
- The user's IDstrKey
- The preference's keybValue
- The valuepublic List<String> keys(String strUserId)
keys
in interface IUserPreferencesService
strUserId
- The user's ID
public void clear(String strUserId)
clear
in interface IUserPreferencesService
strUserId
- The user's IDpublic List<String> getUsers(String strKey, String strValue)
getUsers
in interface IUserPreferencesService
strKey
- The preference's keystrValue
- The preference's value
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |