Class 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 com.soffid.iam.service.PamSessionService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.PamSessionService
    • Constructor Detail

      • PamSessionServiceBase

        public PamSessionServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setAccountService

        public void setAccountService​(com.soffid.iam.service.AccountService accountService)
        Sets reference to accountService.
      • getAccountService

        public com.soffid.iam.service.AccountService getAccountService()
        Gets reference to accountService.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setDispatcherService

        public void setDispatcherService​(com.soffid.iam.service.DispatcherService dispatcherService)
        Sets reference to dispatcherService.
      • getDispatcherService

        public com.soffid.iam.service.DispatcherService getDispatcherService()
        Gets reference to dispatcherService.
      • setJumpServerEntityDao

        public void setJumpServerEntityDao​(JumpServerEntityDao jumpServerEntityDao)
        Sets reference to jumpServerEntityDao.
      • getJumpServerEntityDao

        public JumpServerEntityDao getJumpServerEntityDao()
        Gets reference to jumpServerEntityDao.
      • setJumpServerGroupEntityDao

        public void setJumpServerGroupEntityDao​(JumpServerGroupEntityDao jumpServerGroupEntityDao)
        Sets reference to jumpServerGroupEntityDao.
      • getJumpServerGroupEntityDao

        public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
        Gets reference to jumpServerGroupEntityDao.
      • setHostEntityDao

        public void setHostEntityDao​(HostEntityDao maquinaEntityDao)
        Sets reference to maquinaEntityDao.
      • getHostEntityDao

        public HostEntityDao getHostEntityDao()
        Gets reference to maquinaEntityDao.
      • setPamSecurityHandlerService

        public void setPamSecurityHandlerService​(PamSecurityHandlerService pamSecurityHandlerService)
        Sets reference to pamSecurityHandlerService.
      • getPamSecurityHandlerService

        public PamSecurityHandlerService getPamSecurityHandlerService()
        Gets reference to pamSecurityHandlerService.
      • setAccessLogEntityDao

        public void setAccessLogEntityDao​(AccessLogEntityDao registreAccesEntityDao)
        Sets reference to registreAccesEntityDao.
      • getAccessLogEntityDao

        public AccessLogEntityDao getAccessLogEntityDao()
        Gets reference to registreAccesEntityDao.
      • setServiceEntityDao

        public void setServiceEntityDao​(ServiceEntityDao serveiEntityDao)
        Sets reference to serveiEntityDao.
      • getServiceEntityDao

        public ServiceEntityDao getServiceEntityDao()
        Gets reference to serveiEntityDao.
      • setSessionEntityDao

        public void setSessionEntityDao​(SessionEntityDao sessioEntityDao)
        Sets reference to sessioEntityDao.
      • getSessionEntityDao

        public SessionEntityDao getSessionEntityDao()
        Gets reference to sessioEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • setNetworkService

        public void setNetworkService​(com.soffid.iam.service.NetworkService xarxaService)
        Sets reference to xarxaService.
      • getNetworkService

        public com.soffid.iam.service.NetworkService getNetworkService()
        Gets reference to xarxaService.
      • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.soffid.iam.service.PamSessionService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getConsoleFreeSpace

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Long getConsoleFreeSpace​(String jumpServerGroup)
                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getConsoleFreeSpace in interface com.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 interface com.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 interface com.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 interface com.soffid.iam.service.PamSessionService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 interface com.soffid.iam.service.PamSessionService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 interface com.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 interface com.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 interface com.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 interface com.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 current principal if one has been set, otherwise returns null.
        Returns:
        the current principal