Package org.keycloak.admin.ui.rest
Class SessionsResource
- java.lang.Object
-
- org.keycloak.admin.ui.rest.SessionsResource
-
public class SessionsResource extends Object
-
-
Constructor Summary
Constructors Constructor Description SessionsResource(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<SessionRepresentation>realmSessions(SessionId.SessionType type, String search, int first, int max)static SessionRepresentationtoRepresentation(UserSessionModel session, SessionId.SessionType type)
-
-
-
Constructor Detail
-
SessionsResource
public SessionsResource(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth)
-
-
Method Detail
-
realmSessions
@GET @Consumes("application/json") @Produces("application/json") public Stream<SessionRepresentation> realmSessions(@QueryParam("type") @DefaultValue("ALL") SessionId.SessionType type, @QueryParam("search") @DefaultValue("") String search, @QueryParam("first") @DefaultValue("0") int first, @QueryParam("max") @DefaultValue("10") int max)
-
toRepresentation
public static SessionRepresentation toRepresentation(UserSessionModel session, SessionId.SessionType type)
-
-