Class PerformanceReport
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.PerformanceReport
-
public class PerformanceReport extends java.lang.ObjectThePerformanceReportcontains 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 aPerformanceReportItemjava.util.List<PerformanceReportItem>getItems()Returns a list ofPerformanceReportItemPerformanceReportItemgetTotalPerformance()Returns the total performance for all experience contained in this reportjava.lang.StringgetWinningExperienceName()Retrieves the name of the winning experience or an empty string if there is no winning experience in the reportvoidsetWinningExperienceName(java.lang.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 java.util.List<PerformanceReportItem> getItems()
Returns a list ofPerformanceReportItem- Returns:
- an unmodifiable view over the experiences contained in this report
-
setWinningExperienceName
public void setWinningExperienceName(java.lang.String experienceName)
Sets the winning experience local id.- Parameters:
experienceName- aStringvalue representing the name of the winning experience
-
getWinningExperienceName
public java.lang.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
-
-