Class LikeEventEmailRenderContextProvider
- java.lang.Object
-
- com.atlassian.confluence.notifications.ParticipantTemplate<PAYLOAD>
-
- com.atlassian.confluence.notifications.RenderContextProviderTemplate<LikePayload>
-
- com.atlassian.confluence.plugins.like.notifications.AbstractLikeEventRenderContextProvider
-
- com.atlassian.confluence.plugins.like.notifications.LikeEventEmailRenderContextProvider
-
- All Implemented Interfaces:
com.atlassian.confluence.notifications.Participant<LikePayload>
,com.atlassian.confluence.notifications.RenderContextProvider<LikePayload>
public class LikeEventEmailRenderContextProvider extends AbstractLikeEventRenderContextProvider
-
-
Constructor Summary
Constructors Constructor Description LikeEventEmailRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder, UserAccessor userAccessor, FollowManager followManager, Excerpter excerpter, LocaleManager localeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.atlassian.fugue.Maybe<Map<String,Object>>
getMediumSpecificContext(Content content, LikePayload payload, boolean recipientIsAuthor)
All the medium-specific context items (e.g.protected Expansion[]
getMediumSpecificExpansions(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder)
-
Methods inherited from class com.atlassian.confluence.plugins.like.notifications.AbstractLikeEventRenderContextProvider
checkedCreate
-
Methods inherited from class com.atlassian.confluence.notifications.RenderContextProviderTemplate
create, createMessageMetadata
-
Methods inherited from class com.atlassian.confluence.notifications.ParticipantTemplate
getPayloadType, verifyPayloadMatches
-
-
-
-
Constructor Detail
-
LikeEventEmailRenderContextProvider
public LikeEventEmailRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder, UserAccessor userAccessor, FollowManager followManager, Excerpter excerpter, LocaleManager localeManager)
-
-
Method Detail
-
getMediumSpecificExpansions
protected Expansion[] getMediumSpecificExpansions(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder)
- Specified by:
getMediumSpecificExpansions
in classAbstractLikeEventRenderContextProvider
- Returns:
- the content expansions required for the notification medium
-
getMediumSpecificContext
protected com.atlassian.fugue.Maybe<Map<String,Object>> getMediumSpecificContext(Content content, LikePayload payload, boolean recipientIsAuthor)
Description copied from class:AbstractLikeEventRenderContextProvider
All the medium-specific context items (e.g. for email or hipchat)- Specified by:
getMediumSpecificContext
in classAbstractLikeEventRenderContextProvider
- Parameters:
content
- the notification contentpayload
- notification payload- Returns:
- a Maybe either containing the medium-specific sub-context or a MaybeNot if a problem occurs
-
-