Class AlarmRestService

    • Constructor Detail

      • AlarmRestService

        public AlarmRestService()
    • Method Detail

      • getAlarm

        @Transactional
        public javax.ws.rs.core.Response getAlarm​(@Context
                                                  javax.ws.rs.core.SecurityContext securityContext,
                                                  String alarmId)

        getAlarm

        Parameters:
        alarmId - a String object.
        Returns:
        a OnmsAlarm object.
      • 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

        Parameters:
        alarmId - a String object.
        ack - a Boolean object.
      • updateAlarms

        @Transactional
        public javax.ws.rs.core.Response updateAlarms​(@Context
                                                      javax.ws.rs.core.SecurityContext securityContext,
                                                      MultivaluedMapImpl formProperties)

        updateAlarms

        Parameters:
        formProperties - a MultivaluedMapImpl object.