@Component
public class NotificationKernel
extends java.lang.Object
| Constructor and Description |
|---|
NotificationKernel(ExecutionAccessor executionAccessor,
DomainKernel domainKernel) |
| Modifier and Type | Method and Description |
|---|---|
org.tiogasolutions.notify.pub.notification.NotificationRef |
createAttachment(CreateAttachment create) |
org.tiogasolutions.notify.pub.notification.NotificationRef |
createNotification(CreateNotification create) |
TaskEntity |
createTask(CreateTask create,
org.tiogasolutions.notify.pub.notification.Notification notification) |
void |
deleteNotification(java.lang.String notificationId) |
void |
deleteTask(java.lang.String taskId) |
protected NotificationDomain |
domain() |
org.tiogasolutions.notify.pub.notification.Notification |
findNotificationById(java.lang.String notificationId)
Finds a notification by it's specific ID.
|
TaskEntity |
findTaskById(java.lang.String taskId)
Finds a task by it's specific ID.
|
org.tiogasolutions.notify.pub.attachment.AttachmentHolder |
query(org.tiogasolutions.notify.pub.attachment.AttachmentQuery query) |
org.tiogasolutions.dev.domain.query.QueryResult<org.tiogasolutions.notify.pub.notification.Notification> |
query(org.tiogasolutions.notify.pub.notification.NotificationQuery query) |
org.tiogasolutions.dev.domain.query.QueryResult<TaskEntity> |
query(org.tiogasolutions.notify.pub.task.TaskQuery query) |
void |
readAttachment(java.lang.String notificationId,
java.lang.String attachmentName) |
TaskEntity |
saveAndReload(TaskEntity taskEntity) |
@Autowired public NotificationKernel(ExecutionAccessor executionAccessor, DomainKernel domainKernel)
public org.tiogasolutions.notify.pub.notification.NotificationRef createNotification(CreateNotification create)
public org.tiogasolutions.notify.pub.notification.NotificationRef createAttachment(CreateAttachment create)
public org.tiogasolutions.dev.domain.query.QueryResult<org.tiogasolutions.notify.pub.notification.Notification> query(org.tiogasolutions.notify.pub.notification.NotificationQuery query)
public org.tiogasolutions.notify.pub.notification.Notification findNotificationById(java.lang.String notificationId)
throws org.tiogasolutions.dev.common.exceptions.ApiNotFoundException
notificationId - the notification's IDorg.tiogasolutions.dev.common.exceptions.ApiNotFoundException - if the notification does not exists.public org.tiogasolutions.notify.pub.attachment.AttachmentHolder query(org.tiogasolutions.notify.pub.attachment.AttachmentQuery query)
public void deleteNotification(java.lang.String notificationId)
public org.tiogasolutions.dev.domain.query.QueryResult<TaskEntity> query(org.tiogasolutions.notify.pub.task.TaskQuery query)
public TaskEntity findTaskById(java.lang.String taskId) throws org.tiogasolutions.dev.common.exceptions.ApiNotFoundException
taskId - the task's IDorg.tiogasolutions.dev.common.exceptions.ApiNotFoundException - if the notification does not exists.public TaskEntity createTask(CreateTask create, org.tiogasolutions.notify.pub.notification.Notification notification)
public TaskEntity saveAndReload(TaskEntity taskEntity)
public void deleteTask(java.lang.String taskId)
protected NotificationDomain domain()
public void readAttachment(java.lang.String notificationId,
java.lang.String attachmentName)