org.opennms.web.rest
Class NotificationRestService

java.lang.Object
  extended by org.opennms.web.rest.OnmsRestService
      extended by org.opennms.web.rest.NotificationRestService

@Component
@PerRequest
@Scope(value="prototype")
public class NotificationRestService
extends OnmsRestService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.web.rest.OnmsRestService
OnmsRestService.ComparisonOperation
 
Field Summary
 
Fields inherited from class org.opennms.web.rest.OnmsRestService
DEFAULT_LIMIT
 
Constructor Summary
NotificationRestService()
           
 
Method Summary
 String getCount()
          getCount
 OnmsNotification getNotification(String notifId)
          getNotification
 OnmsNotificationCollection getNotifications()
          getNotifications
 void updateNotification(String notifId, Boolean ack)
          updateNotification
 void updateNotifications(MultivaluedMapImpl formProperties)
          updateNotifications
 
Methods inherited from class org.opennms.web.rest.OnmsRestService
addFiltersToCriteria, addOrdering, addOrdering, convertNameToPropertyName, getDistinctIdCriteria, log, setLimitOffset, setLimitOffset, setLimitOffset, setProperties, throwException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationRestService

public NotificationRestService()
Method Detail

getNotification

@Transactional
public OnmsNotification getNotification(String notifId)

getNotification

Parameters:
notifId - a String object.
Returns:
a OnmsNotification object.

getCount

@Transactional
public String getCount()

getCount

Returns:
a String object.

getNotifications

@Transactional
public OnmsNotificationCollection getNotifications()

getNotifications

Returns:
a OnmsNotificationCollection object.

updateNotification

@Transactional
public void updateNotification(String notifId,
                                             Boolean ack)

updateNotification

Parameters:
notifId - a String object.
ack - a Boolean object.

updateNotifications

@Transactional
public void updateNotifications(MultivaluedMapImpl formProperties)

updateNotifications

Parameters:
formProperties - a MultivaluedMapImpl object.


Copyright © 2011. All Rights Reserved.