com.atlassian.confluence.plugins.dailysummary.content
Class SummaryEmailPanelData.Builder

java.lang.Object
  extended by com.atlassian.confluence.plugins.dailysummary.content.SummaryEmailPanelData.Builder
Enclosing class:
SummaryEmailPanelData

public static class SummaryEmailPanelData.Builder
extends Object

Builder class for the immutable SummaryEmailPanelData


Constructor Summary
SummaryEmailPanelData.Builder(String webPanelKey)
           
 
Method Summary
 SummaryEmailPanelData.Builder addImageDataSource(DataSource imageDatasource)
          Add image datasources to be attached to the email.
 SummaryEmailPanelData.Builder addImageDataSources(Iterable<DataSource> imageDatasources)
          Add image datasources to be attached to the email.
 SummaryEmailPanelData build()
           
 SummaryEmailPanelData.Builder hasContent(boolean hasContent)
          A flag indicating whether this component has content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryEmailPanelData.Builder

public SummaryEmailPanelData.Builder(String webPanelKey)
Parameters:
webPanelKey - this key should identify the webpanel component that this is data for.
Method Detail

build

public SummaryEmailPanelData build()

hasContent

public SummaryEmailPanelData.Builder hasContent(boolean hasContent)
A flag indicating whether this component has content. It is used by the summary email to determine if the email needs to be sent. If no plugin reports that they have content, no email will be sent.

Parameters:
hasContent -
Returns:
this

addImageDataSources

public SummaryEmailPanelData.Builder addImageDataSources(Iterable<DataSource> imageDatasources)
Add image datasources to be attached to the email.

Parameters:
imageDatasource -
Returns:
this

addImageDataSource

public SummaryEmailPanelData.Builder addImageDataSource(DataSource imageDatasource)
Add image datasources to be attached to the email.

Parameters:
imageDatasource -
Returns:
this


Copyright © 2003-2012 Atlassian. All Rights Reserved.