com.atlassian.confluence.plugins.like.notifications
Class LikeEventEmailRenderContextProvider

java.lang.Object
  extended by com.atlassian.confluence.notifications.ParticipantTemplate<PAYLOAD>
      extended by com.atlassian.confluence.notifications.RenderContextProviderTemplate<LikePayload>
          extended by com.atlassian.confluence.plugins.like.notifications.AbstractLikeEventRenderContextProvider
              extended by 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


Field Summary
 
Fields inherited from class com.atlassian.confluence.notifications.ParticipantTemplate
payloadType
 
Constructor Summary
LikeEventEmailRenderContextProvider(com.atlassian.confluence.notifications.CachedContentFinder cachedContentFinder, UserAccessor userAccessor, FollowManager followManager, Excerpter excerpter, LocaleManager localeManager)
           
 
Method Summary
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
 
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
 

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 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 content
payload - 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.