Package com.day.cq.reporting
Class AggregateManager
- java.lang.Object
-
- com.day.cq.reporting.AggregateManager
-
public class AggregateManager extends java.lang.Object
This class is used for managing aggregates; mainly for mapping aggregate types to correspondingAggregate
s.
-
-
Constructor Summary
Constructors Constructor Description AggregateManager(Context context)
Creates a new AggregateManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Cleans up the aggregates that were used.void
createForColumn(Column col)
Creates the aggregate for the specified column.Aggregate
getForColumn(Column col)
Gets the aggregate for the specified column.
-
-
-
Constructor Detail
-
AggregateManager
public AggregateManager(Context context)
Creates a new AggregateManager.- Parameters:
context
- The context for creating the report
-
-
Method Detail
-
createForColumn
public void createForColumn(Column col)
Creates the aggregate for the specified column.- Parameters:
col
- The aggregate for the specified column
-
getForColumn
public Aggregate getForColumn(Column col)
Gets the aggregate for the specified column.- Parameters:
col
- The column- Returns:
- The aggregate;
null
if no aggregate is available for the specified column
-
cleanup
public void cleanup()
Cleans up the aggregates that were used.
-
-