@Service public class JpaNotificationRESTService extends Object implements IJpaNotificationRESTService
| Constructor and Description |
|---|
JpaNotificationRESTService() |
| Modifier and Type | Method and Description |
|---|---|
AddresseeDTO |
createAddressee(long notificationId,
AddresseeDTO addressee)
Create the addressee.
|
EventDTO |
createEvent(long notificationId,
EventDTO event)
Create an event.
|
EntryDTO |
createNotification(EntryDTO entry)
Create a notification.
|
AddresseeDTO |
getAddressee(long addresseeId)
Get a single addressee by id.
|
Set<AddresseeDTO> |
getAddressees(long notificationId)
Get the List addressees for a notification.
|
EventDTO |
getEvent(long eventId)
Get a single event.
|
List<EventDTO> |
getEventsByNotification(long notificationId)
Get the list of events by notification.
|
EntryDTO |
getNotification(long id,
boolean full)
Get a notification by id.
|
List<EntryDTO> |
getNotifications(Integer page,
Integer pageSize)
Get the list of notifications.
|
@Transactional(readOnly=true) public List<EntryDTO> getNotifications(Integer page, Integer pageSize)
IJpaNotificationRESTServicegetNotifications in interface IJpaNotificationRESTServicepage - 0 based page #pageSize - page size@Transactional(readOnly=true) public EntryDTO getNotification(long id, boolean full)
IJpaNotificationRESTServicegetNotification in interface IJpaNotificationRESTServiceid - the notification idfull - if true, will fetch the addressee info as well, otherwise will omit@Transactional public EntryDTO createNotification(EntryDTO entry)
IJpaNotificationRESTServicecreateNotification in interface IJpaNotificationRESTServiceentry - the notification object. Should *NOT* contain a populated id field.@Transactional(readOnly=true) public Set<AddresseeDTO> getAddressees(long notificationId)
IJpaNotificationRESTServicegetAddressees in interface IJpaNotificationRESTServicenotificationId - the notification id@Transactional(readOnly=true) public AddresseeDTO getAddressee(long addresseeId)
IJpaNotificationRESTServicegetAddressee in interface IJpaNotificationRESTServiceaddresseeId - the addressee id@Transactional public AddresseeDTO createAddressee(long notificationId, 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 List<EventDTO> getEventsByNotification(long notificationId)
IJpaNotificationRESTServicegetEventsByNotification in interface IJpaNotificationRESTServicenotificationId - the notification id@Transactional(readOnly=true) public EventDTO getEvent(long eventId)
IJpaNotificationRESTServicegetEvent in interface IJpaNotificationRESTServiceeventId - the event id@Transactional public EventDTO createEvent(long notificationId, EventDTO event)
IJpaNotificationRESTServicecreateEvent in interface IJpaNotificationRESTServicenotificationId - the notification idevent - the entry to create. Should *NOT* contain an id.Copyright © 2016 Jasig. All Rights Reserved.