for(NotificationEntity notification : mailQ.getNotifications()) {
System.out.println(notification.getName());
}
NotificationEntity notification = mailQ.getNotification(1L);
System.out.println(notification.getName());
NotificationEntity notification = new NotificationEntity();
notification.setName("Order confirmation")
.setSubject("Order confirmation")
.setSendAs("Company inc.")
.setTemplate("tHa42Av5s6==")
.setAmpTemplate("QWx0ZXJuYXRpdmUgYmFzZTY0IGVtYWlsIHRleHQ=")
.setAppliedSenderEmail("robot@example.org")
.setText("Your order is confirmed")
.setCode("XS-12");
mailQ.createNotification(notification);
NotificationEntity notification = mailQ.getNotification(1L);
notification.setName("Summer sale");
mailQ.updateNotification(notification);
mailQ.deleteNotification(1L);
List<NotificationAttachmentEntity> attachments = new ArrayList<>();
NotificationAttachmentEntity attachment = new NotificationAttachmentEntity();
attachment.setSource("hUjA45ta==")
.setMimeType("plain/text")
.setLink("http://example.org")
.setDisplayName("attachment.txt");
attachments.add(attachment);
NotificationDataEntity notificationData = new NotificationDataEntity();
notificationData.setRecipientEmail("john.doe@example.org")
.setDateFrom(LocalDateTime.now())
.setReplyToEmail("marketing@example.org")
.setBcc("reports@example.org","reporting@example.org")
.setCc("jill.doe@example.og")
.setAttachments(attachments);
mailQ.sendNotificationEmail(264L,notificationData);