Class PerformanceReport
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.PerformanceReport
-
public class PerformanceReport extends Object
ThePerformanceReportcontains performance reporting data about a single campaign
-
-
Constructor Summary
Constructors Constructor Description PerformanceReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(PerformanceReportItem item)Adds aPerformanceReportItemList<PerformanceReportItem>getItems()Returns a list ofPerformanceReportItemPerformanceReportItemgetTotalPerformance()Returns the total performance for all experience contained in this reportStringgetWinningExperienceName()Retrieves the name of the winning experience or an empty string if there is no winning experience in the reportvoidsetWinningExperienceName(String experienceName)Sets the winning experience local id.
-
-
-
Method Detail
-
addItem
public void addItem(PerformanceReportItem item)
Adds aPerformanceReportItem- Parameters:
item- the item instance to add, must not benull
-
getItems
public List<PerformanceReportItem> getItems()
Returns a list ofPerformanceReportItem- Returns:
- an unmodifiable view over the experiences contained in this report
-
setWinningExperienceName
public void setWinningExperienceName(String experienceName)
Sets the winning experience local id.- Parameters:
experienceName- aStringvalue representing the name of the winning experience
-
getWinningExperienceName
public String getWinningExperienceName()
Retrieves the name of the winning experience or an empty string if there is no winning experience in the report- Returns:
- a string representation of the winning experience
-
getTotalPerformance
public PerformanceReportItem getTotalPerformance()
Returns the total performance for all experience contained in this reportThe
namefield will always be set to null- Returns:
- the total performance for all experience contained in this report
-
-