Package org.opennms.web.rest.v1
Class AcknowledgmentRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.AcknowledgmentRestService
-
@Component("acknowledgmentRestService") public class AcknowledgmentRestService extends OnmsRestService
ReST service for Acknowledgments of alarms/notifications.- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- David Hustace
-
-
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 AcknowledgmentRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
acknowledge(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
acknowledgeAlarmOnmsAcknowledgment
getAcknowledgment(java.lang.Integer acknowledgmentId)
getAcknowledgmentOnmsAcknowledgmentCollection
getAcks(javax.ws.rs.core.UriInfo uriInfo)
getAcksjava.lang.String
getCount()
getCount-
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
-
getAcknowledgment
@Transactional public OnmsAcknowledgment getAcknowledgment(java.lang.Integer acknowledgmentId)
getAcknowledgment
- Parameters:
acknowledgmentId
- aInteger
object.- Returns:
- a
OnmsAcknowledgment
object.
-
getCount
@Transactional public java.lang.String getCount()
getCount
- Returns:
- a
String
object.
-
getAcks
@Transactional public OnmsAcknowledgmentCollection getAcks(@Context javax.ws.rs.core.UriInfo uriInfo)
getAcks
- Returns:
- a
OnmsAcknowledgmentCollection
object.
-
acknowledge
@Transactional public javax.ws.rs.core.Response acknowledge(@Context javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
acknowledgeAlarm
- Parameters:
alarmId
- aString
object.action
- aString
object.- Returns:
- a
Response
object.
-
-