public class DefaultKieModuleCleanupStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<DroolsKIEModuleMediaModel,CronJobModel>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LAST_VERSIONS_OF_KIE_MODULES_TO_KEEP |
| Constructor and Description |
|---|
DefaultKieModuleCleanupStrategy() |
| Modifier and Type | Method and Description |
|---|---|
FlexibleSearchQuery |
createFetchQuery(CronJobModel cronJob)
Implement and return a
FlexibleSearchQuery object here which searches for the items to be removed. |
protected ConfigurationService |
getConfigurationService() |
protected MediaService |
getMediaService() |
protected ModelService |
getModelService() |
protected int |
getNumberOfLastVersionsOfKieModuleToKeep(MaintenanceCleanupJobModel maintenanceCleanupJob) |
void |
process(java.util.List<DroolsKIEModuleMediaModel> 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 |
setConfigurationService(ConfigurationService configurationService) |
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
public static final java.lang.String LAST_VERSIONS_OF_KIE_MODULES_TO_KEEP
public FlexibleSearchQuery createFetchQuery(CronJobModel cronJob)
MaintenanceCleanupStrategyFlexibleSearchQuery object here which searches for the items to be removed.createFetchQuery in interface MaintenanceCleanupStrategy<DroolsKIEModuleMediaModel,CronJobModel>protected int getNumberOfLastVersionsOfKieModuleToKeep(MaintenanceCleanupJobModel maintenanceCleanupJob)
public void process(java.util.List<DroolsKIEModuleMediaModel> 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<DroolsKIEModuleMediaModel,CronJobModel>protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected MediaService getMediaService()
public void setMediaService(MediaService mediaService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.