org.exoplatform.clouddrive.ecms.watch
Class WatchCloudDocumentServiceImpl

java.lang.Object
  extended by org.exoplatform.clouddrive.ecms.watch.WatchCloudDocumentServiceImpl
All Implemented Interfaces:
org.exoplatform.services.cms.watch.WatchDocumentService, org.picocontainer.Startable

public class WatchCloudDocumentServiceImpl
extends Object
implements org.exoplatform.services.cms.watch.WatchDocumentService, org.picocontainer.Startable

This is a COPY of ECMS's WatchDocumentServiceImpl with proposed fix of https://jira.exoplatform.org/browse/ECMS-5973.


Field Summary
static String CLOUDDRIVE_WATCH_LINK
           
static String EMAIL_WATCHERS_PROP
           
static String EXO_WATCHABLE_MIXIN
           
static String RSS_WATCHERS_PROP
           
 
Fields inherited from interface org.exoplatform.services.cms.watch.WatchDocumentService
FULL_NOTIFICATION, NOTIFICATION_BY_EMAIL, NOTIFICATION_BY_RSS
 
Constructor Summary
WatchCloudDocumentServiceImpl(org.exoplatform.container.xml.InitParams params, org.exoplatform.services.jcr.RepositoryService repoService, org.exoplatform.services.cms.templates.TemplateService templateService)
          Constructor Method
 
Method Summary
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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXO_WATCHABLE_MIXIN

public static final String EXO_WATCHABLE_MIXIN
See Also:
Constant Field Values

EMAIL_WATCHERS_PROP

public static final String EMAIL_WATCHERS_PROP
See Also:
Constant Field Values

RSS_WATCHERS_PROP

public static final String RSS_WATCHERS_PROP
See Also:
Constant Field Values

CLOUDDRIVE_WATCH_LINK

public static final String CLOUDDRIVE_WATCH_LINK
See Also:
Constant Field Values
Constructor Detail

WatchCloudDocumentServiceImpl

public WatchCloudDocumentServiceImpl(org.exoplatform.container.xml.InitParams params,
                                     org.exoplatform.services.jcr.RepositoryService repoService,
                                     org.exoplatform.services.cms.templates.TemplateService templateService)
Constructor Method

Parameters:
params -
repoService -
templateService -
Method Detail

initializeMessageConfig

public void initializeMessageConfig(org.exoplatform.services.cms.watch.impl.MessageConfigPlugin msgConfigPlugin)

Specified by:
initializeMessageConfig in interface org.exoplatform.services.cms.watch.WatchDocumentService

getNotificationType

public int getNotificationType(javax.jcr.Node documentNode,
                               String userName)
                        throws Exception

Specified by:
getNotificationType in interface org.exoplatform.services.cms.watch.WatchDocumentService
Throws:
Exception

watchDocument

public void watchDocument(javax.jcr.Node documentNode,
                          String userName,
                          int notifyType)
                   throws Exception

Specified by:
watchDocument in interface org.exoplatform.services.cms.watch.WatchDocumentService
Throws:
Exception

unwatchDocument

public void unwatchDocument(javax.jcr.Node documentNode,
                            String userName,
                            int notificationType)
                     throws Exception

Specified by:
unwatchDocument in interface org.exoplatform.services.cms.watch.WatchDocumentService
Throws:
Exception

getMessageConfig

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.

Returns:
MessageCongig

start

public void start()
using for re-observer

Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()

Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.