Class SyncServerServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.SyncServerService
    Direct Known Subclasses:
    SyncServerServiceImpl

    public abstract class SyncServerServiceBase
    extends Object
    implements com.soffid.iam.service.SyncServerService

    Spring Service base class for com.soffid.iam.service.SyncServerService, provides access to all services and entities referenced by this service.

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

      • SyncServerServiceBase

        public SyncServerServiceBase()
    • Method Detail

      • setConfigEntityDao

        public void setConfigEntityDao​(ConfigEntityDao configuracioEntityDao)
        Sets reference to configuracioEntityDao.
      • getConfigEntityDao

        public ConfigEntityDao getConfigEntityDao()
        Gets reference to configuracioEntityDao.
      • setConfigurationService

        public void setConfigurationService​(com.soffid.iam.service.ConfigurationService configuracioService)
        Sets reference to configuracioService.
      • getConfigurationService

        public com.soffid.iam.service.ConfigurationService getConfigurationService()
        Gets reference to configuracioService.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • 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.
      • setServerEntityDao

        public void setServerEntityDao​(ServerEntityDao serverEntityDao)
        Sets reference to serverEntityDao.
      • getServerEntityDao

        public ServerEntityDao getServerEntityDao()
        Gets reference to serverEntityDao.
      • setServerInstanceEntityDao

        public void setServerInstanceEntityDao​(ServerInstanceEntityDao serverInstanceEntityDao)
        Sets reference to serverInstanceEntityDao.
      • getServerInstanceEntityDao

        public ServerInstanceEntityDao getServerInstanceEntityDao()
        Gets reference to serverInstanceEntityDao.
      • setStatsEntityDao

        public void setStatsEntityDao​(StatsEntityDao statsEntityDao)
        Sets reference to statsEntityDao.
      • getStatsEntityDao

        public StatsEntityDao getStatsEntityDao()
        Gets reference to statsEntityDao.
      • setStatsService

        public void setStatsService​(com.soffid.iam.service.StatsService statsService)
        Sets reference to statsService.
      • getStatsService

        public com.soffid.iam.service.StatsService getStatsService()
        Gets reference to statsService.
      • setTaskLogEntityDao

        public void setTaskLogEntityDao​(TaskLogEntityDao taskLogEntityDao)
        Sets reference to taskLogEntityDao.
      • getTaskLogEntityDao

        public TaskLogEntityDao getTaskLogEntityDao()
        Gets reference to taskLogEntityDao.
      • setTaskEntityDao

        public void setTaskEntityDao​(TaskEntityDao tasqueEntityDao)
        Sets reference to tasqueEntityDao.
      • getTaskEntityDao

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • setTenantEntityDao

        public void setTenantEntityDao​(TenantEntityDao tenantEntityDao)
        Sets reference to tenantEntityDao.
      • getTenantEntityDao

        public TenantEntityDao getTenantEntityDao()
        Gets reference to tenantEntityDao.
      • getAgentTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.SyncAgentTaskLog getAgentTasks​(String url,
                                                                 String agentName,
                                                                 Long taskId)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAgentTasks

        protected abstract com.soffid.iam.api.SyncAgentTaskLog handleGetAgentTasks​(String url,
                                                                                   String agentName,
                                                                                   Long taskId)
                                                                            throws Exception
        Throws:
        Exception
      • getSyncServerInfo

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.SyncServerInfo getSyncServerInfo​(String url)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSyncServerInfo in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetSyncServerInfo

        protected abstract com.soffid.iam.api.SyncServerInfo handleGetSyncServerInfo​(String url)
                                                                              throws Exception
        Throws:
        Exception
      • getSeyconServerLog

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public InputStream getSeyconServerLog​(String urlServer)
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSeyconServerLog in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getServerService

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Object getServerService​(String servicePath)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerService in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • tailServerLog

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String[] tailServerLog​(String urlServer)
                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        tailServerLog in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUnscheduledTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.ui.SeyconTask> findUnscheduledTasks()
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUnscheduledTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUnscheduledTasks

        protected abstract Collection<com.soffid.iam.ui.SeyconTask> handleFindUnscheduledTasks()
                                                                                        throws Exception
        Throws:
        Exception
      • getAgentTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.SyncAgentTaskLog> getAgentTasks​(String url,
                                                                             String agentCodi)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPendingTasksInfo

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.SyncServerInfo> getPendingTasksInfo()
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPendingTasksInfo in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetPendingTasksInfo

        protected abstract Collection<com.soffid.iam.api.SyncServerInfo> handleGetPendingTasksInfo()
                                                                                            throws Exception
        Throws:
        Exception
      • getServerAgentStatus

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus()
                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerAgentStatus in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetServerAgentStatus

        protected abstract Collection<com.soffid.iam.api.AgentStatusInfo> handleGetServerAgentStatus()
                                                                                              throws Exception
        Throws:
        Exception
      • getServerAgentStatus

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus​(String url)
                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerAgentStatus in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetServerAgentStatus

        protected abstract Collection<com.soffid.iam.api.AgentStatusInfo> handleGetServerAgentStatus​(String url)
                                                                                              throws Exception
        Throws:
        Exception
      • getServerTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<Object> getServerTasks​(String url)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getSyncServersStatus

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.SyncServerInfo> getSyncServersStatus()
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSyncServersStatus in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetSyncServersStatus

        protected abstract Collection<com.soffid.iam.api.SyncServerInfo> handleGetSyncServersStatus()
                                                                                             throws Exception
        Throws:
        Exception
      • getSyncServerInstances

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Server> getSyncServerInstances()
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSyncServerInstances in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetSyncServerInstances

        protected abstract Collection<com.soffid.iam.api.Server> handleGetSyncServerInstances()
                                                                                       throws Exception
        Throws:
        Exception
      • getSyncServers

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Server> getSyncServers()
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSyncServers in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPendingTasksStats

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Map<String,​Vector<Object[]>> getPendingTasksStats()
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPendingTasksStats in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getStats

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Map<String,​int[]> getStats​(String server,
                                                String metric,
                                                int seconds,
                                                int step)
                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getStats in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • boostTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void boostTask​(long taskId)
                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        boostTask in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleBoostTask

        protected abstract void handleBoostTask​(long taskId)
                                         throws Exception
        Throws:
        Exception
      • cancelTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void cancelTask​(long taskId)
                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancelTask in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCancelTask

        protected abstract void handleCancelTask​(long taskId)
                                          throws Exception
        Throws:
        Exception
      • cancelUnscheduledTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void cancelUnscheduledTasks()
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancelUnscheduledTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCancelUnscheduledTasks

        protected abstract void handleCancelUnscheduledTasks()
                                                      throws Exception
        Throws:
        Exception
      • releaseAllTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void releaseAllTasks()
                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        releaseAllTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReleaseAllTasks

        protected abstract void handleReleaseAllTasks()
                                               throws Exception
        Throws:
        Exception
      • releaseTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void releaseTask​(long taskId)
                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        releaseTask in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReleaseTask

        protected abstract void handleReleaseTask​(long taskId)
                                           throws Exception
        Throws:
        Exception
      • resetSyncServer

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void resetSyncServer​(String url,
                                    String server)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        resetSyncServer in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateDispatcherConfiguration

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void updateDispatcherConfiguration()
                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateDispatcherConfiguration in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateDispatcherConfiguration

        protected abstract void handleUpdateDispatcherConfiguration()
                                                             throws Exception
        Throws:
        Exception
      • updatePendingTasks

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void updatePendingTasks()
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updatePendingTasks in interface com.soffid.iam.service.SyncServerService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdatePendingTasks

        protected abstract void handleUpdatePendingTasks()
                                                  throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal