Package es.caib.seycon.ng.servei
Class SessioServiceBaseProxy
- java.lang.Object
-
- es.caib.seycon.ng.servei.SessioServiceBaseProxy
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SessioService
public class SessioServiceBaseProxy 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 SessioServiceBaseProxy()
-
Method Summary
All Methods Instance 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
.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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-