Package es.caib.seycon.ng.servei
Class SessioServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.SessioServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SessioService
public abstract class SessioServiceBase extends Object implements es.caib.seycon.ng.servei.SessioService
Spring Service base class for
see es.caib.seycon.ng.servei.SessioServicees.caib.seycon.ng.servei.SessioService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SessioServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanTransientKey(long id, String key)
void
destroySessio(es.caib.seycon.ng.comu.Sessio sessio)
Collection<es.caib.seycon.ng.comu.Sessio>
findActiveSessions()
Collection<es.caib.seycon.ng.comu.Sessio>
getActiveSessions()
Collection<es.caib.seycon.ng.comu.Sessio>
getActiveSessions(long idUsuari)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.es.caib.seycon.ng.comu.Sessio
getSessioByHost(long id, String hostIp)
es.caib.seycon.ng.comu.Sessio
getSession(long id, String key)
com.soffid.iam.service.SessionService
getSessionService()
Gets reference tosessionService
.protected abstract void
handleCleanTransientKey(long id, String key)
protected abstract void
handleDestroySessio(es.caib.seycon.ng.comu.Sessio sessio)
protected abstract Collection<es.caib.seycon.ng.comu.Sessio>
handleFindActiveSessions()
protected abstract Collection<es.caib.seycon.ng.comu.Sessio>
handleGetActiveSessions()
protected abstract Collection<es.caib.seycon.ng.comu.Sessio>
handleGetActiveSessions(long idUsuari)
protected abstract es.caib.seycon.ng.comu.Sessio
handleGetSessioByHost(long id, String hostIp)
protected abstract es.caib.seycon.ng.comu.Sessio
handleGetSession(long id, String key)
protected abstract es.caib.seycon.ng.comu.Sessio
handleRegisterSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)
protected abstract es.caib.seycon.ng.comu.Sessio
handleRegistraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)
protected abstract void
handleSessioKeepAlive(es.caib.seycon.ng.comu.Sessio session)
protected abstract String
handleUpdateTransientKey(long id, String key)
es.caib.seycon.ng.comu.Sessio
registerSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)
es.caib.seycon.ng.comu.Sessio
registraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)
void
sessioKeepAlive(es.caib.seycon.ng.comu.Sessio session)
void
setSessionService(com.soffid.iam.service.SessionService sessionService)
Sets reference tosessionService
.String
updateTransientKey(long id, String key)
-
-
-
Method Detail
-
setSessionService
public void setSessionService(com.soffid.iam.service.SessionService sessionService)
Sets reference tosessionService
.
-
getSessionService
public com.soffid.iam.service.SessionService getSessionService()
Gets reference tosessionService
.
-
getSessioByHost
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Sessio getSessioByHost(long id, String hostIp) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSessioByHost
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSessioByHost
protected abstract es.caib.seycon.ng.comu.Sessio handleGetSessioByHost(long id, String hostIp) throws Exception
- Throws:
Exception
-
getSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Sessio getSession(long id, String key) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSession
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSession
protected abstract es.caib.seycon.ng.comu.Sessio handleGetSession(long id, String key) throws Exception
- Throws:
Exception
-
registerSessio
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Sessio registerSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
registerSessio
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRegisterSessio
protected abstract es.caib.seycon.ng.comu.Sessio handleRegisterSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod) throws Exception
- Throws:
Exception
-
registraSessioWeb
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Sessio registraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.UnknownUserException
- Specified by:
registraSessioWeb
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
es.caib.seycon.ng.exception.UnknownUserException
-
handleRegistraSessioWeb
protected abstract es.caib.seycon.ng.comu.Sessio handleRegistraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod) throws Exception
- Throws:
Exception
-
updateTransientKey
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String updateTransientKey(long id, String key) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateTransientKey
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateTransientKey
protected abstract String handleUpdateTransientKey(long id, String key) throws Exception
- Throws:
Exception
-
findActiveSessions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Sessio> findActiveSessions() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findActiveSessions
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindActiveSessions
protected abstract Collection<es.caib.seycon.ng.comu.Sessio> handleFindActiveSessions() throws Exception
- Throws:
Exception
-
getActiveSessions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Sessio> getActiveSessions() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getActiveSessions
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetActiveSessions
protected abstract Collection<es.caib.seycon.ng.comu.Sessio> handleGetActiveSessions() throws Exception
- Throws:
Exception
-
getActiveSessions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Sessio> getActiveSessions(long idUsuari) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getActiveSessions
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetActiveSessions
protected abstract Collection<es.caib.seycon.ng.comu.Sessio> handleGetActiveSessions(long idUsuari) throws Exception
- Throws:
Exception
-
cleanTransientKey
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void cleanTransientKey(long id, String key) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
cleanTransientKey
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCleanTransientKey
protected abstract void handleCleanTransientKey(long id, String key) throws Exception
- Throws:
Exception
-
destroySessio
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void destroySessio(es.caib.seycon.ng.comu.Sessio sessio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
destroySessio
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDestroySessio
protected abstract void handleDestroySessio(es.caib.seycon.ng.comu.Sessio sessio) throws Exception
- Throws:
Exception
-
sessioKeepAlive
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void sessioKeepAlive(es.caib.seycon.ng.comu.Sessio session) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
sessioKeepAlive
in interfacees.caib.seycon.ng.servei.SessioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSessioKeepAlive
protected abstract void handleSessioKeepAlive(es.caib.seycon.ng.comu.Sessio session) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-