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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.