Class SessionScopeWrapper

java.lang.Object
com.aquima.interactions.portal.model.session.scope.SessionScopeDelegate
com.aquima.interactions.portal.model.session.SessionScopeWrapper
All Implemented Interfaces:
IDisposableScope, IPortalMessageScope, IPortalScope, ISessionLifecycle, ISessionScope, Serializable

public final class SessionScopeWrapper extends SessionScopeDelegate
Session scope implementation to make sure the profile roles are updated when set in the session scope. (AQR-2097)
Since:
8.4
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • SessionScopeWrapper

      public SessionScopeWrapper(ISessionScope delegate, IProfile profile)
      Internal constructor, only public for test classes. Do not use otherwise.
      Parameters:
      delegate - The session scope to delegate method calls to.
      profile - The profile that is used to update system.user.roles.
  • Method Details

    • setUser

      public void setUser(IUserData user)
      Description copied from interface: ISessionScope
      This method will set the user for the current session. The existing user information will be discarded.
      Specified by:
      setUser in interface ISessionScope
      Overrides:
      setUser in class SessionScopeDelegate
      Parameters:
      user - The user, may not be null.