Package com.soffid.iam.service
Class PreferencesServiceBase
- java.lang.Object
-
- com.soffid.iam.service.PreferencesServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.PreferencesService
- Direct Known Subclasses:
PreferencesServiceImpl
public abstract class PreferencesServiceBase extends Object implements com.soffid.iam.service.PreferencesService
Spring Service base class for
see com.soffid.iam.service.PreferencesServicecom.soffid.iam.service.PreferencesService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description PreferencesServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
findMyPreference(String name)
Map<String,String>
findUserPreferences(String user)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.UserPreferenceEntityDao
getUserPreferenceEntityDao()
Gets reference touserPreferenceEntityDao
.com.soffid.iam.service.UserService
getUserService()
Gets reference tousuariService
.protected abstract String
handleFindMyPreference(String name)
protected abstract Map<String,String>
handleFindUserPreferences(String user)
protected abstract void
handleSetUserPreference(String user, String preference, String value)
protected abstract Map<String,String>
handleSetUserPreferences(String user, Map<String,String> preferences)
protected abstract void
handleUpdateMyPreference(String name, String value)
void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.void
setUserPreference(String user, String preference, String value)
void
setUserPreferenceEntityDao(UserPreferenceEntityDao userPreferenceEntityDao)
Sets reference touserPreferenceEntityDao
.Map<String,String>
setUserPreferences(String user, Map<String,String> preferences)
void
setUserService(com.soffid.iam.service.UserService usuariService)
Sets reference tousuariService
.void
updateMyPreference(String name, String value)
-
-
-
Method Detail
-
setUserPreferenceEntityDao
public void setUserPreferenceEntityDao(UserPreferenceEntityDao userPreferenceEntityDao)
Sets reference touserPreferenceEntityDao
.
-
getUserPreferenceEntityDao
public UserPreferenceEntityDao getUserPreferenceEntityDao()
Gets reference touserPreferenceEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
setUserService
public void setUserService(com.soffid.iam.service.UserService usuariService)
Sets reference tousuariService
.
-
getUserService
public com.soffid.iam.service.UserService getUserService()
Gets reference tousuariService
.
-
findMyPreference
@Transactional(rollbackFor=java.lang.Exception.class) public String findMyPreference(String name) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findMyPreference
in interfacecom.soffid.iam.service.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindMyPreference
protected abstract String handleFindMyPreference(String name) throws Exception
- Throws:
Exception
-
findUserPreferences
@Transactional(rollbackFor=java.lang.Exception.class) public Map<String,String> findUserPreferences(String user) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUserPreferences
in interfacecom.soffid.iam.service.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindUserPreferences
protected abstract Map<String,String> handleFindUserPreferences(String user) throws Exception
- Throws:
Exception
-
setUserPreferences
@Transactional(rollbackFor=java.lang.Exception.class) public Map<String,String> setUserPreferences(String user, Map<String,String> preferences) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
setUserPreferences
in interfacecom.soffid.iam.service.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSetUserPreferences
protected abstract Map<String,String> handleSetUserPreferences(String user, Map<String,String> preferences) throws Exception
- Throws:
Exception
-
setUserPreference
@Transactional(rollbackFor=java.lang.Exception.class) public void setUserPreference(String user, String preference, String value) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
setUserPreference
in interfacecom.soffid.iam.service.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSetUserPreference
protected abstract void handleSetUserPreference(String user, String preference, String value) throws Exception
- Throws:
Exception
-
updateMyPreference
@Transactional(rollbackFor=java.lang.Exception.class) public void updateMyPreference(String name, String value) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateMyPreference
in interfacecom.soffid.iam.service.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateMyPreference
protected abstract void handleUpdateMyPreference(String name, String value) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-