Class MediaMigrationStrategy
java.lang.Object
de.hybris.platform.jobs.maintenance.impl.MediaMigrationStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>
public class MediaMigrationStrategy
extends Object
implements MaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>
Strategy which migrates structure of files for
MediaFolder configured in
MediaFolderStructureMigrationCronJobModel after changing folder configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(List<MediaModel> elements) Based on the givenFlexibleSearchQueryofMaintenanceCleanupStrategy.createFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called.voidrelocateMediaData(MediaModel media) voidsetMediaService(MediaService mediaService)
-
Constructor Details
-
MediaMigrationStrategy
public MediaMigrationStrategy()
-
-
Method Details
-
createFetchQuery
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>
-
process
Description copied from interface:MaintenanceCleanupStrategyBased on the givenFlexibleSearchQueryofMaintenanceCleanupStrategy.createFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called. Implement here the remove logic for each item element.- Specified by:
processin interfaceMaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>
-
relocateMediaData
-
setMediaService
-