Class SessionsAdminResource
java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.admin.SessionsAdminResource
@Path("sessions")
@Consumes("application/json")
@Produces("application/json")
public class SessionsAdminResource
extends Object
Represents a resource for managing current application and user sessions.
- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
expireSession
(String randomHash) Expires the session with given IDgetApplicationSessions
(String searchKeyword, RestPageRequest pageRequest) Lists the sessions of applications for specified parametersgetUserSessions
(String searchKeyword, Long directoryId, RestPageRequest pageRequest) Lists the sessions of users for specified parameters
-
Constructor Details
-
SessionsAdminResource
-
-
Method Details
-
getApplicationSessions
@GET @Path("application") @ExperimentalApi public RestPage<ApplicationSessionsSearchResultEntity> getApplicationSessions(@QueryParam("search") String searchKeyword, @BeanParam RestPageRequest pageRequest) Lists the sessions of applications for specified parameters- Parameters:
searchKeyword
- the search keyword for sessions filteringpageRequest
- details about paging- Returns:
- a paged list of application sessions
-
getUserSessions
@GET @Path("user") @ExperimentalApi public RestPage<UserSessionsSearchResultEntity> getUserSessions(@QueryParam("search") String searchKeyword, @QueryParam("directoryId") Long directoryId, @BeanParam RestPageRequest pageRequest) Lists the sessions of users for specified parameters- Parameters:
searchKeyword
- the search keyword for sessions filteringdirectoryId
- the id of directory for sessions filteringpageRequest
- details about paging- Returns:
- a paged list of application sessions
-
expireSession
@DELETE @Path("{randomHash}") @ExperimentalApi public javax.ws.rs.core.Response expireSession(@PathParam("randomHash") String randomHash) Expires the session with given ID- Parameters:
randomHash
- the randomHash of a session to expire- Returns:
- a paged list of application sessions
-