@RequestScoped @Path(value="/") @Consumes(value="application/json") @Produces(value="application/json") public class ProfileService extends Object
| Constructor and Description |
|---|
ProfileService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getUserEvents(int userId,
int size) |
javax.ws.rs.core.Response |
logEvent(@NotNull UserEvent event) |
javax.ws.rs.core.Response |
searchEvents(String eventName,
int size) |
javax.ws.rs.core.Response |
searchLocations(String location,
int size) |
javax.ws.rs.core.Response |
searchPartners(String partner,
int size) |
@POST @RolesAllowed(value={"admin","user"}) @Counted(name="User events created", absolute=true, monotonic=true) public javax.ws.rs.core.Response logEvent(@NotNull @NotNull UserEvent event)
@GET
@Path(value="user/{userId}")
@RolesAllowed(value={"admin","user"})
@Traced(operationName="GetUserEvents",
value=true)
@CircuitBreaker(failOn=org.elasticsearch.client.transport.NoNodeAvailableException.class,
requestVolumeThreshold=1,
failureRatio=1.0,
delay=10L,
delayUnit=SECONDS)
@Counted(name="User events requests",
absolute=true,
monotonic=true)
public javax.ws.rs.core.Response getUserEvents(@PathParam(value="userId")
int userId,
@DefaultValue(value="-1") @QueryParam(value="size")
int size)
@GET
@Path(value="event/{eventName}")
public javax.ws.rs.core.Response searchEvents(@PathParam(value="eventName")
String eventName,
@DefaultValue(value="-1") @QueryParam(value="size")
int size)
@GET
@Path(value="location/{location}")
public javax.ws.rs.core.Response searchLocations(@PathParam(value="location")
String location,
@DefaultValue(value="-1") @QueryParam(value="size")
int size)
@GET
@Path(value="partner/{partner}")
public javax.ws.rs.core.Response searchPartners(@PathParam(value="partner")
String partner,
@DefaultValue(value="-1") @QueryParam(value="size")
int size)
Copyright © 2019. All rights reserved.