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.ScheduledTask
create(com.soffid.iam.api.ScheduledTask task)
com.soffid.iam.api.ScheduledTaskHandler
create(com.soffid.iam.api.ScheduledTaskHandler handler)
com.soffid.iam.api.ScheduledTask
findScheduledTaskByHandlerAndParams(String handler, String params)
AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.ConfigEntityDao
getConfigEntityDao()
Gets reference toconfiguracioEntityDao
.com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfiguracioService
.com.soffid.iam.doc.service.DocumentService
getDocumentService()
Gets reference todocumentService
.MailService
getMailService()
Gets reference tomailService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ScheduledTaskEntityDao
getScheduledTaskEntityDao()
Gets reference toscheduledTaskEntityDao
.ScheduledTaskHandlerEntityDao
getScheduledTaskHandlerEntityDao()
Gets reference toscheduledTaskHandlerEntityDao
.ScheduledTaskLogEntityDao
getScheduledTaskLogEntityDao()
Gets reference toscheduledTaskLogEntityDao
.ServerEntityDao
getServerEntityDao()
Gets reference toserverEntityDao
.TaskEntityDao
getTaskEntityDao()
Gets reference totasqueEntityDao
.protected abstract com.soffid.iam.api.ScheduledTask
handleCreate(com.soffid.iam.api.ScheduledTask task)
protected abstract com.soffid.iam.api.ScheduledTaskHandler
handleCreate(com.soffid.iam.api.ScheduledTaskHandler handler)
protected abstract com.soffid.iam.api.ScheduledTask
handleFindScheduledTaskByHandlerAndParams(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.ScheduledTask
handleLoad(Long taskId)
protected abstract void
handleRegisterEndTask(com.soffid.iam.api.ScheduledTask task)
protected abstract void
handleRegisterStartTask(com.soffid.iam.api.ScheduledTask task)
protected abstract void
handleRemove(com.soffid.iam.api.ScheduledTask task)
protected abstract void
handleRemove(com.soffid.iam.api.ScheduledTaskHandler handler)
protected abstract void
handleStartNow(com.soffid.iam.api.ScheduledTask task)
protected abstract com.soffid.iam.api.ScheduledTask
handleUpdate(com.soffid.iam.api.ScheduledTask task)
protected abstract com.soffid.iam.api.ScheduledTaskHandler
handleUpdate(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.ScheduledTask
load(Long taskId)
void
registerEndTask(com.soffid.iam.api.ScheduledTask task)
void
registerStartTask(com.soffid.iam.api.ScheduledTask task)
void
remove(com.soffid.iam.api.ScheduledTask task)
void
remove(com.soffid.iam.api.ScheduledTaskHandler handler)
void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao
.void
setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.void
setDocumentService(com.soffid.iam.doc.service.DocumentService documentService)
Sets reference todocumentService
.void
setMailService(MailService mailService)
Sets reference tomailService
.void
setScheduledTaskEntityDao(ScheduledTaskEntityDao scheduledTaskEntityDao)
Sets reference toscheduledTaskEntityDao
.void
setScheduledTaskHandlerEntityDao(ScheduledTaskHandlerEntityDao scheduledTaskHandlerEntityDao)
Sets reference toscheduledTaskHandlerEntityDao
.void
setScheduledTaskLogEntityDao(ScheduledTaskLogEntityDao scheduledTaskLogEntityDao)
Sets reference toscheduledTaskLogEntityDao
.void
setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao
.void
setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.void
startNow(com.soffid.iam.api.ScheduledTask task)
com.soffid.iam.api.ScheduledTask
update(com.soffid.iam.api.ScheduledTask task)
com.soffid.iam.api.ScheduledTaskHandler
update(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:
create
in 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:
findScheduledTaskByHandlerAndParams
in 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:
load
in 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:
update
in 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:
create
in 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:
update
in 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:
listHandlers
in 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:
listServerTasks
in 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:
listTasks
in 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:
registerEndTask
in 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:
registerStartTask
in 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:
remove
in 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:
remove
in 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:
startNow
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-