Interface UserSessionModel

    • Field Detail

      • CORRESPONDING_SESSION_ID

        static final String CORRESPONDING_SESSION_ID
        Represents the corresponding online/offline user session.
        See Also:
        Constant Field Values
    • Method Detail

      • getBrokerSessionId

        String getBrokerSessionId()
        If created via a broker external login, this is an identifier that can be used to match external broker backchannel logout requests to a UserSession
        Returns:
      • getBrokerUserId

        String getBrokerUserId()
      • getLoginUsername

        String getLoginUsername()
      • getIpAddress

        String getIpAddress()
      • getAuthMethod

        String getAuthMethod()
      • isRememberMe

        boolean isRememberMe()
      • getStarted

        int getStarted()
      • getLastSessionRefresh

        int getLastSessionRefresh()
      • setLastSessionRefresh

        void setLastSessionRefresh​(int seconds)
      • isOffline

        boolean isOffline()
      • getAuthenticatedClientSessionByClient

        default AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient​(String clientUUID)
        Returns a client session for the given client UUID.
        Returns:
      • removeAuthenticatedClientSessions

        void removeAuthenticatedClientSessions​(Collection<String> removedClientUUIDS)
        Removes authenticated client sessions for all clients whose UUID is present in removedClientUUIDS parameter.
        Parameters:
        removedClientUUIDS -
      • removeNote

        void removeNote​(String name)