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