Package com.day.cq.reporting
Interface Report
public interface Report
This interface represents a report (for serverside calculation) as a whole.
-
Method Summary
Modifier and TypeMethodDescriptionCreates the report and returns the data as a result.voidcleanup()Cleans up the report after using it.intReturns the number of columns.Creates an iterator for iterating over the report's columns.Gets the root path of this report (for querying the data).Creates an iterator for iterating over the columns to be used for snapshot data.booleanReturns if any group is grouped.
-
Method Details
-
calculate
Creates the report and returns the data as a result.- Returns:
- The report's data
- Throws:
RepositoryException- if calculating data fails due to a repository error
-
getColumnIterator
Creates an iterator for iterating over the report's columns.- Returns:
- Column iterator
-
getColumnCnt
int getColumnCnt()Returns the number of columns.- Returns:
- Number of columns
-
hasGroupedColumns
boolean hasGroupedColumns()Returns if any group is grouped.- Returns:
trueif any column is grouped
-
getSnapshotDataCols
Creates an iterator for iterating over the columns to be used for snapshot data.- Returns:
- Snapshot column iterator
-
getDataRoot
String getDataRoot()Gets the root path of this report (for querying the data).- Returns:
- Root path of this report;
nullif no root path is specified for the report
-
cleanup
void cleanup()Cleans up the report after using it.
-