Platform Explorer / CMF 1.8

Extension point notifications

Documentation

This extension point can be used to configure available notifications. A given notification has the form:

    <notification autoSubscribed="false"
        availableIn="Section, Workspace" channel="email"
        name="Publication" template="publishContent">
        <event name="sectionContentPublished"/>
        <event name="myContentPublished"/>
    </notification>

The name

is the identifier for this notification.

The channel

is always "email".

The autoSubscribed

flag can be true if this notification is aways taken into account, or false if you want to allow users to enable/disable this notification by themselves.

The template

refers to the body template, which can be configured through the "templates" extension point.

The availableIn

attribute specifies in which types of superspaces the notification is active, it can be a comma-separated lists of types, or "*" or "all" to make the notification active in any container.

To disable an existing notification:

    <notification enabled="false" name="Publication"/>

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.ec.notification.service.NotificationDescriptor
  • Class: org.nuxeo.ecm.platform.ec.notification.service.NotificationEventDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-comment-workflow-5.4.2-HF05.jar
    <extension point="notifications" target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService">
    
        <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="notifications.name.Comments" name="CommentPublication" subject="Comment published" template="comment">
          <event name="commentPublished"/>
        </notification>
        
      </extension>
  • nuxeo-platform-notification-core-5.4.2-HF05.jar
    <extension point="notifications" target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService">
    
        <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.subscriptions.updated" name="Subscriptions updated" subject="New subscription" template="subscriptionsUpdated">
          <event name="subscriptionAssigned"/>
        </notification>
    
        <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.modif" name="Modification" subject="Document modified" template="modif">
          <event name="documentModified"/>
        </notification>
    
        <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.create" name="Creation" subject="Document created" template="modif">
          <event name="documentCreated"/>
        </notification>
    
        <notification autoSubscribed="true" availableIn="Section" channel="email" enabled="true" label="label.nuxeo.notifications.publication" name="Publication" subject="Document published" template="publish">
          <event name="documentPublicationApproved"/>
          <event name="documentPublicationRejected"/>
          <event name="documentPublished"/>
        </notification>
    
        <notification autoSubscribed="false" availableIn="Section" channel="email" enabled="true" label="label.nuxeo.notifications.publication" name="PublicationOnClient" subject="Document published" template="publish">
          <event name="documentPublicationApproved"/>
          <event name="documentPublished"/>
        </notification>
    
        <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.workflow" name="Workflow Change" subject="Workflow event" template="workflow">
          <event name="workflowNewProcessStarted"/>
          <event name="workflowProcessEnded"/>
          <event name="workflowProcessCanceled"/>
          <event name="workflowAbandoned"/>
          <event name="workflowTaskCompleted"/>
          <event name="workflowTaskRejected"/>
          <event name="workflowTaskAssigned"/>
        </notification>
    
        <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Approbation review started" subject="Review started for ${docTitle}" template="aprobationWorkflowStarted">
          <event name="workflowNewProcessStarted"/>
        </notification>
    
        <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Task assigned" subject="Task Assigned for ${docTitle}" template="workflowTaskAssigned">
          <event name="workflowTaskAssigned"/>
        </notification>
    
        <notification autoSubscribed="true" availableIn="all" channel="email" enabled="true" label="label.noLabel" name="Email document" subject="${subject}" template="emailDocument">
          <event name="emailDocumentSend"/>
        </notification>
    
      </extension>