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") 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
@Transactional public OnmsNotification getNotification(Integer notifId)
getNotification
- Parameters:
notifId
- aString
object.- Returns:
- a
OnmsNotification
object.
-
getInfo
public NotificationSummary getInfo(@Context javax.ws.rs.core.SecurityContext securityContext)
-
getNotifications
@Transactional public OnmsNotificationCollection getNotifications(@Context javax.ws.rs.core.UriInfo uriInfo)
getNotifications
- Returns:
- a
OnmsNotificationCollection
object.
-
updateNotification
@Transactional public javax.ws.rs.core.Response updateNotification(@Context javax.ws.rs.core.SecurityContext securityContext, Integer notifId, Boolean ack)
updateNotification
-
updateNotifications
@Transactional public javax.ws.rs.core.Response updateNotifications(@Context javax.ws.rs.core.SecurityContext securityContext, MultivaluedMapImpl params)
updateNotifications
- Parameters:
params
- aMultivaluedMapImpl
object.
-
-