Package org.opennms.web.rest.v1
Class NotificationRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.NotificationRestService
-
@Component("notificationRestService") @Path("notifications") public class NotificationRestService extends OnmsRestService
NotificationRestService class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description NotificationRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCount()
getCountNotificationSummary
getInfo(javax.ws.rs.core.SecurityContext securityContext)
OnmsNotification
getNotification(Integer notifId)
getNotificationOnmsNotificationCollection
getNotifications(javax.ws.rs.core.UriInfo uriInfo)
getNotificationsjavax.ws.rs.core.Response
updateNotification(javax.ws.rs.core.SecurityContext securityContext, Integer notifId, Boolean ack)
updateNotificationjavax.ws.rs.core.Response
updateNotifications(javax.ws.rs.core.SecurityContext securityContext, MultivaluedMapImpl params)
updateNotifications-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getNotification
@GET @Produces({"application/xml","application/json"}) @Path("{notifId}") @Transactional public OnmsNotification getNotification(@PathParam("notifId") Integer notifId)
getNotification
- Parameters:
notifId
- aString
object.- Returns:
- a
OnmsNotification
object.
-
getCount
@GET @Produces("text/plain") @Path("count") @Transactional public String getCount()
getCount
- Returns:
- a
String
object.
-
getInfo
@GET @Path("summary") @Produces("application/json") public NotificationSummary getInfo(@Context javax.ws.rs.core.SecurityContext securityContext)
-
getNotifications
@GET @Path("") @Produces({"application/xml","application/json"}) @Transactional public OnmsNotificationCollection getNotifications(@Context javax.ws.rs.core.UriInfo uriInfo)
getNotifications
- Returns:
- a
OnmsNotificationCollection
object.
-
updateNotification
@PUT @Path("{notifId}") @Consumes("application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateNotification(@Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("notifId") Integer notifId, @FormParam("ack") Boolean ack)
updateNotification
-
updateNotifications
@PUT @Consumes("application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateNotifications(@Context javax.ws.rs.core.SecurityContext securityContext, MultivaluedMapImpl params)
updateNotifications
- Parameters:
params
- aMultivaluedMapImpl
object.
-
-