JBoss.orgCommunity Documentation

WatchDocumentService

The WatchDocumentService component allows users to watch/unwatch a document. If they are watching the document, they will receive a notification mail when there are any changes on the document. The configuration of this component is found in /core/core-configuration/src/main/webapp/WEB-INF/conf/wcm-core/core-services-configuration.xml.



<component>
    <key>org.exoplatform.services.cms.watch.WatchDocumentService</key>
    <type>org.exoplatform.services.cms.watch.impl.WatchDocumentServiceImpl</type>
    <init-params>
        <object-param>
            <name>messageConfig</name>
            <description>description</description>
            <object type="org.exoplatform.services.cms.watch.impl.MessageConfig">
                <field name="sender">
                    <string>support@exoplatform.com</string>
                </field>
                <field name="subject">
                    <string>Your watching document is changed</string>
                </field>
                <field name="content">
                    <string>The document that you are watching is changed.
                        Please go to ecm to see this change
                    </string>
                </field>
            </object>
        </object-param>
    </init-params>
</component>

Details:

Field Type Value Description
sender string support@exoplatform.com The sender who sends the notification mail.
subject string Your watching document is changed. The subject of the notification mail.
content string The document that you are watching is changed. Please go to ecm to see this change. The content of the notification mail.