Class CleanUpOAuthAccessTokenStrategy
java.lang.Object
de.hybris.platform.oauth2.jobs.maintenance.impl.CleanUpOAuthAccessTokenStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<OAuthAccessTokenModel,CronJobModel>
public class CleanUpOAuthAccessTokenStrategy
extends Object
implements MaintenanceCleanupStrategy<OAuthAccessTokenModel,CronJobModel>
CleanUp OAuth Access Token strategy. This strategy looks for records in OAuthAccessToken relation and removes the record
if it is older than the configured time property OAUTH_CLEANUP_EXPIRY_TIME.
-
Constructor Summary
ConstructorsConstructorDescriptionCleanUpOAuthAccessTokenStrategy(ModelService modelService, ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(List<OAuthAccessTokenModel> 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
-
CleanUpOAuthAccessTokenStrategy
public CleanUpOAuthAccessTokenStrategy(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<OAuthAccessTokenModel,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<OAuthAccessTokenModel,CronJobModel>
-