Package com.soffid.iam.service
Class ScheduledTaskServiceBase
- java.lang.Object
-
- com.soffid.iam.service.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
see com.soffid.iam.service.ScheduledTaskServicecom.soffid.iam.service.ScheduledTaskService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ScheduledTaskServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.ScheduledTaskcreate(com.soffid.iam.api.ScheduledTask task)com.soffid.iam.api.ScheduledTaskHandlercreate(com.soffid.iam.api.ScheduledTaskHandler handler)com.soffid.iam.api.ScheduledTaskfindScheduledTaskByHandlerAndParams(String handler, String params)AuditEntityDaogetAuditEntityDao()Gets reference toauditoriaEntityDao.ConfigEntityDaogetConfigEntityDao()Gets reference toconfiguracioEntityDao.com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.com.soffid.iam.doc.service.DocumentServicegetDocumentService()Gets reference todocumentService.MailServicegetMailService()Gets reference tomailService.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.ScheduledTaskEntityDaogetScheduledTaskEntityDao()Gets reference toscheduledTaskEntityDao.ScheduledTaskHandlerEntityDaogetScheduledTaskHandlerEntityDao()Gets reference toscheduledTaskHandlerEntityDao.ScheduledTaskLogEntityDaogetScheduledTaskLogEntityDao()Gets reference toscheduledTaskLogEntityDao.ServerEntityDaogetServerEntityDao()Gets reference toserverEntityDao.TaskEntityDaogetTaskEntityDao()Gets reference totasqueEntityDao.protected abstract com.soffid.iam.api.ScheduledTaskhandleCreate(com.soffid.iam.api.ScheduledTask task)protected abstract com.soffid.iam.api.ScheduledTaskHandlerhandleCreate(com.soffid.iam.api.ScheduledTaskHandler handler)protected abstract com.soffid.iam.api.ScheduledTaskhandleFindScheduledTaskByHandlerAndParams(String handler, String params)protected abstract List<com.soffid.iam.api.ScheduledTaskHandler>handleListHandlers()protected abstract List<com.soffid.iam.api.ScheduledTask>handleListServerTasks(String server)protected abstract List<com.soffid.iam.api.ScheduledTask>handleListTasks()protected abstract com.soffid.iam.api.ScheduledTaskhandleLoad(Long taskId)protected abstract voidhandleRegisterEndTask(com.soffid.iam.api.ScheduledTask task)protected abstract voidhandleRegisterStartTask(com.soffid.iam.api.ScheduledTask task)protected abstract voidhandleRemove(com.soffid.iam.api.ScheduledTask task)protected abstract voidhandleRemove(com.soffid.iam.api.ScheduledTaskHandler handler)protected abstract voidhandleStartNow(com.soffid.iam.api.ScheduledTask task)protected abstract com.soffid.iam.api.ScheduledTaskhandleUpdate(com.soffid.iam.api.ScheduledTask task)protected abstract com.soffid.iam.api.ScheduledTaskHandlerhandleUpdate(com.soffid.iam.api.ScheduledTaskHandler handler)List<com.soffid.iam.api.ScheduledTaskHandler>listHandlers()List<com.soffid.iam.api.ScheduledTask>listServerTasks(String server)List<com.soffid.iam.api.ScheduledTask>listTasks()com.soffid.iam.api.ScheduledTaskload(Long taskId)voidregisterEndTask(com.soffid.iam.api.ScheduledTask task)voidregisterStartTask(com.soffid.iam.api.ScheduledTask task)voidremove(com.soffid.iam.api.ScheduledTask task)voidremove(com.soffid.iam.api.ScheduledTaskHandler handler)voidsetAuditEntityDao(AuditEntityDao auditoriaEntityDao)Sets reference toauditoriaEntityDao.voidsetConfigEntityDao(ConfigEntityDao configuracioEntityDao)Sets reference toconfiguracioEntityDao.voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.voidsetDocumentService(com.soffid.iam.doc.service.DocumentService documentService)Sets reference todocumentService.voidsetMailService(MailService mailService)Sets reference tomailService.voidsetScheduledTaskEntityDao(ScheduledTaskEntityDao scheduledTaskEntityDao)Sets reference toscheduledTaskEntityDao.voidsetScheduledTaskHandlerEntityDao(ScheduledTaskHandlerEntityDao scheduledTaskHandlerEntityDao)Sets reference toscheduledTaskHandlerEntityDao.voidsetScheduledTaskLogEntityDao(ScheduledTaskLogEntityDao scheduledTaskLogEntityDao)Sets reference toscheduledTaskLogEntityDao.voidsetServerEntityDao(ServerEntityDao serverEntityDao)Sets reference toserverEntityDao.voidsetTaskEntityDao(TaskEntityDao tasqueEntityDao)Sets reference totasqueEntityDao.voidstartNow(com.soffid.iam.api.ScheduledTask task)com.soffid.iam.api.ScheduledTaskupdate(com.soffid.iam.api.ScheduledTask task)com.soffid.iam.api.ScheduledTaskHandlerupdate(com.soffid.iam.api.ScheduledTaskHandler handler)
-
-
-
Method Detail
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao.
-
setConfigEntityDao
public void setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao.
-
getConfigEntityDao
public ConfigEntityDao getConfigEntityDao()
Gets reference toconfiguracioEntityDao.
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
setDocumentService
public void setDocumentService(com.soffid.iam.doc.service.DocumentService documentService)
Sets reference todocumentService.
-
getDocumentService
public com.soffid.iam.doc.service.DocumentService getDocumentService()
Gets reference todocumentService.
-
setMailService
public void setMailService(MailService mailService)
Sets reference tomailService.
-
getMailService
public MailService getMailService()
Gets reference tomailService.
-
setScheduledTaskEntityDao
public void setScheduledTaskEntityDao(ScheduledTaskEntityDao scheduledTaskEntityDao)
Sets reference toscheduledTaskEntityDao.
-
getScheduledTaskEntityDao
public ScheduledTaskEntityDao getScheduledTaskEntityDao()
Gets reference toscheduledTaskEntityDao.
-
setScheduledTaskHandlerEntityDao
public void setScheduledTaskHandlerEntityDao(ScheduledTaskHandlerEntityDao scheduledTaskHandlerEntityDao)
Sets reference toscheduledTaskHandlerEntityDao.
-
getScheduledTaskHandlerEntityDao
public ScheduledTaskHandlerEntityDao getScheduledTaskHandlerEntityDao()
Gets reference toscheduledTaskHandlerEntityDao.
-
setScheduledTaskLogEntityDao
public void setScheduledTaskLogEntityDao(ScheduledTaskLogEntityDao scheduledTaskLogEntityDao)
Sets reference toscheduledTaskLogEntityDao.
-
getScheduledTaskLogEntityDao
public ScheduledTaskLogEntityDao getScheduledTaskLogEntityDao()
Gets reference toscheduledTaskLogEntityDao.
-
setServerEntityDao
public void setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao.
-
getServerEntityDao
public ServerEntityDao getServerEntityDao()
Gets reference toserverEntityDao.
-
setTaskEntityDao
public void setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao.
-
getTaskEntityDao
public TaskEntityDao getTaskEntityDao()
Gets reference totasqueEntityDao.
-
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:
createin interfacecom.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:
findScheduledTaskByHandlerAndParamsin interfacecom.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:
loadin interfacecom.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:
updatein interfacecom.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:
createin interfacecom.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:
updatein interfacecom.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:
listHandlersin interfacecom.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:
listServerTasksin interfacecom.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:
listTasksin interfacecom.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:
registerEndTaskin interfacecom.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:
registerStartTaskin interfacecom.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:
removein interfacecom.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:
removein interfacecom.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:
startNowin interfacecom.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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-