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 boolean
checkJumpServerSession(com.soffid.iam.api.Session sessio)
com.soffid.iam.api.JumpServerGroup
create(com.soffid.iam.api.JumpServerGroup jumpServerGroup)
com.soffid.iam.api.NewPamSession
createCustomJumpServerSession(com.soffid.iam.api.Account account, String sourceIp, es.caib.seycon.ng.comu.TipusSessio type, String info)
com.soffid.iam.api.NewPamSession
createJumpServerSession(com.soffid.iam.api.Account account)
com.soffid.iam.api.NewPamSession
createJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor)
com.soffid.iam.api.NewPamSession
createJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor, String pamPolicy)
List<com.soffid.iam.api.JumpServerGroup>
findJumpServerGroups()
com.soffid.iam.api.PamSession
findSession(String serverGroup, String sessionId)
void
generateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream)
void
generateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end)
AccessLogEntityDao
getAccessLogEntityDao()
Gets reference toregistreAccesEntityDao
.AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.AccountService
getAccountService()
Gets reference toaccountService
.Integer
getActiveSessions(String server)
AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.Long
getConsoleFreeSpace(String jumpServerGroup)
Long
getConsoleUsedSpace(String jumpServerGroup)
com.soffid.iam.service.DispatcherService
getDispatcherService()
Gets reference todispatcherService
.HostEntityDao
getHostEntityDao()
Gets reference tomaquinaEntityDao
.JumpServerEntityDao
getJumpServerEntityDao()
Gets reference tojumpServerEntityDao
.JumpServerGroupEntityDao
getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.com.soffid.iam.service.NetworkService
getNetworkService()
Gets reference toxarxaService
.PamSecurityHandlerService
getPamSecurityHandlerService()
Gets reference topamSecurityHandlerService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServiceEntityDao
getServiceEntityDao()
Gets reference toserveiEntityDao
.SessionEntityDao
getSessionEntityDao()
Gets reference tosessioEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.long
getVideoSize(com.soffid.iam.api.PamSession session, long chapter)
protected abstract boolean
handleCheckJumpServerSession(com.soffid.iam.api.Session sessio)
protected abstract com.soffid.iam.api.JumpServerGroup
handleCreate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)
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)
protected abstract com.soffid.iam.api.NewPamSession
handleCreateJumpServerSession(com.soffid.iam.api.Account account)
protected abstract com.soffid.iam.api.NewPamSession
handleCreateJumpServerSession(com.soffid.iam.api.Account account, String entryPointDescriptor)
protected abstract com.soffid.iam.api.NewPamSession
handleCreateJumpServerSession(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.PamSession
handleFindSession(String serverGroup, String sessionId)
protected abstract void
handleGenerateKeystrokes(com.soffid.iam.api.PamSession session, OutputStream stream)
protected abstract void
handleGenerateVideo(com.soffid.iam.api.PamSession session, long chapter, OutputStream stream, long start, long end)
protected abstract Integer
handleGetActiveSessions(String server)
protected abstract Long
handleGetConsoleFreeSpace(String jumpServerGroup)
protected abstract Long
handleGetConsoleUsedSpace(String jumpServerGroup)
protected abstract long
handleGetVideoSize(com.soffid.iam.api.PamSession session, long chapter)
protected abstract void
handleRemove(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.JumpServerGroup
handleUpdate(com.soffid.iam.api.JumpServerGroup jumpServerGroup)
void
remove(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)
void
setAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)
Sets reference toregistreAccesEntityDao
.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.void
setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.void
setJumpServerEntityDao(JumpServerEntityDao jumpServerEntityDao)
Sets reference tojumpServerEntityDao
.void
setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.void
setNetworkService(com.soffid.iam.service.NetworkService xarxaService)
Sets reference toxarxaService
.void
setPamSecurityHandlerService(PamSecurityHandlerService pamSecurityHandlerService)
Sets reference topamSecurityHandlerService
.void
setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.void
setSessionEntityDao(SessionEntityDao sessioEntityDao)
Sets reference tosessioEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.com.soffid.iam.api.JumpServerGroup
update(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:
checkJumpServerSession
in 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:
create
in 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:
update
in 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:
createCustomJumpServerSession
in 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:
createJumpServerSession
in 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:
createJumpServerSession
in 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:
createJumpServerSession
in 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:
findSession
in 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:
getActiveSessions
in 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:
getConsoleFreeSpace
in 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:
getConsoleUsedSpace
in 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:
findJumpServerGroups
in 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:
search
in 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:
search
in 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:
getVideoSize
in 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:
generateKeystrokes
in 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:
generateVideo
in 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:
remove
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-