public class MoveMediaJobPerformable extends AbstractJobPerformable<MoveMediaCronJobModel>
MoveMediaCronJobModel.getMedias() to folder configured at
MoveMediaCronJobModel.getTargetFolder(). Is abortable between each media move.flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
MoveMediaJobPerformable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbortable()
Checks whether the execution is implemented abortable.
|
PerformResult |
perform(MoveMediaCronJobModel myCronJob)
The execution body for a
ServicelayerJob. |
void |
setMediaService(MediaService mediaService) |
clearAbortRequestedIfNeeded, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic PerformResult perform(MoveMediaCronJobModel myCronJob)
JobPerformableServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<MoveMediaCronJobModel>perform in class AbstractJobPerformable<MoveMediaCronJobModel>myCronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.public boolean isAbortable()
JobPerformableisAbortable in interface JobPerformable<MoveMediaCronJobModel>isAbortable in class AbstractJobPerformable<MoveMediaCronJobModel>public void setMediaService(MediaService mediaService)
Copyright © 2018 SAP SE. All Rights Reserved.