Class CxResultsCleanupStrategy
- java.lang.Object
-
- de.hybris.platform.personalizationservices.strategies.impl.CxResultsCleanupStrategy
-
- All Implemented Interfaces:
MaintenanceCleanupStrategy<CxResultsModel,CxResultsCleaningCronJobModel>
public class CxResultsCleanupStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<CxResultsModel,CxResultsCleaningCronJobModel>
-
-
Constructor Summary
Constructors Constructor Description CxResultsCleanupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexibleSearchQuerycreateFetchQuery(CxResultsCleaningCronJobModel cjm)Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.protected ModelServicegetModelService()protected TimeServicegetTimeService()voidprocess(java.util.List<CxResultsModel> 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)voidsetTimeService(TimeService timeService)protected voidvalidateResultMaxAge(int resultMaxAge)
-
-
-
Method Detail
-
createFetchQuery
public FlexibleSearchQuery createFetchQuery(CxResultsCleaningCronJobModel cjm)
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<CxResultsModel,CxResultsCleaningCronJobModel>
-
process
public void process(java.util.List<CxResultsModel> elements)
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<CxResultsModel,CxResultsCleaningCronJobModel>
-
validateResultMaxAge
protected void validateResultMaxAge(int resultMaxAge)
-
setTimeService
public void setTimeService(TimeService timeService)
-
setModelService
public void setModelService(ModelService modelService)
-
getTimeService
protected TimeService getTimeService()
-
getModelService
protected ModelService getModelService()
-
-