Class CleanUpOAuthAuthorizationCodeStrategy
java.lang.Object
de.hybris.platform.oauth2.jobs.maintenance.impl.CleanUpOAuthAuthorizationCodeStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<OAuthAuthorizationCodeModel,CronJobModel>
public class CleanUpOAuthAuthorizationCodeStrategy
extends Object
implements MaintenanceCleanupStrategy<OAuthAuthorizationCodeModel,CronJobModel>
CleanUp Authorization code strategy. This strategy looks for records in oauthauthorizationcode relation and removes the record
if it is older than the configured time property CLEANUP_EXPIRY_TIME.
-
Constructor Summary
ConstructorsConstructorDescriptionCleanUpOAuthAuthorizationCodeStrategy(ModelService modelService, ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(List<OAuthAuthorizationCodeModel> 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.
-
Constructor Details
-
CleanUpOAuthAuthorizationCodeStrategy
public CleanUpOAuthAuthorizationCodeStrategy(ModelService modelService, ConfigurationService configurationService)
-
-
Method Details
-
createFetchQuery
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<OAuthAuthorizationCodeModel,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<OAuthAuthorizationCodeModel,CronJobModel>
-