public class NotificationStore extends AbstractStore
couchDatabase, CREATE_ENTITY_ERROR, DELETE_ENTITY_ERROR, FIND_ENTITY_ERROR, NOT_FOUND_ERROR, SAVE_ENTITY_ERROR| Constructor and Description |
|---|
NotificationStore(org.tiogasolutions.couchace.core.api.CouchDatabase couchDatabase) |
| Modifier and Type | Method and Description |
|---|---|
org.tiogasolutions.notify.pub.NotificationRef |
createAttachment(CreateAttachment create) |
void |
deleteNotification(java.lang.String notificationId) |
org.tiogasolutions.notify.pub.AttachmentHolder |
findAttachment(java.lang.String notificationId,
java.lang.String attachmentName) |
NotificationEntity |
findNotificationById(java.lang.String notificationId) |
org.tiogasolutions.dev.domain.query.QueryResult<org.tiogasolutions.notify.pub.Notification> |
query(org.tiogasolutions.notify.pub.NotificationQuery query) |
NotificationEntity |
saveAndReload(NotificationEntity entity) |
throwError, throwIfNotFound, throwIfNotFoundpublic NotificationStore(org.tiogasolutions.couchace.core.api.CouchDatabase couchDatabase)
public NotificationEntity saveAndReload(NotificationEntity entity)
public NotificationEntity findNotificationById(java.lang.String notificationId)
public org.tiogasolutions.dev.domain.query.QueryResult<org.tiogasolutions.notify.pub.Notification> query(org.tiogasolutions.notify.pub.NotificationQuery query)
public org.tiogasolutions.notify.pub.NotificationRef createAttachment(CreateAttachment create)
public org.tiogasolutions.notify.pub.AttachmentHolder findAttachment(java.lang.String notificationId,
java.lang.String attachmentName)
public void deleteNotification(java.lang.String notificationId)