1 16 package org.outerj.daisy.emailnotifier; 17 18 import org.outerj.daisy.repository.RepositoryException; 19 import org.outerj.daisy.repository.VariantKey; 20 21 public interface EmailSubscriptionManager { 22 26 public Subscription getSubscription() throws RepositoryException; 27 28 32 public Subscription getSubscription(long userId) throws RepositoryException; 33 34 38 public void deleteSubscription() throws RepositoryException; 39 40 44 public void deleteSubscription(long userId) throws RepositoryException; 45 46 49 public Subscriptions getSubscriptions() throws RepositoryException; 50 51 54 public void addDocumentSubscription(VariantKey variantKey) throws RepositoryException; 55 56 public void addDocumentSubscription(long userId, VariantKey variantKey) throws RepositoryException; 57 58 64 public boolean isSubsribed(VariantKey variantKey) throws RepositoryException; 65 66 public boolean isSubsribed(long userId, VariantKey variantKey) throws RepositoryException; 67 68 public void deleteDocumentSubscription(VariantKey variantKey) throws RepositoryException; 69 70 public void deleteDocumentSubscription(long userId, VariantKey variantKey) throws RepositoryException; 71 72 76 public void deleteAllSubscriptionsForDocumentVariant(VariantKey variantKey) throws RepositoryException; 77 78 82 public void deleteAllSubscriptionsForDocument(long documentId) throws RepositoryException; 83 84 public void deleteAllSubscriptionsForCollection(long collectionId) throws RepositoryException; 85 86 94 public Subscribers getAllDocumentEventSubscribers(long documentId, long branchId, long languageId, long[] collections) throws RepositoryException; 95 96 public Subscribers getAllUserEventSubscribers() throws RepositoryException; 97 98 public Subscribers getAllCollectionEventSubscribers() throws RepositoryException; 99 100 public Subscribers getAllSchemaEventSubscribers() throws RepositoryException; 101 102 public Subscribers getAllAclEventSubscribers() throws RepositoryException; 103 104 public Subscribers getAllCommentEventSubscribers(long documentId, long branchId, long languageId, long[] collections) throws RepositoryException; 105 } 106 | Popular Tags |