Class UserAuthenticationEventListener
java.lang.Object
com.atlassian.crowd.analytics.listener.AbstractEventListener
com.atlassian.crowd.analytics.listener.AbstractOncePerPeriodPublisher<SSOLoginEvent>
com.atlassian.crowd.analytics.listener.UserAuthenticationEventListener
@Named
public class UserAuthenticationEventListener
extends AbstractOncePerPeriodPublisher<SSOLoginEvent>
Listener processing
UserAuthenticationSucceededEvent
and UserTokenVerificationSucceededEvent
events
and publishing analytics event SSOLoginEvent
.
The analytics event is published at most once per day per application per node. It's only published, if the threshold
of unique users was reached - THRESHOLD_FOR_REPORTING
.-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.common.collect.ImmutableMap<SSOLoginEvent,
Set<String>> Fields inherited from class com.atlassian.crowd.analytics.listener.AbstractOncePerPeriodPublisher
clock, counters, lastCountersResetTimestamp, reportIntervalMillis, threshold
Fields inherited from class com.atlassian.crowd.analytics.listener.AbstractEventListener
eventPublisher
-
Constructor Summary
ConstructorDescriptionUserAuthenticationEventListener
(com.atlassian.event.api.EventPublisher eventPublisher, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
protected void
Methods inherited from class com.atlassian.crowd.analytics.listener.AbstractOncePerPeriodPublisher
maybePublish, maybePublish, resetCountersIfNeeded
Methods inherited from class com.atlassian.crowd.analytics.listener.AbstractEventListener
register, unregister
-
Field Details
-
usernamesByEvent
-
-
Constructor Details
-
UserAuthenticationEventListener
@Inject public UserAuthenticationEventListener(com.atlassian.event.api.EventPublisher eventPublisher, Clock clock)
-
-
Method Details
-
onUserAuthenticationSucceededEvent
@EventListener public void onUserAuthenticationSucceededEvent(UserAuthenticationSucceededEvent event) -
onUserTokenVerificationSucceededEvent
@EventListener public void onUserTokenVerificationSucceededEvent(UserTokenVerificationSucceededEvent event) -
onUserAuthenticatedWithSamlSsoEvent
@EventListener public void onUserAuthenticatedWithSamlSsoEvent(UserAuthenticatedWithSamlSsoEvent event) -
resetCounters
protected void resetCounters()- Overrides:
resetCounters
in classAbstractOncePerPeriodPublisher<SSOLoginEvent>
-