@Service(value="jpaNotificationRestService") public class JpaNotificationRESTService extends java.lang.Object implements IJpaNotificationRESTService
JpaNotificationService but provides write
operations.| Constructor and Description |
|---|
JpaNotificationRESTService() |
| 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 entry)
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)
Provides a complete transaction log for a notification and a single
recipient in chronological order.
|
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.
|
@Transactional(readOnly=true)
public org.jasig.portlet.notice.rest.EntryDTO getNotification(long id,
boolean full)
IJpaNotificationRESTServiceEntryDTO by id.getNotification in interface IJpaNotificationRESTService@Transactional(readOnly=true)
public org.jasig.portlet.notice.rest.EntryDTO getNotification(org.jasig.portlet.notice.NotificationEntry entry,
boolean full)
IJpaNotificationRESTServiceEntryDTO for a NotificationEntry, if applicable.getNotification in interface IJpaNotificationRESTService@Transactional(readOnly=true)
public java.util.List<org.jasig.portlet.notice.rest.EntryDTO> getNotifications(java.lang.Integer page,
java.lang.Integer pageSize)
IJpaNotificationRESTServicegetNotifications in interface IJpaNotificationRESTServicepage - 0 based page #pageSize - page size@Transactional(readOnly=true)
public java.util.List<org.jasig.portlet.notice.rest.EntryDTO> getNotificationsBySourceAndCustomAttribute(java.lang.String source,
java.lang.String attributeName,
java.lang.String attributeValue)
IJpaNotificationRESTServicegetNotificationsBySourceAndCustomAttribute in interface IJpaNotificationRESTService@Transactional public org.jasig.portlet.notice.rest.EntryDTO createNotification(org.jasig.portlet.notice.rest.EntryDTO entry)
IJpaNotificationRESTServicecreateNotification in interface IJpaNotificationRESTServiceentry - the notification object. Should *NOT* contain a populated id field.@Transactional(readOnly=true) public java.util.Set<org.jasig.portlet.notice.rest.AddresseeDTO> getAddressees(long notificationId)
IJpaNotificationRESTServicegetAddressees in interface IJpaNotificationRESTServicenotificationId - the notification id@Transactional(readOnly=true) public org.jasig.portlet.notice.rest.AddresseeDTO getAddressee(long addresseeId)
IJpaNotificationRESTServicegetAddressee in interface IJpaNotificationRESTServiceaddresseeId - the addressee id@Transactional
public org.jasig.portlet.notice.rest.AddresseeDTO createAddressee(long notificationId,
org.jasig.portlet.notice.rest.AddresseeDTO addressee)
IJpaNotificationRESTServicecreateAddressee in interface IJpaNotificationRESTServicenotificationId - the notification to attach the addressee toaddressee - the addressee object. Should *NOT* create an id@Transactional(readOnly=true) public java.util.List<org.jasig.portlet.notice.rest.EventDTO> getEventsByNotification(long notificationId)
IJpaNotificationRESTServicegetEventsByNotification in interface IJpaNotificationRESTServicenotificationId - the notification id@Transactional(readOnly=true)
public java.util.List<org.jasig.portlet.notice.rest.EventDTO> getEventsByNotificationAndUser(long notificationId,
java.lang.String username)
getEventsByNotificationAndUser in interface IJpaNotificationRESTServicenotificationId - the notification id@Transactional(readOnly=true) public org.jasig.portlet.notice.rest.EventDTO getEvent(long eventId)
IJpaNotificationRESTServicegetEvent in interface IJpaNotificationRESTServiceeventId - the event id@Transactional
public org.jasig.portlet.notice.rest.EventDTO createEvent(long notificationId,
org.jasig.portlet.notice.rest.EventDTO event)
IJpaNotificationRESTServicecreateEvent in interface IJpaNotificationRESTServicenotificationId - the notification idevent - the entry to create. Should *NOT* contain an id.