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 voidcleanTransientKey(long id, String key)voiddestroySession(com.soffid.iam.api.Session sessio)Collection<com.soffid.iam.api.Session>findActiveSessions()AccessLogEntityDaogetAccessLogEntityDao()Gets reference toregistreAccesEntityDao.AccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.Collection<com.soffid.iam.api.Session>getActiveSessions()Collection<com.soffid.iam.api.Session>getActiveSessions(long idUsuari)HostEntityDaogetHostEntityDao()Gets reference tomaquinaEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.ServiceEntityDaogetServiceEntityDao()Gets reference toserveiEntityDao.com.soffid.iam.api.SessiongetSession(long id, String key)com.soffid.iam.api.SessiongetSessionByHost(long id, String hostIp)SessionEntityDaogetSessionEntityDao()Gets reference tosessioEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract voidhandleCleanTransientKey(long id, String key)protected abstract voidhandleDestroySession(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.SessionhandleGetSession(long id, String key)protected abstract com.soffid.iam.api.SessionhandleGetSessionByHost(long id, String hostIp)protected abstract com.soffid.iam.api.SessionhandleRegisterSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)protected abstract com.soffid.iam.api.SessionhandleRegisterWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)protected abstract voidhandleSessionKeepAlive(com.soffid.iam.api.Session session)protected abstract StringhandleUpdateTransientKey(long id, String key)com.soffid.iam.api.SessionregisterSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)com.soffid.iam.api.SessionregisterWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)voidsessionKeepAlive(com.soffid.iam.api.Session session)voidsetAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)Sets reference toregistreAccesEntityDao.voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetHostEntityDao(HostEntityDao maquinaEntityDao)Sets reference tomaquinaEntityDao.voidsetServiceEntityDao(ServiceEntityDao serveiEntityDao)Sets reference toserveiEntityDao.voidsetSessionEntityDao(SessionEntityDao sessioEntityDao)Sets reference tosessioEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.StringupdateTransientKey(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:
getSessionByHostin 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:
getSessionin 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:
registerSessionin 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:
registerWebSessionin interfacecom.soffid.iam.service.SessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptiones.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:
updateTransientKeyin 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:
findActiveSessionsin 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:
getActiveSessionsin 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:
getActiveSessionsin 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:
cleanTransientKeyin 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:
destroySessionin 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:
sessionKeepAlivein 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-