Package com.soffid.iam.service
Class PamSessionServiceBase
- java.lang.Object
-
- com.soffid.iam.service.PamSessionServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.PamSessionService
- Direct Known Subclasses:
PamSessionServiceImpl
public abstract class PamSessionServiceBase extends Object implements com.soffid.iam.service.PamSessionService
Spring Service base class for
see com.soffid.iam.service.PamSessionServicecom.soffid.iam.service.PamSessionService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description PamSessionServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancheckJumpServerSession(com.soffid.iam.api.Session sessio)com.soffid.iam.api.JumpServerGroupcreate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)com.soffid.iam.api.NewPamSessioncreateCustomJumpServerSession(com.soffid.iam.api.Account account, String sourceIp, es.caib.seycon.ng.comu.TipusSessio type, String info)com.soffid.iam.api.NewPamSessioncreateJumpServerSession(com.soffid.iam.api.Account account)com.soffid.iam.api.NewPamSessioncreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor)com.soffid.iam.api.NewPamSessioncreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor, String pamPolicy)List<com.soffid.iam.api.JumpServerGroup>findJumpServerGroups()com.soffid.iam.api.PamSessionfindSession(String serverGroup, String sessionId)voidgenerateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream)voidgenerateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end)AccessLogEntityDaogetAccessLogEntityDao()Gets reference toregistreAccesEntityDao.AccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.com.soffid.iam.service.AccountServicegetAccountService()Gets reference toaccountService.IntegergetActiveSessions(String server)AuditEntityDaogetAuditEntityDao()Gets reference toauditoriaEntityDao.LonggetConsoleFreeSpace(String jumpServerGroup)LonggetConsoleUsedSpace(String jumpServerGroup)com.soffid.iam.service.DispatcherServicegetDispatcherService()Gets reference todispatcherService.HostEntityDaogetHostEntityDao()Gets reference tomaquinaEntityDao.JumpServerEntityDaogetJumpServerEntityDao()Gets reference tojumpServerEntityDao.JumpServerGroupEntityDaogetJumpServerGroupEntityDao()Gets reference tojumpServerGroupEntityDao.com.soffid.iam.service.NetworkServicegetNetworkService()Gets reference toxarxaService.PamSecurityHandlerServicegetPamSecurityHandlerService()Gets reference topamSecurityHandlerService.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.ServiceEntityDaogetServiceEntityDao()Gets reference toserveiEntityDao.SessionEntityDaogetSessionEntityDao()Gets reference tosessioEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.longgetVideoSize(com.soffid.iam.api.PamSession session, long chapter)protected abstract booleanhandleCheckJumpServerSession(com.soffid.iam.api.Session sessio)protected abstract com.soffid.iam.api.JumpServerGrouphandleCreate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)protected abstract com.soffid.iam.api.NewPamSessionhandleCreateCustomJumpServerSession(com.soffid.iam.api.Account account, String sourceIp, es.caib.seycon.ng.comu.TipusSessio type, String info)protected abstract com.soffid.iam.api.NewPamSessionhandleCreateJumpServerSession(com.soffid.iam.api.Account account)protected abstract com.soffid.iam.api.NewPamSessionhandleCreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor)protected abstract com.soffid.iam.api.NewPamSessionhandleCreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor, String pamPolicy)protected abstract List<com.soffid.iam.api.JumpServerGroup>handleFindJumpServerGroups()protected abstract com.soffid.iam.api.PamSessionhandleFindSession(String serverGroup, String sessionId)protected abstract voidhandleGenerateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream)protected abstract voidhandleGenerateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end)protected abstract IntegerhandleGetActiveSessions(String server)protected abstract LonghandleGetConsoleFreeSpace(String jumpServerGroup)protected abstract LonghandleGetConsoleUsedSpace(String jumpServerGroup)protected abstract longhandleGetVideoSize(com.soffid.iam.api.PamSession session, long chapter)protected abstract voidhandleRemove(com.soffid.iam.api.JumpServerGroup jumpServerGroup)protected abstract List<com.soffid.iam.api.PamSession>handleSearch(String jumpServerGroup, String url, String text, String screenshots, String user, Date since, Date until)protected abstract List<com.soffid.iam.api.PamSession>handleSearch(String jumpServerGroup, String url, String text, String user, Date since, Date until)protected abstract com.soffid.iam.api.JumpServerGrouphandleUpdate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)voidremove(com.soffid.iam.api.JumpServerGroup jumpServerGroup)List<com.soffid.iam.api.PamSession>search(String jumpServerGroup, String url, String text, String screenshots, String user, Date since, Date until)List<com.soffid.iam.api.PamSession>search(String jumpServerGroup, String url, String text, String user, Date since, Date until)voidsetAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)Sets reference toregistreAccesEntityDao.voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetAccountService(com.soffid.iam.service.AccountService accountService)Sets reference toaccountService.voidsetAuditEntityDao(AuditEntityDao auditoriaEntityDao)Sets reference toauditoriaEntityDao.voidsetDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)Sets reference todispatcherService.voidsetHostEntityDao(HostEntityDao maquinaEntityDao)Sets reference tomaquinaEntityDao.voidsetJumpServerEntityDao(JumpServerEntityDao jumpServerEntityDao)Sets reference tojumpServerEntityDao.voidsetJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)Sets reference tojumpServerGroupEntityDao.voidsetNetworkService(com.soffid.iam.service.NetworkService xarxaService)Sets reference toxarxaService.voidsetPamSecurityHandlerService(PamSecurityHandlerService pamSecurityHandlerService)Sets reference topamSecurityHandlerService.voidsetServiceEntityDao(ServiceEntityDao serveiEntityDao)Sets reference toserveiEntityDao.voidsetSessionEntityDao(SessionEntityDao sessioEntityDao)Sets reference tosessioEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.com.soffid.iam.api.JumpServerGroupupdate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setAccountService
public void setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService.
-
getAccountService
public com.soffid.iam.service.AccountService getAccountService()
Gets reference toaccountService.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao.
-
setDispatcherService
public void setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService.
-
getDispatcherService
public com.soffid.iam.service.DispatcherService getDispatcherService()
Gets reference todispatcherService.
-
setJumpServerEntityDao
public void setJumpServerEntityDao(JumpServerEntityDao jumpServerEntityDao)
Sets reference tojumpServerEntityDao.
-
getJumpServerEntityDao
public JumpServerEntityDao getJumpServerEntityDao()
Gets reference tojumpServerEntityDao.
-
setJumpServerGroupEntityDao
public void setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao.
-
getJumpServerGroupEntityDao
public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao.
-
setHostEntityDao
public void setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao.
-
getHostEntityDao
public HostEntityDao getHostEntityDao()
Gets reference tomaquinaEntityDao.
-
setPamSecurityHandlerService
public void setPamSecurityHandlerService(PamSecurityHandlerService pamSecurityHandlerService)
Sets reference topamSecurityHandlerService.
-
getPamSecurityHandlerService
public PamSecurityHandlerService getPamSecurityHandlerService()
Gets reference topamSecurityHandlerService.
-
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.
-
setNetworkService
public void setNetworkService(com.soffid.iam.service.NetworkService xarxaService)
Sets reference toxarxaService.
-
getNetworkService
public com.soffid.iam.service.NetworkService getNetworkService()
Gets reference toxarxaService.
-
checkJumpServerSession
@Transactional(rollbackFor=java.lang.Exception.class) public boolean checkJumpServerSession(com.soffid.iam.api.Session sessio) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
checkJumpServerSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckJumpServerSession
protected abstract boolean handleCheckJumpServerSession(com.soffid.iam.api.Session sessio) throws Exception- Throws:
Exception
-
create
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.JumpServerGroup create(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.JumpServerGroup handleCreate(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws Exception- Throws:
Exception
-
update
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.JumpServerGroup update(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatein interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.JumpServerGroup handleUpdate(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws Exception- Throws:
Exception
-
createCustomJumpServerSession
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.NewPamSession createCustomJumpServerSession(com.soffid.iam.api.Account account, String sourceIp, es.caib.seycon.ng.comu.TipusSessio type, String info) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createCustomJumpServerSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateCustomJumpServerSession
protected abstract com.soffid.iam.api.NewPamSession handleCreateCustomJumpServerSession(com.soffid.iam.api.Account account, String sourceIp, es.caib.seycon.ng.comu.TipusSessio type, String info) throws Exception- Throws:
Exception
-
createJumpServerSession
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.NewPamSession createJumpServerSession(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createJumpServerSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateJumpServerSession
protected abstract com.soffid.iam.api.NewPamSession handleCreateJumpServerSession(com.soffid.iam.api.Account account) throws Exception- Throws:
Exception
-
createJumpServerSession
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.NewPamSession createJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createJumpServerSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateJumpServerSession
protected abstract com.soffid.iam.api.NewPamSession handleCreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor) throws Exception- Throws:
Exception
-
createJumpServerSession
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.NewPamSession createJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor, String pamPolicy) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createJumpServerSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateJumpServerSession
protected abstract com.soffid.iam.api.NewPamSession handleCreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor, String pamPolicy) throws Exception- Throws:
Exception
-
findSession
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamSession findSession(String serverGroup, String sessionId) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findSessionin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSession
protected abstract com.soffid.iam.api.PamSession handleFindSession(String serverGroup, String sessionId) throws Exception
- Throws:
Exception
-
getActiveSessions
@Transactional(rollbackFor=java.lang.Exception.class) public Integer getActiveSessions(String server) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getActiveSessionsin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetActiveSessions
protected abstract Integer handleGetActiveSessions(String server) throws Exception
- Throws:
Exception
-
getConsoleFreeSpace
@Transactional(rollbackFor=java.lang.Exception.class) public Long getConsoleFreeSpace(String jumpServerGroup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getConsoleFreeSpacein interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetConsoleFreeSpace
protected abstract Long handleGetConsoleFreeSpace(String jumpServerGroup) throws Exception
- Throws:
Exception
-
getConsoleUsedSpace
@Transactional(rollbackFor=java.lang.Exception.class) public Long getConsoleUsedSpace(String jumpServerGroup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getConsoleUsedSpacein interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetConsoleUsedSpace
protected abstract Long handleGetConsoleUsedSpace(String jumpServerGroup) throws Exception
- Throws:
Exception
-
findJumpServerGroups
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.JumpServerGroup> findJumpServerGroups() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findJumpServerGroupsin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindJumpServerGroups
protected abstract List<com.soffid.iam.api.JumpServerGroup> handleFindJumpServerGroups() throws Exception
- Throws:
Exception
-
search
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.PamSession> search(String jumpServerGroup, String url, String text, String screenshots, String user, Date since, Date until) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
searchin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSearch
protected abstract List<com.soffid.iam.api.PamSession> handleSearch(String jumpServerGroup, String url, String text, String screenshots, String user, Date since, Date until) throws Exception
- Throws:
Exception
-
search
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.PamSession> search(String jumpServerGroup, String url, String text, String user, Date since, Date until) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
searchin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSearch
protected abstract List<com.soffid.iam.api.PamSession> handleSearch(String jumpServerGroup, String url, String text, String user, Date since, Date until) throws Exception
- Throws:
Exception
-
getVideoSize
@Transactional(rollbackFor=java.lang.Exception.class) public long getVideoSize(com.soffid.iam.api.PamSession session, long chapter) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getVideoSizein interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetVideoSize
protected abstract long handleGetVideoSize(com.soffid.iam.api.PamSession session, long chapter) throws Exception- Throws:
Exception
-
generateKeystrokes
@Transactional(rollbackFor=java.lang.Exception.class) public void generateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
generateKeystrokesin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateKeystrokes
protected abstract void handleGenerateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream) throws Exception- Throws:
Exception
-
generateVideo
@Transactional(rollbackFor=java.lang.Exception.class) public void generateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
generateVideoin interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateVideo
protected abstract void handleGenerateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end) throws Exception- Throws:
Exception
-
remove
@Transactional(rollbackFor=java.lang.Exception.class) public void remove(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
removein interfacecom.soffid.iam.service.PamSessionService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(com.soffid.iam.api.JumpServerGroup jumpServerGroup) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-