public class UserSession extends AbstractResource
authContext, uriInfo, userAccessor
Constructor and Description |
---|
UserSession(UserAccessor userAccessor,
RestUserSessionManager restUserSessionManager,
SpacePermissionManager spacePermissionManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
check(String username)
Checks that the remote user (from the browser) matches the currently-logged-in user.
|
javax.ws.rs.core.Response |
getSession()
Returns the UserSessionEntity for the user making the request.
|
javax.ws.rs.core.Response |
getUserHistory(String startIndexString,
String maxResultsString)
Returns the UserHistoryList for the user making the request.
|
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
public UserSession(UserAccessor userAccessor, RestUserSessionManager restUserSessionManager, SpacePermissionManager spacePermissionManager)
public javax.ws.rs.core.Response getSession()
public javax.ws.rs.core.Response getUserHistory(String startIndexString, String maxResultsString)
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.public javax.ws.rs.core.Response check(String username)
username
- the user that the remote client thinks they are logged in as. May be blank for an anonymous user.Copyright © 2003–2016 Atlassian. All rights reserved.