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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.commons.digest.model.DigestLinebuildLine(io.meeds.commons.digest.model.DigestItem item, io.meeds.commons.digest.plugin.DigestLineContext context) protected StringredirectUrl(String type, String objectId) The same redirection links as the instant notification emails, resolved by the platform at click timeprotected StringspaceMembersUrl(org.exoplatform.social.core.space.model.Space space) The members page of a space, /portal/s/{id}/membersprotected StringspaceUrl(org.exoplatform.social.core.space.model.Space space) The space page, /portal/s/{id}Methods inherited from class io.meeds.commons.digest.plugin.DigestLinePlugin
getPluginIdsMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
SPACE_INVITATION_PLUGIN
- See Also:
-
REQUEST_JOIN_SPACE_PLUGIN
- See Also:
-
POST_ACTIVITY_SPACE_PLUGIN
- See Also:
-
ACTIVITY_COMMENT_WATCH_PLUGIN
- See Also:
-
-
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
The same redirection links as the instant notification emails, resolved by the platform at click time -
spaceUrl
The space page, /portal/s/{id} -
spaceMembersUrl
The members page of a space, /portal/s/{id}/members
-