Package com.soffid.iam.service
Class SessionServiceBase
- java.lang.Object
-
- com.soffid.iam.service.SessionServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.SessionService
- Direct Known Subclasses:
SessionServiceImpl
public abstract class SessionServiceBase extends Object implements com.soffid.iam.service.SessionService
Spring Service base class for
see com.soffid.iam.service.SessionServicecom.soffid.iam.service.SessionService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SessionServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanTransientKey(long id, String key)
void
destroySession(com.soffid.iam.api.Session sessio)
Collection<com.soffid.iam.api.Session>
findActiveSessions()
AccessLogEntityDao
getAccessLogEntityDao()
Gets reference toregistreAccesEntityDao
.AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.Collection<com.soffid.iam.api.Session>
getActiveSessions()
Collection<com.soffid.iam.api.Session>
getActiveSessions(long idUsuari)
HostEntityDao
getHostEntityDao()
Gets reference tomaquinaEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServiceEntityDao
getServiceEntityDao()
Gets reference toserveiEntityDao
.com.soffid.iam.api.Session
getSession(long id, String key)
com.soffid.iam.api.Session
getSessionByHost(long id, String hostIp)
SessionEntityDao
getSessionEntityDao()
Gets reference tosessioEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract void
handleCleanTransientKey(long id, String key)
protected abstract void
handleDestroySession(com.soffid.iam.api.Session sessio)
protected abstract Collection<com.soffid.iam.api.Session>
handleFindActiveSessions()
protected abstract Collection<com.soffid.iam.api.Session>
handleGetActiveSessions()
protected abstract Collection<com.soffid.iam.api.Session>
handleGetActiveSessions(long idUsuari)
protected abstract com.soffid.iam.api.Session
handleGetSession(long id, String key)
protected abstract com.soffid.iam.api.Session
handleGetSessionByHost(long id, String hostIp)
protected abstract com.soffid.iam.api.Session
handleRegisterSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)
protected abstract com.soffid.iam.api.Session
handleRegisterWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)
protected abstract void
handleSessionKeepAlive(com.soffid.iam.api.Session session)
protected abstract String
handleUpdateTransientKey(long id, String key)
com.soffid.iam.api.Session
registerSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)
com.soffid.iam.api.Session
registerWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)
void
sessionKeepAlive(com.soffid.iam.api.Session session)
void
setAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)
Sets reference toregistreAccesEntityDao
.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.void
setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.void
setSessionEntityDao(SessionEntityDao sessioEntityDao)
Sets reference tosessioEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.String
updateTransientKey(long id, String key)
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao
.
-
setHostEntityDao
public void setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.
-
getHostEntityDao
public HostEntityDao getHostEntityDao()
Gets reference tomaquinaEntityDao
.
-
setAccessLogEntityDao
public void setAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)
Sets reference toregistreAccesEntityDao
.
-
getAccessLogEntityDao
public AccessLogEntityDao getAccessLogEntityDao()
Gets reference toregistreAccesEntityDao
.
-
setServiceEntityDao
public void setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.
-
getServiceEntityDao
public ServiceEntityDao getServiceEntityDao()
Gets reference toserveiEntityDao
.
-
setSessionEntityDao
public void setSessionEntityDao(SessionEntityDao sessioEntityDao)
Sets reference tosessioEntityDao
.
-
getSessionEntityDao
public SessionEntityDao getSessionEntityDao()
Gets reference tosessioEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
getSessionByHost
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Session getSessionByHost(long id, String hostIp) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSessionByHost
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSessionByHost
protected abstract com.soffid.iam.api.Session handleGetSessionByHost(long id, String hostIp) throws Exception
- Throws:
Exception
-
getSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Session getSession(long id, String key) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSession
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSession
protected abstract com.soffid.iam.api.Session handleGetSession(long id, String key) throws Exception
- Throws:
Exception
-
registerSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Session registerSession(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:
registerSession
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRegisterSession
protected abstract com.soffid.iam.api.Session handleRegisterSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod) throws Exception
- Throws:
Exception
-
registerWebSession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Session registerWebSession(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:
registerWebSession
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
es.caib.seycon.ng.exception.UnknownUserException
-
handleRegisterWebSession
protected abstract com.soffid.iam.api.Session handleRegisterWebSession(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 interfacecom.soffid.iam.service.SessionService
- 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<com.soffid.iam.api.Session> findActiveSessions() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findActiveSessions
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindActiveSessions
protected abstract Collection<com.soffid.iam.api.Session> handleFindActiveSessions() throws Exception
- Throws:
Exception
-
getActiveSessions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Session> getActiveSessions() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getActiveSessions
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetActiveSessions
protected abstract Collection<com.soffid.iam.api.Session> handleGetActiveSessions() throws Exception
- Throws:
Exception
-
getActiveSessions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Session> getActiveSessions(long idUsuari) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getActiveSessions
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetActiveSessions
protected abstract Collection<com.soffid.iam.api.Session> 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 interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCleanTransientKey
protected abstract void handleCleanTransientKey(long id, String key) throws Exception
- Throws:
Exception
-
destroySession
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void destroySession(com.soffid.iam.api.Session sessio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
destroySession
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDestroySession
protected abstract void handleDestroySession(com.soffid.iam.api.Session sessio) throws Exception
- Throws:
Exception
-
sessionKeepAlive
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void sessionKeepAlive(com.soffid.iam.api.Session session) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
sessionKeepAlive
in interfacecom.soffid.iam.service.SessionService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSessionKeepAlive
protected abstract void handleSessionKeepAlive(com.soffid.iam.api.Session session) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-