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 StringfindMyPreference(String name)Map<String,String>findUserPreferences(String user)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.UserPreferenceEntityDaogetUserPreferenceEntityDao()Gets reference touserPreferenceEntityDao.com.soffid.iam.service.UserServicegetUserService()Gets reference tousuariService.protected abstract StringhandleFindMyPreference(String name)protected abstract Map<String,String>handleFindUserPreferences(String user)protected abstract voidhandleSetUserPreference(String user, String preference, String value)protected abstract Map<String,String>handleSetUserPreferences(String user, Map<String,String> preferences)protected abstract voidhandleUpdateMyPreference(String name, String value)voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.voidsetUserPreference(String user, String preference, String value)voidsetUserPreferenceEntityDao(UserPreferenceEntityDao userPreferenceEntityDao)Sets reference touserPreferenceEntityDao.Map<String,String>setUserPreferences(String user, Map<String,String> preferences)voidsetUserService(com.soffid.iam.service.UserService usuariService)Sets reference tousuariService.voidupdateMyPreference(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:
findMyPreferencein 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:
findUserPreferencesin 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:
setUserPreferencesin 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:
setUserPreferencein 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:
updateMyPreferencein 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-