Interface MTNotificationStore


public interface MTNotificationStore
Utility methods for notifications.
  • Method Details

    • createPublication

      MTPublication createPublication(String profileId, long snapshotID, String baseUrl)
    • findPublication

      MTPublication findPublication(String profileId, long snapshotID)
    • findPublication

      MTPublication findPublication(long publicationID)
    • findNotificationModels

      List<MTNotificationModel> findNotificationModels(long publicationID)
    • findNotificationModels

      List<MTNotificationModel> findNotificationModels(String modelUUID, int revision)
    • findNotificationModels

      List<MTNotificationModel> findNotificationModels(String modelUUID)
    • findNotificationModel

      MTNotificationModel findNotificationModel(long publicationID, String modelUUID)
    • findNotificationModel

      MTNotificationModel findNotificationModel(long notificationModelID)
    • findNotificationReceipts

      List<MTNotificationReceipt> findNotificationReceipts(long notificationModelID)
    • findNotificationReceipt

      MTNotificationReceipt findNotificationReceipt(long notificationModelID, long subscriberID)
    • findSubscribersInModel

      List<MTSubscriber> findSubscribersInModel(long modelID)
      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

      List<MTSubscriber> findSubscribersInModels(Long... modelIDs)
      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

      List<MTSubscriber> findSubscribersByEmails(List<String> emails) throws MTAccessException
      Finds subscribers.
      Parameters:
      emails - The emails of the subscribers to fetch.
      Returns:
      A list of subscribers.
      Throws:
      MTAccessException
    • findSubscribers

      List<MTSubscriber> findSubscribers(List<Long> ids) throws MTAccessException
      Finds subscribers.
      Parameters:
      ids - The ids of the subscribers to fetch.
      Returns:
      A list of subscribers.
      Throws:
      MTAccessException
    • findSubscribers

      MTIterator<MTSubscriber> findSubscribers() throws MTAccessException
      Returns all subscribers.
      Returns:
      An iterator over all subscribers.
      Throws:
      MTAccessException
    • findSubscriberEmails

      List<String> findSubscriberEmails()
      Returns all subscriber emails.
      Returns:
      A list of all emails
      Throws:
      MTAccessException
    • findSubscriberIds

      List<Long> findSubscriberIds()
      Returns all subscriber ids.
      Returns:
      A list of all ids
      Throws:
      MTAccessException