Class DelegatingDetection
- java.lang.Object
-
- de.hybris.platform.servicelayer.web.session.stale.impl.DelegatingDetection
-
- All Implemented Interfaces:
PasswordChangeListener,StaleSessionDetector.Detection,java.lang.AutoCloseable
public class DelegatingDetection extends java.lang.Object implements StaleSessionDetector.Detection, PasswordChangeListener
-
-
Constructor Summary
Constructors Constructor Description DelegatingDetection(java.util.Collection<StaleSessionDetector.Detection> delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Must be invoked at the end of the detection.booleanisStaleSession()Checks if session is stale.voidpasswordChanged(PasswordChangeEvent event)Invoked on password change.
-
-
-
Constructor Detail
-
DelegatingDetection
public DelegatingDetection(java.util.Collection<StaleSessionDetector.Detection> delegates)
-
-
Method Detail
-
isStaleSession
public boolean isStaleSession()
Description copied from interface:StaleSessionDetector.DetectionChecks if session is stale.- Specified by:
isStaleSessionin interfaceStaleSessionDetector.Detection- Returns:
trueif session is stale,falseotherwise.
-
close
public void close()
Description copied from interface:StaleSessionDetector.DetectionMust be invoked at the end of the detection. It allows the implementation to perform some post detection activities.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceStaleSessionDetector.Detection
-
passwordChanged
public void passwordChanged(PasswordChangeEvent event)
Description copied from interface:PasswordChangeListenerInvoked on password change.- Specified by:
passwordChangedin interfacePasswordChangeListener- Parameters:
event-PasswordChangeEventcontaining User details
-
-