Publishing the NotificationLog

Recall that there are two kinds of notification logs, a current log and an archived log. Thus, the NotificationService interface provides a query method for each type:

public class NotificationService {     @Transactional(readOnly=true)     public NotificationLog currentNotificationLog() {         EventStore eventStore = EventStore.instance();         return this.findNotificationLog(                 this.calculateCurrentNotificationLogId(eventStore),                 eventStore);     }     @Transactional(readOnly=true)     public NotificationLog notificationLog(String aNotificationLogId) {         EventStore eventStore = EventStore.instance();         return this.findNotificationLog( ...

Get Implementing Domain-Driven Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.