Package org.openwms.common.tasks.impl
Class TaskServiceImpl
java.lang.Object
org.openwms.common.tasks.impl.TaskServiceImpl
- All Implemented Interfaces:
TaskService
A TaskServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationEventPublisher
private final TaskMapper
private final TaskRepository
private final TimeProvider
private final org.ameba.i18n.Translator
-
Constructor Summary
ConstructorDescriptionTaskServiceImpl
(org.springframework.context.ApplicationEventPublisher eventPublisher, org.ameba.i18n.Translator translator, TaskMapper mapper, TaskRepository taskRepository) -
Method Summary
Modifier and TypeMethodDescriptionfindAll()
findByPKeyOrThrow
(@NotEmpty String pKey) private TaskEO
findInternal
(String pKey)
-
Field Details
-
timeProvider
-
eventPublisher
private final org.springframework.context.ApplicationEventPublisher eventPublisher -
translator
private final org.ameba.i18n.Translator translator -
mapper
-
taskRepository
-
-
Constructor Details
-
TaskServiceImpl
TaskServiceImpl(org.springframework.context.ApplicationEventPublisher eventPublisher, org.ameba.i18n.Translator translator, TaskMapper mapper, TaskRepository taskRepository)
-
-
Method Details
-
findAll
- Specified by:
findAll
in interfaceTaskService
-
findByPKeyOrThrow
- Specified by:
findByPKeyOrThrow
in interfaceTaskService
-
findInternal
-
create
@Measured @Validated(Create.class) public TaskVO create(@NotNull @Valid @NotNull @Valid TaskVO task) - Specified by:
create
in interfaceTaskService
-
update
- Specified by:
update
in interfaceTaskService
-
start
- Specified by:
start
in interfaceTaskService
-
pause
- Specified by:
pause
in interfaceTaskService
-
resume
- Specified by:
resume
in interfaceTaskService
-
finish
- Specified by:
finish
in interfaceTaskService
-