Highlighted

Sending Community Messages & Notification

grannumt

28-05-2019

Hello Community,

We have a requirement to send User's Messages/Notifications based on certain actions happening within our back-end, 6.4.4. Such as an approval or denial of certain request, or sending out update messages. Is there a way to make use of the Messaging API in order to dynamically send messages to Community Users?

Current approaches aware of:

  1. Task/Touch UI messages/ AEM notification inbox. - This does not meet our requirement that needs the community user to see their message from the Published Site.
  2. Custom Social Event. - Our current implementation of the component is the HTL/USE-Pojo. We did not go through the route of extending SocialComponent, so do not have a resource the SocialEvent is looking for. Unless there is a way to make use of this approach within our current Sling Model/Servlet. https://helpx.adobe.com/experience-manager/6-4/communities/using/events.html#EventsforCustomComponen...
  3. Custom Workflow Steps/E-mail - We'd like to make use of the built-in Messaging and/or Notification system as much as possible without sending the User messages outside of the system as much as a possible (unless they set that configuration).

To summarize:

We have an component based on HTL/USE-Pojo, and is looking for a way to send Community Messages to User's on the Publish site from within our Servlet that manages the request.

Note:

Did find within the Java Doc an Interface MessagingOperations from package "com.adobe.cq.social.messaging.client.endpoints", yet cannot find any examples of what the parameters are expecting as values (I.E: what props should be in the Map, ClientUtilities, or what should the SlingHttpServletRequest should include):

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/co....


Thank you!