com.atlassian.confluence.plugins.rest.resources
Class UserSession
java.lang.Object
com.atlassian.confluence.plugins.rest.resources.AbstractResource
com.atlassian.confluence.plugins.rest.resources.UserSession
public class UserSession
- extends AbstractResource
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserSession
public UserSession(UserAccessor userAccessor,
RestUserSessionManager restUserSessionManager,
SpacePermissionManager spacePermissionManager)
getSession
public javax.ws.rs.core.Response getSession()
- 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)
- 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.
Copyright © 2003-2012 Atlassian. All Rights Reserved.