Class ScheduledTaskServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.ScheduledTaskService
    Direct Known Subclasses:
    ScheduledTaskServiceImpl

    public abstract class ScheduledTaskServiceBase
    extends Object
    implements com.soffid.iam.service.ScheduledTaskService

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

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

      • ScheduledTaskServiceBase

        public ScheduledTaskServiceBase()
    • Method Detail

      • setAuditEntityDao

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

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • 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.
      • setDocumentService

        public void setDocumentService​(com.soffid.iam.doc.service.DocumentService documentService)
        Sets reference to documentService.
      • getDocumentService

        public com.soffid.iam.doc.service.DocumentService getDocumentService()
        Gets reference to documentService.
      • setMailService

        public void setMailService​(MailService mailService)
        Sets reference to mailService.
      • getMailService

        public MailService getMailService()
        Gets reference to mailService.
      • setScheduledTaskEntityDao

        public void setScheduledTaskEntityDao​(ScheduledTaskEntityDao scheduledTaskEntityDao)
        Sets reference to scheduledTaskEntityDao.
      • getScheduledTaskEntityDao

        public ScheduledTaskEntityDao getScheduledTaskEntityDao()
        Gets reference to scheduledTaskEntityDao.
      • setScheduledTaskHandlerEntityDao

        public void setScheduledTaskHandlerEntityDao​(ScheduledTaskHandlerEntityDao scheduledTaskHandlerEntityDao)
        Sets reference to scheduledTaskHandlerEntityDao.
      • getScheduledTaskHandlerEntityDao

        public ScheduledTaskHandlerEntityDao getScheduledTaskHandlerEntityDao()
        Gets reference to scheduledTaskHandlerEntityDao.
      • setScheduledTaskLogEntityDao

        public void setScheduledTaskLogEntityDao​(ScheduledTaskLogEntityDao scheduledTaskLogEntityDao)
        Sets reference to scheduledTaskLogEntityDao.
      • getScheduledTaskLogEntityDao

        public ScheduledTaskLogEntityDao getScheduledTaskLogEntityDao()
        Gets reference to scheduledTaskLogEntityDao.
      • setServerEntityDao

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

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

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

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTask create​(com.soffid.iam.api.ScheduledTask task)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.ScheduledTask handleCreate​(com.soffid.iam.api.ScheduledTask task)
                                                                  throws Exception
        Throws:
        Exception
      • findScheduledTaskByHandlerAndParams

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTask findScheduledTaskByHandlerAndParams​(String handler,
                                                                                    String params)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findScheduledTaskByHandlerAndParams in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindScheduledTaskByHandlerAndParams

        protected abstract com.soffid.iam.api.ScheduledTask handleFindScheduledTaskByHandlerAndParams​(String handler,
                                                                                                      String params)
                                                                                               throws Exception
        Throws:
        Exception
      • load

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTask load​(Long taskId)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        load in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleLoad

        protected abstract com.soffid.iam.api.ScheduledTask handleLoad​(Long taskId)
                                                                throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTask update​(com.soffid.iam.api.ScheduledTask task)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.ScheduledTask handleUpdate​(com.soffid.iam.api.ScheduledTask task)
                                                                  throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTaskHandler create​(com.soffid.iam.api.ScheduledTaskHandler handler)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.ScheduledTaskHandler handleCreate​(com.soffid.iam.api.ScheduledTaskHandler handler)
                                                                         throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTaskHandler update​(com.soffid.iam.api.ScheduledTaskHandler handler)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.ScheduledTaskHandler handleUpdate​(com.soffid.iam.api.ScheduledTaskHandler handler)
                                                                         throws Exception
        Throws:
        Exception
      • listHandlers

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.ScheduledTaskHandler> listHandlers()
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listHandlers in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListHandlers

        protected abstract List<com.soffid.iam.api.ScheduledTaskHandler> handleListHandlers()
                                                                                     throws Exception
        Throws:
        Exception
      • listServerTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.ScheduledTask> listServerTasks​(String server)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listServerTasks in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListServerTasks

        protected abstract List<com.soffid.iam.api.ScheduledTask> handleListServerTasks​(String server)
                                                                                 throws Exception
        Throws:
        Exception
      • listTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.ScheduledTask> listTasks()
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listTasks in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListTasks

        protected abstract List<com.soffid.iam.api.ScheduledTask> handleListTasks()
                                                                           throws Exception
        Throws:
        Exception
      • registerEndTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void registerEndTask​(com.soffid.iam.api.ScheduledTask task)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerEndTask in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterEndTask

        protected abstract void handleRegisterEndTask​(com.soffid.iam.api.ScheduledTask task)
                                               throws Exception
        Throws:
        Exception
      • registerStartTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void registerStartTask​(com.soffid.iam.api.ScheduledTask task)
                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerStartTask in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterStartTask

        protected abstract void handleRegisterStartTask​(com.soffid.iam.api.ScheduledTask task)
                                                 throws Exception
        Throws:
        Exception
      • remove

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void remove​(com.soffid.iam.api.ScheduledTask task)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemove

        protected abstract void handleRemove​(com.soffid.iam.api.ScheduledTask task)
                                      throws Exception
        Throws:
        Exception
      • remove

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void remove​(com.soffid.iam.api.ScheduledTaskHandler handler)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemove

        protected abstract void handleRemove​(com.soffid.iam.api.ScheduledTaskHandler handler)
                                      throws Exception
        Throws:
        Exception
      • startNow

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void startNow​(com.soffid.iam.api.ScheduledTask task)
                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        startNow in interface com.soffid.iam.service.ScheduledTaskService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStartNow

        protected abstract void handleStartNow​(com.soffid.iam.api.ScheduledTask task)
                                        throws Exception
        Throws:
        Exception
      • getPrincipal

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