Package se.conciliate.extensions.store
Interface MTNotificationStore
public interface MTNotificationStore
Utility methods for notifications.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePublication
(String profileId, long snapshotID, String baseUrl) findNotificationModel
(long notificationModelID) findNotificationModel
(long publicationID, String modelUUID) findNotificationModels
(long publicationID) findNotificationModels
(String modelUUID) findNotificationModels
(String modelUUID, int revision) findNotificationReceipt
(long notificationModelID, long subscriberID) findNotificationReceipts
(long notificationModelID) findPublication
(long publicationID) findPublication
(String profileId, long snapshotID) Returns all subscriber emails.Returns all subscriber ids.Returns all subscribers.findSubscribers
(List<Long> ids) Finds subscribers.findSubscribersByEmails
(List<String> emails) Finds subscribers.findSubscribersInModel
(long modelID) Returns a list of all subscribers that have been added to the model with the given id.findSubscribersInModels
(Long... modelIDs) Returns a list of subscribers that is common in all the models with the given ids.
-
Method Details
-
createPublication
-
findPublication
-
findPublication
-
findNotificationModels
-
findNotificationModels
-
findNotificationModels
-
findNotificationModel
-
findNotificationModel
-
findNotificationReceipts
-
findNotificationReceipt
-
findSubscribersInModel
Returns a list of all subscribers that have been added to the model with the given id.- Parameters:
modelID
- The id of the model to get the subscribers from.- Returns:
- a list of all subscribers that have been added to the model with the given id.
-
findSubscribersInModels
Returns a list of subscribers that is common in all the models with the given ids.- Parameters:
modelIDs
- The ids of the models to get the subscribers from.- Returns:
- a list of subscribers that is common in all the models with the given ids
-
findSubscribersByEmails
Finds subscribers.- Parameters:
emails
- The emails of the subscribers to fetch.- Returns:
- A list of subscribers.
- Throws:
MTAccessException
-
findSubscribers
Finds subscribers.- Parameters:
ids
- The ids of the subscribers to fetch.- Returns:
- A list of subscribers.
- Throws:
MTAccessException
-
findSubscribers
Returns all subscribers.- Returns:
- An iterator over all subscribers.
- Throws:
MTAccessException
-
findSubscriberEmails
Returns all subscriber emails.- Returns:
- A list of all emails
- Throws:
MTAccessException
-
findSubscriberIds
Returns all subscriber ids.- Returns:
- A list of all ids
- Throws:
MTAccessException
-