@Path(value="sessions") @Consumes(value="application/json") @Produces(value="application/json") public class SessionsAdminResource extends Object
Constructor and Description |
---|
SessionsAdminResource(SessionsAdminController controller) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
expireSession(String randomHash)
Expires the session with given ID
|
RestPage<ApplicationSessionsSearchResultEntity> |
getApplicationSessions(String searchKeyword,
RestPageRequest pageRequest)
Lists the sessions of applications for specified parameters
|
RestPage<UserSessionsSearchResultEntity> |
getUserSessions(String searchKeyword,
Long directoryId,
RestPageRequest pageRequest)
Lists the sessions of users for specified parameters
|
@Inject public SessionsAdminResource(SessionsAdminController controller)
@GET @Path(value="application") @ExperimentalApi public RestPage<ApplicationSessionsSearchResultEntity> getApplicationSessions(@QueryParam(value="search") String searchKeyword, @Context RestPageRequest pageRequest)
searchKeyword
- the search keyword for sessions filteringpageRequest
- details about paging@GET @Path(value="user") @ExperimentalApi public RestPage<UserSessionsSearchResultEntity> getUserSessions(@QueryParam(value="search") String searchKeyword, @QueryParam(value="directoryId") Long directoryId, @Context RestPageRequest pageRequest)
searchKeyword
- the search keyword for sessions filteringdirectoryId
- the id of directory for sessions filteringpageRequest
- details about paging@DELETE @Path(value="{randomHash}") @ExperimentalApi public javax.ws.rs.core.Response expireSession(@PathParam(value="randomHash") String randomHash)
randomHash
- the randomHash of a session to expireCopyright © 2021 Atlassian. All rights reserved.