Class LogoutEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.event.Event
-
- com.atlassian.confluence.event.events.ConfluenceEvent
-
- com.atlassian.confluence.event.events.security.SecurityEvent
-
- com.atlassian.confluence.event.events.security.LogoutEvent
-
- All Implemented Interfaces:
Authentication,Serializable
public class LogoutEvent extends SecurityEvent
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description LogoutEvent(Object src, String username, String sessionId)LogoutEvent(Object src, String username, String sessionId, String remoteHost, String remoteIP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.booleangetExplicitLogout()inthashCode()Subclasses must override this to hash their own fields.-
Methods inherited from class com.atlassian.confluence.event.events.security.SecurityEvent
getRemoteHost, getRemoteIP, getSessionId, getUsername, setRemoteHost, setRemoteIP
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getExplicitLogout
public boolean getExplicitLogout()
- Returns:
- true if the event was fired as a result of the user logging themselves out. Returns false for all other system related logouts such as session timeouts, elevated security checks, security-rpc calls.
-
equals
public boolean equals(Object o)
Description copied from class:ConfluenceEventEquals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type. It is incorrect to try to make an instance of a subclass equal to an instance of any of its superclasses.Subclasses must override this to compare their own fields.
- Overrides:
equalsin classConfluenceEvent- Parameters:
o- the object to compare.- Returns:
- true, if the given object has the same runtime class as this object's runtime class, and the event sources are equal.
- See Also:
Event.equals(Object)
-
hashCode
public int hashCode()
Description copied from class:ConfluenceEventSubclasses must override this to hash their own fields.- Overrides:
hashCodein classConfluenceEvent- Returns:
- the hashcode
- See Also:
Event.hashCode()
-
-