Class PrototypeUserSession
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.resources.AbstractResource
-
- com.atlassian.confluence.plugins.rest.resources.PrototypeUserSession
-
@Deprecated public class PrototypeUserSession extends AbstractResource
Deprecated.since 5.10. Use the official REST API that lives in confluence-rest-resources.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
authContext, uriInfo, userAccessor
-
-
Constructor Summary
Constructors Constructor Description PrototypeUserSession(UserAccessor userAccessor, RestUserSessionManager restUserSessionManager, SpacePermissionManager spacePermissionManager)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Response
check(String username)
Deprecated.Checks that the remote user (from the browser) matches the currently-logged-in user.javax.ws.rs.core.Response
getSession()
Deprecated.Returns the UserSessionEntity for the user making the request.javax.ws.rs.core.Response
getUserHistory(String startIndexString, String maxResultsString)
Deprecated.Returns the UserHistoryList for the user making the request.-
Methods inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
-
-
-
-
Constructor Detail
-
PrototypeUserSession
public PrototypeUserSession(UserAccessor userAccessor, RestUserSessionManager restUserSessionManager, SpacePermissionManager spacePermissionManager)
Deprecated.
-
-
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.
-
-