DTO
- persistence and transfer type, see
ScheduleTaskFactory.TaskDto
T
- api type, see ScheduleTask
public interface ScheduleTaskFactory<DTO extends ScheduleTaskFactory.TaskDto,T extends ScheduleTask>
data
transfer object
(which is also the persistent format), a createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto)
schedule task}, and an executor
.Modifier and Type | Interface and Description |
---|---|
static interface |
ScheduleTaskFactory.TaskDto |
Modifier and Type | Method and Description |
---|---|
DTO |
createDto()
Create a new Task DTO to use with a task factory to create a new task.
|
<E> E |
createEditorFactory(Class<E> type,
T task)
Create a gui factory of a specified type.
|
T |
createTask(ScheduleEntry scheduleEntry,
DTO dto)
Create a new task.
|
de.espirit.firstspirit.server.scheduler.TaskExecutor |
createTaskExecutor() |
Class<T> |
getApiType() |
String |
getDescription() |
String |
getDisplayName() |
Class<DTO> |
getDtoType() |
boolean |
mayExecuteWithoutProject()
Implementations return
true if createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto)
generated tasks} may be executed without
project binding. |
boolean |
mayExecuteWithProject()
Implementations return
true if createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto) generated tasks}
may be executed with project
binding. |
@NotNull String getDisplayName()
boolean mayExecuteWithoutProject()
true
if createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto)
generated tasks} may be executed without
project binding.mayExecuteWithProject()
boolean mayExecuteWithProject()
true
if createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto)
generated tasks}
may be executed with project
binding.mayExecuteWithoutProject()
@NotNull DTO createDto()
Note: this method needs to be called before
creating a new task
.
createTask(de.espirit.firstspirit.access.schedule.ScheduleEntry, de.espirit.firstspirit.server.scheduler.ScheduleTaskFactory.TaskDto)
@NotNull T createTask(@NotNull ScheduleEntry scheduleEntry, @NotNull DTO dto)
Note: createDto
needs to be called first to obain a valid DTO.
scheduleEntry
- the SchedulEntry
dto
- a specialized dto object (see createDto()
)createDto()
@NotNull de.espirit.firstspirit.server.scheduler.TaskExecutor createTaskExecutor()
TaskExecutor
@Nullable <E> E createEditorFactory(@NotNull Class<E> type, @NotNull T task)
null
.E
- dialog factory typetype
- desired factory type, current known types are ScheduleTaskDialogFactory
for the java client
and TODO (name class for web client)task
- a specialized task objectCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500