public class UserSubstitutedEvent
extends org.springframework.context.ApplicationEvent
AuthenticationManager
after user is substituted and the new session is created. There
is an active database transaction when the event is published.
SecurityContext
is set to AppContext
. It has system user
session that has full permissions in the system.UserSession.isSystem()
,
Serialized FormConstructor and Description |
---|
UserSubstitutedEvent(UserSession sourceSession,
UserSession substitutedSession) |
Modifier and Type | Method and Description |
---|---|
UserSession |
getSource() |
UserSession |
getSourceSession() |
UserSession |
getSubstitutedSession() |
public UserSubstitutedEvent(UserSession sourceSession, UserSession substitutedSession)
public UserSession getSource()
getSource
in class java.util.EventObject
public UserSession getSourceSession()
public UserSession getSubstitutedSession()