@Path(value="events")
public class EventResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.springframework.data.domain.Sort |
DEFAULT_SORTING |
private com.google.common.eventbus.EventBus |
eventBus |
(package private) EventService |
service |
(package private) javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
EventResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteEventsUpdatedBefore(java.time.LocalDateTime createdBefore) |
javax.ws.rs.core.Response |
find(GUID shopGuid,
PagerStartsFromZeroBeanParam pager) |
javax.ws.rs.core.Response |
get(GUID eventGuid) |
void |
post(javax.ws.rs.container.AsyncResponse asyncResponse,
EventEntity event) |
private static final org.springframework.data.domain.Sort DEFAULT_SORTING
@Context javax.ws.rs.core.UriInfo uriInfo
@Inject EventService service
@Inject private com.google.common.eventbus.EventBus eventBus
@POST @Consumes(value="application/json") @Produces(value="application/json") public void post(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, EventEntity event)
@GET @Path(value="{eventId}") @Produces(value="application/json") public javax.ws.rs.core.Response get(@PathParam(value="eventId") GUID eventGuid)
@GET @Produces(value="application/json") public javax.ws.rs.core.Response find(@NotNull(message="shopGuid query param cannot be null") @QueryParam(value="shopGuid") GUID shopGuid, @BeanParam PagerStartsFromZeroBeanParam pager)
@DELETE public javax.ws.rs.core.Response deleteEventsUpdatedBefore(@QueryParam(value="createdBefore") java.time.LocalDateTime createdBefore)