Search in sources :

Example 1 with TaskMaintenanceOutDto

use of org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceTx method buildRetrieveOutDto.

private TaskMaintenanceOutDto buildRetrieveOutDto(ScheduledTask task) throws ApplicationExceptions, FrameworkException {
    TaskMaintenanceOutDto output = new TaskMaintenanceOutDto();
    output.setTaskMaintenanceDto(new TaskMaintenanceDto(task));
    output.setBusinessEventLog(buildBusinessEventLogDto(task));
    return output;
}
Also used : TaskMaintenanceDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceDto) TaskMaintenanceOutDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)

Example 2 with TaskMaintenanceOutDto

use of org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceComponent method doCreate.

/**
 * This will invoke the create method on the transaction to create a new domain object.
 * @throws ApplicationExceptions Indicates some functional error.
 * @throws FrameworkException Indicates some system error.
 */
protected void doCreate() throws ApplicationExceptions, FrameworkException {
    TaskMaintenanceOutDto dto = createTx().create(m_taskMaintenanceDto);
    loadRetrieveOutDto(dto);
}
Also used : TaskMaintenanceOutDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)

Example 3 with TaskMaintenanceOutDto

use of org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceComponent method clearEventLogs.

/**
 * Removes all event logs that resulted from the execution of the scheduler.
 * @throws FrameworkException in case any internal error occurs.
 * @throws ApplicationExceptions Indicates application error(s).
 */
public void clearEventLogs() throws FrameworkException, ApplicationExceptions {
    TaskMaintenanceOutDto dto = createTx().clearEventLogs(m_taskMaintenanceDto);
    loadRetrieveOutDto(dto);
    invokeUpdateListeners();
}
Also used : TaskMaintenanceOutDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)

Example 4 with TaskMaintenanceOutDto

use of org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceComponent method doUpdate.

/**
 * This will invoke the update method on the transaction to update an existing domain object.
 * @param performDirtyReadCheck this is not implemented.
 * @throws ApplicationExceptions Indicates some functional error.
 * @throws FrameworkException Indicates some system error.
 */
protected void doUpdate(boolean performDirtyReadCheck) throws ApplicationExceptions, FrameworkException {
    TaskMaintenanceOutDto dto = createTx().update(m_taskMaintenanceDto);
    loadRetrieveOutDto(dto);
}
Also used : TaskMaintenanceOutDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)

Example 5 with TaskMaintenanceOutDto

use of org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceComponent method doRetrieve.

/**
 * This will invoke the retrieve method on the transaction to retrieve an existing domain object.
 * @throws ApplicationExceptions Indicates some functional error.
 * @throws FrameworkException Indicates some system error.
 */
protected void doRetrieve() throws ApplicationExceptions, FrameworkException {
    TaskMaintenanceOutDto dto = createTx().retrieve(m_taskMaintenanceDto);
    loadRetrieveOutDto(dto);
}
Also used : TaskMaintenanceOutDto(org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)

Aggregations

TaskMaintenanceOutDto (org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceOutDto)6 ApplicationExceptions (org.jaffa.exceptions.ApplicationExceptions)1 TaskMaintenanceDto (org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceDto)1 JaffaSchedulerApplicationException (org.jaffa.modules.scheduler.services.JaffaSchedulerApplicationException)1 ScheduledTask (org.jaffa.modules.scheduler.services.ScheduledTask)1