Class SessionConfig

    • Method Detail

      • getUserSessionId

        public String getUserSessionId()
        Returns:
        Returns the userSessionId.
      • setUserSessionId

        @Deprecated
        public void setUserSessionId​(String userSessionId)
        Deprecated.
        Since 4.0.8, you should obtain the session config instance already constructed from getCurrentSessionConfig() or a method in IAuthenticationManager and there is no need to set the userSessionId.
        Parameters:
        userSessionId - The userSessionId to set.
      • getLocale

        public Locale getLocale()
        Returns:
        Returns the locale.
      • setLocale

        public void setLocale​(Locale locale)
        Parameters:
        locale - The locale to set.
      • getUserConfig

        public UserConfig getUserConfig()
                                 throws PortalException
        Returns the UserConfig associated with this session, cached inside this instance. The value returned may not reflect changes occurred since the start of this session.
        Returns:
        the UserConfig associated with this session.
        Throws:
        PortalException
        Since:
        11.0.0
      • getUserId

        public String getUserId()
                         throws PortalException
        Gets the user id associated with this session.
        Returns:
        the user id associated with this session.
        Throws:
        PortalException - if it was not possible to obtain the userId for this SessionConfig.
        Since:
        4.0.8
      • getCurrentSessionConfig

        public static SessionConfig getCurrentSessionConfig()
        Returns the current session config object.
        Returns:
        the current session config object.
        Since:
        4.0.7