@Component @PerRequest @Scope(value="prototype") 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(String eventId)
getEvent
|
OnmsEventCollection |
getEvents()
Returns all the events which match the filter/query in the query
parameters
|
OnmsEventCollection |
getEventsBetween()
Returns all the events which match the filter/query in the query
parameters
|
javax.ws.rs.core.Response |
updateEvent(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(MultivaluedMapImpl formProperties)
Updates all the events that match any filter/query supplied in the
form.
|
applyQueryFilters, applyQueryFilters, getBeanWrapperForClass, getException, getException, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@Transactional public String getCount()
String
object.@Transactional public OnmsEventCollection getEvents() throws ParseException
ParseException
- if any.@Transactional public OnmsEventCollection getEventsBetween() throws ParseException
ParseException
- if any.@Transactional public javax.ws.rs.core.Response updateEvent(String eventId, Boolean ack)
@Transactional public javax.ws.rs.core.Response updateEvents(MultivaluedMapImpl formProperties)
formProperties
- Map of the parameters passed in by form encodingCopyright © 2015. All rights reserved.