com.atlassian.confluence.plugins.like.notifications
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
Fields inherited from class com.atlassian.confluence.notifications.ParticipantTemplate |
payloadType |
Methods inherited from class com.atlassian.confluence.notifications.RenderContextProviderTemplate |
create, createMessageMetadata |
Methods inherited from class com.atlassian.confluence.notifications.ParticipantTemplate |
getPayloadType, verifyPayloadMatches |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.notifications.Participant |
getPayloadType |
LikeEventEmailRenderContextProvider
public LikeEventEmailRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder,
UserAccessor userAccessor,
FollowManager followManager,
Excerpter excerpter,
LocaleManager localeManager)
getMediumSpecificExpansions
protected Expansion[] getMediumSpecificExpansions(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder)
- Specified by:
getMediumSpecificExpansions
in class AbstractLikeEventRenderContextProvider
- 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 class AbstractLikeEventRenderContextProvider
- Parameters:
content
- the notification contentpayload
- notification payload
- Returns:
- a Maybe either containing the medium-specific sub-context or a MaybeNot if a problem occurs
Copyright © 2003–2015 Atlassian. All rights reserved.