public class SubscriptionAdapter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NOTIFIABLE_FACET |
Constructor and Description |
---|
SubscriptionAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
void |
addSubscription(String username,
String notification)
Add a subscription to a notification for a given user.
|
void |
addSubscriptionsToAll(String username)
Add a subscription to all notification for a given user
|
void |
copySubscriptionsTo(DocumentModel targetDoc)
Copy the subscriptions of the current doc to the targetted document.
|
List<String> |
getNotificationSubscribers(String notification)
Return the list of subscribers name for a given notification.
|
List<String> |
getUserSubscriptions(String username)
Return the list of of subscriptions for a given user
|
void |
removeUserNotificationSubscription(String username,
String notification)
Remove a subscription to a notification for a given user.
|
public static final String NOTIFIABLE_FACET
public SubscriptionAdapter(DocumentModel doc)
public List<String> getNotificationSubscribers(String notification)
notification
- public List<String> getUserSubscriptions(String username)
public void addSubscription(String username, String notification)
username
- notification
- public void addSubscriptionsToAll(String username)
username
- public void removeUserNotificationSubscription(String username, String notification)
username
- notification
- public void copySubscriptionsTo(DocumentModel targetDoc)
targetDoc
- Copyright © 2017 Nuxeo. All rights reserved.