use of org.keycloak.events.EventStoreProvider in project keycloak by keycloak.
the class TestingResourceProvider method clearExpiredEvents.
@GET
@Path("/clear-expired-events")
@Produces(MediaType.APPLICATION_JSON)
public Response clearExpiredEvents() {
EventStoreProvider eventStore = session.getProvider(EventStoreProvider.class);
eventStore.clearExpiredEvents();
return Response.noContent().build();
}
use of org.keycloak.events.EventStoreProvider in project keycloak by keycloak.
the class TestingResourceProvider method clearEventStore.
@GET
@Path("/clear-event-store-for-realm")
@Produces(MediaType.APPLICATION_JSON)
public Response clearEventStore(@QueryParam("realmId") String realmId) {
EventStoreProvider eventStore = session.getProvider(EventStoreProvider.class);
eventStore.clear(realmId);
return Response.noContent().build();
}
Aggregations