Package de.hybris.platform.jobs
Class MoveMediaJobPerformable
- java.lang.Object
-
- de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<MoveMediaCronJobModel>
-
- de.hybris.platform.jobs.MoveMediaJobPerformable
-
- All Implemented Interfaces:
JobPerformable<MoveMediaCronJobModel>
public class MoveMediaJobPerformable extends AbstractJobPerformable<MoveMediaCronJobModel>
Moves medias configured atMoveMediaCronJobModel.getMedias()
to folder configured atMoveMediaCronJobModel.getTargetFolder()
. Is abortable between each media move.- Spring Bean ID:
- moveMediaJob
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService
-
-
Constructor Summary
Constructors Constructor Description MoveMediaJobPerformable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAbortable()
Checks whether the execution is implemented abortable.PerformResult
perform(MoveMediaCronJobModel myCronJob)
The execution body for aServicelayerJob
.void
setMediaService(MediaService mediaService)
-
Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
-
-
-
Method Detail
-
perform
public PerformResult perform(MoveMediaCronJobModel myCronJob)
Description copied from interface:JobPerformable
The execution body for aServicelayerJob
. 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.- Specified by:
perform
in interfaceJobPerformable<MoveMediaCronJobModel>
- Specified by:
perform
in classAbstractJobPerformable<MoveMediaCronJobModel>
- Parameters:
myCronJob
- the related CronJob in whose context the execution will be performed.- Returns:
- a
PerformResult
that indicates whether theexecution
was successfully executed or not and has finished or not.
-
isAbortable
public boolean isAbortable()
Description copied from interface:JobPerformable
Checks whether the execution is implemented abortable.- Specified by:
isAbortable
in interfaceJobPerformable<MoveMediaCronJobModel>
- Overrides:
isAbortable
in classAbstractJobPerformable<MoveMediaCronJobModel>
- Returns:
- true if the execution can be aborted
-
setMediaService
public void setMediaService(MediaService mediaService)
-
-