@Component(value="notificationRestService") @Path(value="notifications") public class NotificationRestService extends OnmsRestService
NotificationRestService class.
OnmsRestService.ComparisonOperation
DEFAULT_LIMIT
Constructor and Description |
---|
NotificationRestService() |
Modifier and Type | Method and Description |
---|---|
String |
getCount()
getCount
|
OnmsNotification |
getNotification(int notifId)
getNotification
|
OnmsNotificationCollection |
getNotifications(javax.ws.rs.core.UriInfo uriInfo)
getNotifications
|
javax.ws.rs.core.Response |
updateNotification(javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.UriInfo uriInfo,
String notifId,
Boolean ack)
updateNotification
|
javax.ws.rs.core.Response |
updateNotifications(javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.UriInfo uriInfo,
MultivaluedMapImpl params)
updateNotifications
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@GET @Produces(value={"application/xml","application/json"}) @Path(value="{notifId}") @Transactional public OnmsNotification getNotification(@PathParam(value="notifId") int notifId)
getNotification
notifId
- a String
object.OnmsNotification
object.@GET @Produces(value="text/plain") @Path(value="count") @Transactional public String getCount()
getCount
String
object.@GET @Path(value="") @Produces(value={"application/xml","application/json"}) @Transactional public OnmsNotificationCollection getNotifications(@Context javax.ws.rs.core.UriInfo uriInfo)
getNotifications
OnmsNotificationCollection
object.@PUT @Path(value="{notifId}") @Consumes(value="application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateNotification(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="notifId") String notifId, @FormParam(value="ack") Boolean ack)
updateNotification
@PUT @Consumes(value="application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateNotifications(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo, MultivaluedMapImpl params)
updateNotifications
params
- a MultivaluedMapImpl
object.Copyright © 2016. All rights reserved.