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