Package org.opennms.web.rest.v1
Class AlarmRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.AlarmRestServiceBase
-
- org.opennms.web.rest.v1.AlarmRestService
-
@Component("alarmRestService") public class AlarmRestService extends AlarmRestServiceBase
-
-
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.AlarmRestServiceBase
m_severityPattern
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description AlarmRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getAlarm(javax.ws.rs.core.SecurityContext securityContext, String alarmId)
getAlarmOnmsAlarmCollection
getAlarms(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo)
getAlarmsString
getCount(javax.ws.rs.core.SecurityContext securityContext)
getCountjavax.ws.rs.core.Response
updateAlarm(javax.ws.rs.core.SecurityContext securityContext, Integer alarmId, MultivaluedMapImpl formProperties)
updateAlarmjavax.ws.rs.core.Response
updateAlarms(javax.ws.rs.core.SecurityContext securityContext, MultivaluedMapImpl formProperties)
updateAlarms-
Methods inherited from class org.opennms.web.rest.v1.AlarmRestServiceBase
getCriteria, getCriteriaBuilder, translateParameters
-
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
-
getAlarm
@Transactional public javax.ws.rs.core.Response getAlarm(@Context javax.ws.rs.core.SecurityContext securityContext, String alarmId)
getAlarm
-
getCount
@Transactional public String getCount(@Context javax.ws.rs.core.SecurityContext securityContext)
getCount
- Returns:
- a
String
object.
-
getAlarms
@Transactional public OnmsAlarmCollection getAlarms(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo)
getAlarms
- Returns:
- a
OnmsAlarmCollection
object.
-
updateAlarm
@Transactional public javax.ws.rs.core.Response updateAlarm(@Context javax.ws.rs.core.SecurityContext securityContext, Integer alarmId, MultivaluedMapImpl formProperties)
updateAlarm
-
updateAlarms
@Transactional public javax.ws.rs.core.Response updateAlarms(@Context javax.ws.rs.core.SecurityContext securityContext, MultivaluedMapImpl formProperties)
updateAlarms
- Parameters:
formProperties
- aMultivaluedMapImpl
object.
-
-