public abstract class AbstractLikeEventRenderContextProvider extends com.atlassian.confluence.notifications.RenderContextProviderTemplate<LikePayload>
Constructor and Description |
---|
AbstractLikeEventRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder,
UserAccessor userAccessor,
FollowManager followManager,
LocaleManager localeManager) |
Modifier and Type | Method and 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) |
create, createMessageMetadata
getPayloadType, verifyPayloadMatches
public AbstractLikeEventRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder, UserAccessor userAccessor, FollowManager followManager, LocaleManager localeManager)
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)
checkedCreate
in class com.atlassian.confluence.notifications.RenderContextProviderTemplate<LikePayload>
protected abstract Expansion[] getMediumSpecificExpansions(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder)
protected abstract com.atlassian.fugue.Maybe<Map<String,Object>> getMediumSpecificContext(Content content, LikePayload payload, boolean recipientIsAuthor)
content
- the notification contentpayload
- notification payloadCopyright © 2003–2016 Atlassian. All rights reserved.