|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EmailSubscriptionManager
Management of email notification subscriptions.
This is an optional repository extension component.
The EmailSubscriptionManager extension is obtained from the
Repository as follows:
subscriptionManager = (EmailSubscriptionManager)repository.getExtension("EmailSubscriptionManager");
In the remote repository API, the EmailSubscriptionManager extension can be registered as follows:
RemoteRepositoryManager repositoryManager = ...;
repositoryManager.registerExtension("EmailSubscriptionManager",
new Packages.org.outerj.daisy.emailnotifier.clientimpl.RemoteEmailSubscriptionManagerProvider());
| Field Summary | |
|---|---|
static String |
DOCUMENT_ID_WILDCARD
|
| Method Summary | |
|---|---|
void |
addDocumentSubscription(long userId,
VariantKey variantKey)
|
void |
addDocumentSubscription(VariantKey variantKey)
|
void |
deleteAllSubscriptionsForCollection(long collectionId)
|
void |
deleteAllSubscriptionsForDocument(String documentId)
Deletes subscriptions for the specified document for all users (useful if eg the document variant has been deleted). |
void |
deleteAllSubscriptionsForDocumentVariant(VariantKey variantKey)
Deletes subscriptions for the specified document variant for all users (useful if eg the document variant has been deleted). |
void |
deleteDocumentSubscription(long userId,
VariantKey variantKey)
|
void |
deleteDocumentSubscription(VariantKey variantKey)
|
void |
deleteSubscription()
Removes the subscription for the current user. |
void |
deleteSubscription(long userId)
Deletes the subscription of another user. |
Subscribers |
getAllAclEventSubscribers()
|
Subscribers |
getAllCollectionEventSubscribers()
|
Subscribers |
getAllCommentEventSubscribers(String documentId,
long branchId,
long languageId,
long[] collections)
|
Subscribers |
getAllDocumentEventSubscribers(String documentId,
long branchId,
long languageId,
long[] collections)
Returns the users subscribed to changes for documents. |
Subscribers |
getAllSchemaEventSubscribers()
|
Subscribers |
getAllUserEventSubscribers()
|
Subscription |
getSubscription()
Gets subscription information for the current user. |
Subscription |
getSubscription(long userId)
Retrieves the subscription of another user. |
Subscriptions |
getSubscriptions()
Get all available subscriptions. |
boolean |
isSubsribed(long userId,
VariantKey variantKey)
|
boolean |
isSubsribed(VariantKey variantKey)
Checks if the user is subscribed to the specified document variant. |
| Field Detail |
|---|
static final String DOCUMENT_ID_WILDCARD
| Method Detail |
|---|
Subscription getSubscription()
throws RepositoryException
RepositoryException
Subscription getSubscription(long userId)
throws RepositoryException
RepositoryException
void deleteSubscription()
throws RepositoryException
RepositoryException
void deleteSubscription(long userId)
throws RepositoryException
RepositoryException
Subscriptions getSubscriptions()
throws RepositoryException
RepositoryException
void addDocumentSubscription(VariantKey variantKey)
throws RepositoryException
variantKey - documentId can be DOCUMENT_ID_WILDCARD (*), and
the branchId and languageId components can be -1 to indicate "any document/branch/language".
RepositoryException
void addDocumentSubscription(long userId,
VariantKey variantKey)
throws RepositoryException
RepositoryException
boolean isSubsribed(VariantKey variantKey)
throws RepositoryException
RepositoryException
boolean isSubsribed(long userId,
VariantKey variantKey)
throws RepositoryException
RepositoryException
void deleteDocumentSubscription(VariantKey variantKey)
throws RepositoryException
RepositoryException
void deleteDocumentSubscription(long userId,
VariantKey variantKey)
throws RepositoryException
RepositoryException
void deleteAllSubscriptionsForDocumentVariant(VariantKey variantKey)
throws RepositoryException
RepositoryException
void deleteAllSubscriptionsForDocument(String documentId)
throws RepositoryException
RepositoryException
void deleteAllSubscriptionsForCollection(long collectionId)
throws RepositoryException
RepositoryException
Subscribers getAllDocumentEventSubscribers(String documentId,
long branchId,
long languageId,
long[] collections)
throws RepositoryException
documentId - the id of the documentbranchId - can be -1 to specify 'whatever branch the subscription applies to'languageId - can be -1 to specify 'whatever language the subscription applies to'collections - the collections the document belongs to.
RepositoryException
Subscribers getAllUserEventSubscribers()
throws RepositoryException
RepositoryException
Subscribers getAllCollectionEventSubscribers()
throws RepositoryException
RepositoryException
Subscribers getAllSchemaEventSubscribers()
throws RepositoryException
RepositoryException
Subscribers getAllAclEventSubscribers()
throws RepositoryException
RepositoryException
Subscribers getAllCommentEventSubscribers(String documentId,
long branchId,
long languageId,
long[] collections)
throws RepositoryException
RepositoryException
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||