Class PrototypeUserSession


  • @Deprecated
    public class PrototypeUserSession
    extends AbstractResource
    Deprecated.
    since 5.10. Use the official REST API that lives in confluence-rest-resources.
    • Method Detail

      • getSession

        public javax.ws.rs.core.Response getSession()
        Deprecated.
        Returns the UserSessionEntity for the user making the request. Example URL: http://host/confluence/rest/prototype/1/session
        Returns:
        The user session for the user requesting it. This method can only be called by authenticated users.
      • getUserHistory

        public javax.ws.rs.core.Response getUserHistory​(String startIndexString,
                                                        String maxResultsString)
        Deprecated.
        Returns the UserHistoryList for the user making the request. Example URL: http://host/confluence/rest/prototype/1/session/history
        Parameters:
        startIndexString - The first (inclusive) index to return. Can be any integer zero or greater.
        maxResultsString - The number of results to return. Can be any positive integer.
        Returns:
        The page viewing history for the current user.
      • check

        public javax.ws.rs.core.Response check​(String username)
        Deprecated.
        Checks that the remote user (from the browser) matches the currently-logged-in user.
        Parameters:
        username - the user that the remote client thinks they are logged in as. May be blank for an anonymous user.
        Returns:
        a 200 success response if the user checks out, a 403 status if not.