public interface IJpaNotificationRESTService
| Modifier and Type | Method and Description |
|---|---|
org.jasig.portlet.notice.rest.AddresseeDTO |
createAddressee(long notificationId,
org.jasig.portlet.notice.rest.AddresseeDTO addressee)
Create the addressee.
|
org.jasig.portlet.notice.rest.EventDTO |
createEvent(long notificationId,
org.jasig.portlet.notice.rest.EventDTO event)
Create an event.
|
org.jasig.portlet.notice.rest.EntryDTO |
createNotification(org.jasig.portlet.notice.rest.EntryDTO notification)
Create a notification.
|
org.jasig.portlet.notice.rest.AddresseeDTO |
getAddressee(long addresseeId)
Get a single addressee by id.
|
java.util.Set<org.jasig.portlet.notice.rest.AddresseeDTO> |
getAddressees(long notificationId)
Get the List addressees for a notification.
|
org.jasig.portlet.notice.rest.EventDTO |
getEvent(long eventId)
Get a single event.
|
java.util.List<org.jasig.portlet.notice.rest.EventDTO> |
getEventsByNotification(long notificationId)
Get the list of events by notification.
|
java.util.List<org.jasig.portlet.notice.rest.EventDTO> |
getEventsByNotificationAndUser(long notificationId,
java.lang.String username)
Get the list of events by notification.
|
org.jasig.portlet.notice.rest.EntryDTO |
getNotification(long id,
boolean full)
Get an
EntryDTO by id. |
org.jasig.portlet.notice.rest.EntryDTO |
getNotification(org.jasig.portlet.notice.NotificationEntry entry,
boolean full)
Get an
EntryDTO for a NotificationEntry, if applicable. |
java.util.List<org.jasig.portlet.notice.rest.EntryDTO> |
getNotifications(java.lang.Integer page,
java.lang.Integer pageSize)
Get a paged list of all notifications in the data source.
|
java.util.List<org.jasig.portlet.notice.rest.EntryDTO> |
getNotificationsBySourceAndCustomAttribute(java.lang.String source,
java.lang.String attributeName,
java.lang.String attributeValue)
Supports custom integrations and decorators.
|
org.jasig.portlet.notice.rest.EntryDTO getNotification(long id,
boolean full)
EntryDTO by id.org.jasig.portlet.notice.rest.EntryDTO getNotification(org.jasig.portlet.notice.NotificationEntry entry,
boolean full)
EntryDTO for a NotificationEntry, if applicable.java.util.List<org.jasig.portlet.notice.rest.EntryDTO> getNotifications(java.lang.Integer page,
java.lang.Integer pageSize)
page - 0 based page #pageSize - page sizejava.util.List<org.jasig.portlet.notice.rest.EntryDTO> getNotificationsBySourceAndCustomAttribute(java.lang.String source,
java.lang.String attributeName,
java.lang.String attributeValue)
org.jasig.portlet.notice.rest.EntryDTO createNotification(org.jasig.portlet.notice.rest.EntryDTO notification)
notification - the notification object. Should *NOT* contain a populated id field.java.util.Set<org.jasig.portlet.notice.rest.AddresseeDTO> getAddressees(long notificationId)
notificationId - the notification idorg.jasig.portlet.notice.rest.AddresseeDTO getAddressee(long addresseeId)
addresseeId - the addressee idorg.jasig.portlet.notice.rest.AddresseeDTO createAddressee(long notificationId,
org.jasig.portlet.notice.rest.AddresseeDTO addressee)
notificationId - the notification to attach the addressee toaddressee - the addressee object. Should *NOT* create an idjava.util.List<org.jasig.portlet.notice.rest.EventDTO> getEventsByNotification(long notificationId)
notificationId - the notification idjava.util.List<org.jasig.portlet.notice.rest.EventDTO> getEventsByNotificationAndUser(long notificationId,
java.lang.String username)
notificationId - the notification idorg.jasig.portlet.notice.rest.EventDTO getEvent(long eventId)
eventId - the event idorg.jasig.portlet.notice.rest.EventDTO createEvent(long notificationId,
org.jasig.portlet.notice.rest.EventDTO event)
notificationId - the notification idevent - the entry to create. Should *NOT* contain an id.