Class CleanupDroolsRulesStrategy
java.lang.Object
de.hybris.platform.ruleengine.cronjob.CleanupDroolsRulesStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<DroolsRuleModel,CronJobModel>
public class CleanupDroolsRulesStrategy
extends Object
implements MaintenanceCleanupStrategy<DroolsRuleModel,CronJobModel>
Implementation of the
MaintenanceCleanupStrategy for cleaning up old DroolsRuleModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFetchQuery(CronJobModel cronJob) Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.protected ModelServiceprotected SessionServicevoidprocess(List<DroolsRuleModel> 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.voidsetModelService(ModelService modelService) voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
CleanupDroolsRulesStrategy
public CleanupDroolsRulesStrategy()
-
-
Method Details
-
createFetchQuery
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<DroolsRuleModel,CronJobModel>
-
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<DroolsRuleModel,CronJobModel>
-
getModelService
-
setModelService
-
getSessionService
-
setSessionService
-