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 voidcleanTransientKey(long id, String key)voiddestroySessio(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 PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.es.caib.seycon.ng.comu.SessiogetSessioByHost(long id, String hostIp)es.caib.seycon.ng.comu.SessiogetSession(long id, String key)com.soffid.iam.service.SessionServicegetSessionService()Gets reference tosessionService.protected abstract voidhandleCleanTransientKey(long id, String key)protected abstract voidhandleDestroySessio(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.SessiohandleGetSessioByHost(long id, String hostIp)protected abstract es.caib.seycon.ng.comu.SessiohandleGetSession(long id, String key)protected abstract es.caib.seycon.ng.comu.SessiohandleRegisterSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)protected abstract es.caib.seycon.ng.comu.SessiohandleRegistraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)protected abstract voidhandleSessioKeepAlive(es.caib.seycon.ng.comu.Sessio session)protected abstract StringhandleUpdateTransientKey(long id, String key)es.caib.seycon.ng.comu.SessioregisterSessio(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)es.caib.seycon.ng.comu.SessioregistraSessioWeb(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)voidsessioKeepAlive(es.caib.seycon.ng.comu.Sessio session)voidsetSessionService(com.soffid.iam.service.SessionService sessionService)Sets reference tosessionService.StringupdateTransientKey(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:
getSessioByHostin 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:
getSessionin 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:
registerSessioin 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:
registraSessioWebin interfacees.caib.seycon.ng.servei.SessioService- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptiones.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:
updateTransientKeyin 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:
findActiveSessionsin 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:
getActiveSessionsin 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:
getActiveSessionsin 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:
cleanTransientKeyin 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:
destroySessioin 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:
sessioKeepAlivein 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-