Class PerformanceReport
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.PerformanceReport
-
public class PerformanceReport extends java.lang.Object
ThePerformanceReport
contains 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 void
addItem(PerformanceReportItem item)
Adds aPerformanceReportItem
java.util.List<PerformanceReportItem>
getItems()
Returns a list ofPerformanceReportItem
PerformanceReportItem
getTotalPerformance()
Returns the total performance for all experience contained in this reportjava.lang.String
getWinningExperienceName()
Retrieves the name of the winning experience or an empty string if there is no winning experience in the reportvoid
setWinningExperienceName(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
- aString
value 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
name
field will always be set to null- Returns:
- the total performance for all experience contained in this report
-
-