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 java.lang.Object

Builder class for the immutable SummaryEmailPanelData


Constructor Summary
SummaryEmailPanelData.Builder(java.lang.String webPanelKey)
           
 
Method Summary
 SummaryEmailPanelData.Builder addImageDataSource(javax.activation.DataSource imageDatasource)
          Add image datasources to be attached to the email.
 SummaryEmailPanelData.Builder addImageDataSources(java.lang.Iterable<javax.activation.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(java.lang.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(java.lang.Iterable<javax.activation.DataSource> imageDatasources)
Add image datasources to be attached to the email.

Parameters:
imageDatasource -
Returns:
this

addImageDataSource

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

Parameters:
imageDatasource -
Returns:
this


Copyright © 2003-2014 Atlassian. All Rights Reserved.