@Component(value="eventRestService") @Path(value="events") public class EventRestService extends OnmsRestService
OnmsRestService.ComparisonOperation
DEFAULT_LIMIT
Constructor and Description |
---|
EventRestService() |
Modifier and Type | Method and Description |
---|---|
String |
getCount()
returns a plaintext string being the number of events
|
OnmsEvent |
getEvent(Integer eventId)
getEvent
|
OnmsEventCollection |
getEvents(javax.ws.rs.core.UriInfo uriInfo)
Returns all the events which match the filter/query in the query
parameters
|
OnmsEventCollection |
getEventsBetween(javax.ws.rs.core.UriInfo uriInfo)
Returns all the events which match the filter/query in the query
parameters
|
javax.ws.rs.core.Response |
updateEvent(javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.UriInfo uriInfo,
String eventId,
Boolean ack)
Updates the event with id "eventid" If the "ack" parameter is "true",
then acks the events as the current logged in user, otherwise unacks
the events
|
javax.ws.rs.core.Response |
updateEvents(javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.UriInfo uriInfo,
MultivaluedMapImpl formProperties)
Updates all the events that match any filter/query supplied in the
form.
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Path(value="{eventId}") @Transactional public OnmsEvent getEvent(@PathParam(value="eventId") Integer eventId)
getEvent
@GET @Produces(value="text/plain") @Path(value="count") @Transactional public String getCount()
String
object.@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional public OnmsEventCollection getEvents(@Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
ParseException
- if any.@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Path(value="between") @Transactional public OnmsEventCollection getEventsBetween(@Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
ParseException
- if any.@PUT @Path(value="{eventId}") @Consumes(value="application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateEvent(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="eventId") String eventId, @FormParam(value="ack") Boolean ack)
@PUT @Consumes(value="application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateEvents(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo, MultivaluedMapImpl formProperties)
formProperties
- Map of the parameters passed in by form encodingCopyright © 2016. All rights reserved.