Package com.soffid.iam.service
Class SessionCacheServiceBase
- java.lang.Object
-
- com.soffid.iam.service.SessionCacheServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.SessionCacheService
- Direct Known Subclasses:
SessionCacheServiceImpl
public abstract class SessionCacheServiceBase extends Object implements com.soffid.iam.service.SessionCacheService
Spring Service base class for
see com.soffid.iam.service.SessionCacheServicecom.soffid.iam.service.SessionCacheService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SessionCacheServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringclearSession()StringcreateSession()com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.StringgetCurrentSessionId()ObjectgetObject(String tag)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract StringhandleClearSession()protected abstract StringhandleCreateSession()protected abstract StringhandleGetCurrentSessionId()protected abstract ObjecthandleGetObject(String tag)protected abstract voidhandlePutObject(String tag, Object value)protected abstract StringhandleSetSession(String sessionId)voidputObject(String tag, Object value)voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.StringsetSession(String sessionId)
-
-
-
Method Detail
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
getObject
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Object getObject(String tag) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getObjectin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetObject
protected abstract Object handleGetObject(String tag) throws Exception
- Throws:
Exception
-
clearSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String clearSession() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
clearSessionin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleClearSession
protected abstract String handleClearSession() throws Exception
- Throws:
Exception
-
createSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String createSession() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createSessionin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateSession
protected abstract String handleCreateSession() throws Exception
- Throws:
Exception
-
getCurrentSessionId
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String getCurrentSessionId() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getCurrentSessionIdin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetCurrentSessionId
protected abstract String handleGetCurrentSessionId() throws Exception
- Throws:
Exception
-
setSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String setSession(String sessionId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
setSessionin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSetSession
protected abstract String handleSetSession(String sessionId) throws Exception
- Throws:
Exception
-
putObject
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void putObject(String tag, Object value) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
putObjectin interfacecom.soffid.iam.service.SessionCacheService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handlePutObject
protected abstract void handlePutObject(String tag, Object value) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-