@Component(value="eventRestService") public class EventRestService extends OnmsRestService
OnmsRestService.ComparisonOperationDEFAULT_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 |
publishEvent(Event event) |
javax.ws.rs.core.Response |
updateEvent(javax.ws.rs.core.SecurityContext securityContext,
Integer 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,
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@Transactional public String getCount()
String object.@Transactional public OnmsEventCollection getEvents(@Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
ParseException - if any.@Transactional public OnmsEventCollection getEventsBetween(@Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
ParseException - if any.@Transactional
public javax.ws.rs.core.Response updateEvent(@Context
javax.ws.rs.core.SecurityContext securityContext,
Integer eventId,
Boolean ack)
@Transactional
public javax.ws.rs.core.Response updateEvents(@Context
javax.ws.rs.core.SecurityContext securityContext,
MultivaluedMapImpl formProperties)
formProperties - Map of the parameters passed in by form encoding@Transactional public javax.ws.rs.core.Response publishEvent(Event event)
Copyright © 2020. All rights reserved.