public class WatchCloudDocumentServiceImpl extends Object implements org.exoplatform.services.cms.watch.WatchDocumentService, org.picocontainer.Startable
WatchDocumentServiceImpl with proposed fix of https://jira.exoplatform.org/browse/ECMS-5973.| Modifier and Type | Field and Description |
|---|---|
static String |
CLOUDDRIVE_WATCH_LINK |
static String |
EMAIL_WATCHERS_PROP |
static String |
EXO_WATCHABLE_MIXIN |
static String |
RSS_WATCHERS_PROP |
| Constructor and Description |
|---|
WatchCloudDocumentServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.services.cms.templates.TemplateService templateService)
Constructor Method
|
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.services.cms.watch.impl.MessageConfig |
getMessageConfig()
This method will get message configuration when a node is observing and there is some changes
with it's properties.
|
int |
getNotificationType(javax.jcr.Node documentNode,
String userName) |
void |
initializeMessageConfig(org.exoplatform.services.cms.watch.impl.MessageConfigPlugin msgConfigPlugin) |
void |
start()
using for re-observer
|
void |
stop() |
void |
unwatchDocument(javax.jcr.Node documentNode,
String userName,
int notificationType) |
void |
watchDocument(javax.jcr.Node documentNode,
String userName,
int notifyType) |
public static final String EXO_WATCHABLE_MIXIN
public static final String EMAIL_WATCHERS_PROP
public static final String RSS_WATCHERS_PROP
public static final String CLOUDDRIVE_WATCH_LINK
public WatchCloudDocumentServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.services.cms.templates.TemplateService templateService)
params - repoService - templateService - public void initializeMessageConfig(org.exoplatform.services.cms.watch.impl.MessageConfigPlugin msgConfigPlugin)
initializeMessageConfig in interface org.exoplatform.services.cms.watch.WatchDocumentServicepublic int getNotificationType(javax.jcr.Node documentNode,
String userName)
throws Exception
getNotificationType in interface org.exoplatform.services.cms.watch.WatchDocumentServiceExceptionpublic void watchDocument(javax.jcr.Node documentNode,
String userName,
int notifyType)
throws Exception
watchDocument in interface org.exoplatform.services.cms.watch.WatchDocumentServiceExceptionpublic void unwatchDocument(javax.jcr.Node documentNode,
String userName,
int notificationType)
throws Exception
unwatchDocument in interface org.exoplatform.services.cms.watch.WatchDocumentServiceExceptionprotected org.exoplatform.services.cms.watch.impl.MessageConfig getMessageConfig()
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2015 eXo Platform SAS. All rights reserved.