public interface WatchDocumentService
| Modifier and Type | Field and Description |
|---|---|
static int |
FULL_NOTIFICATION |
static int |
NOTIFICATION_BY_EMAIL |
static int |
NOTIFICATION_BY_RSS |
| Modifier and Type | Method and Description |
|---|---|
int |
getNotificationType(javax.jcr.Node documentNode,
String userName)
This method will gets the type of notification for the specify document
|
void |
initializeMessageConfig(MessageConfigPlugin msgConfigPlugin)
Initialize the notification email contents of watching document when the
notification type is by email.
|
void |
unwatchDocument(javax.jcr.Node documentNode,
String userName,
int notificationType)
UnWatching the document that is specified by the node by giving a userName, notifyType
|
void |
watchDocument(javax.jcr.Node documentNode,
String userName,
int notifyType)
Watching the document that is specified by the node by giving a userName, notifyType
|
static final int NOTIFICATION_BY_EMAIL
static final int NOTIFICATION_BY_RSS
static final int FULL_NOTIFICATION
void watchDocument(javax.jcr.Node documentNode,
String userName,
int notifyType)
throws Exception
If the document is watching, all thing that changes to it's property will be notified to user specified by the userName
documentNode - Specify the document for watchinguserName - he username of current user is votting. It can't be nullnotifyType - Type of notification. Its can be 0, 1 or 2
0 : Notification by email
1 : Notification by rss
2 : Full notificationExceptionNodeint getNotificationType(javax.jcr.Node documentNode,
String userName)
throws Exception
If that document is not a exo:watchable document, the value return is -1 If notification is notified by email, the value return is 1 If notification is notified by rss, the value return is 2 If notification is notified by rss and email, the value return is 0
documentNode - Specify the document for watchinguserName - The username of current user is votting. It can't be nullExceptionNodevoid unwatchDocument(javax.jcr.Node documentNode,
String userName,
int notificationType)
throws Exception
If the document is unwatching, all thing that changes to it's property will not be notified to user specified by the userName
documentNode - Specify the document for watchinguserName - The username of current user is votting. It can't be nullnotificationType - Type of notification. Its can be 0, 1 or 2
0 : Notification by email
1 : Notification by rss
2 : Full notificationExceptionNodevoid initializeMessageConfig(MessageConfigPlugin msgConfigPlugin)
msgConfigPlugin - The message configuration plug-inCopyright © 2003–2019 eXo Platform SAS. All rights reserved.