Class PurgeLoginTableJobListener
java.lang.Object
com.broadleafcommerce.auth.user.service.PurgeLoginTableJobListener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPurgeLoginTableJobListener
(UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentService) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getAuthServerId
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef msg) protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
protected Duration
getPurgeOlderThanDuration
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) protected com.broadleafcommerce.common.messaging.domain.ScheduledJobDetailRef
getRefByName
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, String refName) protected AuthorizationServerService<AuthorizationServer>
protected UserLoginAttemptService<UserLoginAttempt>
void
listen
(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) protected void
process
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef msg)
-
Field Details
-
JOB_TYPE
- See Also:
-
PURGE_OLDER_THAN_DETAIL_NAME
- See Also:
-
AUTH_SERVER_NAME
- See Also:
-
DEFAULT_PURGE_OLDER_THAN_DURATION
-
-
Constructor Details
-
PurgeLoginTableJobListener
public PurgeLoginTableJobListener(UserLoginAttemptService<UserLoginAttempt> userLoginAttemptService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentService)
-
-
Method Details
-
listen
@StreamListener("triggeredJobEventInputPurgeLoginTable") public void listen(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) -
process
protected void process(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef msg) -
getAuthServerId
@Nullable protected String getAuthServerId(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef msg) -
getPurgeOlderThanDuration
@NonNull protected Duration getPurgeOlderThanDuration(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) -
getRefByName
@Nullable protected com.broadleafcommerce.common.messaging.domain.ScheduledJobDetailRef getRefByName(@NonNull com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, @NonNull String refName) -
getUserLoginAttemptService
-
getServerService
-
getIdempotentService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentService()
-