Class SocialDigestLinePlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.commons.digest.plugin.DigestLinePlugin
io.meeds.social.notification.digest.SocialDigestLinePlugin
All Implemented Interfaces:
io.meeds.commons.digest.plugin.DigestLineProvider, org.exoplatform.container.component.ComponentPlugin

public class SocialDigestLinePlugin extends io.meeds.commons.digest.plugin.DigestLinePlugin
The digest email lines of the notification types social owns: the space life (invitations, join requests) and the feed (posts in my spaces, comments on what I watch). Everything is read fresh from the stored ids: a space or an activity that no longer exists gives no line.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    SocialDigestLinePlugin(org.exoplatform.container.xml.InitParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.meeds.commons.digest.model.DigestLine
    buildLine(io.meeds.commons.digest.model.DigestItem item, io.meeds.commons.digest.plugin.DigestLineContext context)
     
    protected String
    redirectUrl(String type, String objectId)
    The same redirection links as the instant notification emails, resolved by the platform at click time
    protected String
    spaceMembersUrl(org.exoplatform.social.core.space.model.Space space)
    The members page of a space, /portal/s/{id}/members
    protected String
    spaceUrl(org.exoplatform.social.core.space.model.Space space)
    The space page, /portal/s/{id}

    Methods inherited from class io.meeds.commons.digest.plugin.DigestLinePlugin

    getPluginIds

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SocialDigestLinePlugin

      public SocialDigestLinePlugin(org.exoplatform.container.xml.InitParams params)
  • Method Details

    • buildLine

      public io.meeds.commons.digest.model.DigestLine buildLine(io.meeds.commons.digest.model.DigestItem item, io.meeds.commons.digest.plugin.DigestLineContext context)
    • redirectUrl

      protected String redirectUrl(String type, String objectId)
      The same redirection links as the instant notification emails, resolved by the platform at click time
    • spaceUrl

      protected String spaceUrl(org.exoplatform.social.core.space.model.Space space)
      The space page, /portal/s/{id}
    • spaceMembersUrl

      protected String spaceMembersUrl(org.exoplatform.social.core.space.model.Space space)
      The members page of a space, /portal/s/{id}/members