public class MediaMigrationStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>
MediaFolder configured in
MediaFolderStructureMigrationCronJobModel after changing folder configuration.| Constructor and Description |
|---|
MediaMigrationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
FlexibleSearchQuery |
createFetchQuery(MediaFolderStructureMigrationCronJobModel cjm)
Implement and return a
FlexibleSearchQuery object here which searches for the items to be removed. |
void |
process(java.util.List<MediaModel> elements)
Based on the given
FlexibleSearchQuery of MaintenanceCleanupStrategy.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. |
void |
relocateMediaData(MediaModel media) |
void |
setMediaService(MediaService mediaService) |
public FlexibleSearchQuery createFetchQuery(MediaFolderStructureMigrationCronJobModel cjm)
MaintenanceCleanupStrategyFlexibleSearchQuery object here which searches for the items to be removed.createFetchQuery in interface MaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>public void process(java.util.List<MediaModel> elements)
MaintenanceCleanupStrategyFlexibleSearchQuery of MaintenanceCleanupStrategy.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.process in interface MaintenanceCleanupStrategy<MediaModel,MediaFolderStructureMigrationCronJobModel>public void relocateMediaData(MediaModel media)
public void setMediaService(MediaService mediaService)
Copyright © 2018 SAP SE. All Rights Reserved.