public class Context
extends java.lang.Object
Constructor and Description |
---|
Context(SlingRepository repository,
QueryBuilder queryBuilder,
ComponentProvider componentService,
java.util.ResourceBundle resourceBundle,
PathResolvingCache cache,
Session reportSession)
Creates a new context for creating a report.
|
Context(SlingRepository repository,
QueryBuilder queryBuilder,
ComponentProvider componentService,
java.util.ResourceBundle resourceBundle,
PathResolvingCache cache,
java.lang.String reportUserId)
Creates a new context for creating a report.
|
Modifier and Type | Method and Description |
---|---|
AggregateManager |
getAggregateManager()
Gets the aggregate manager to be used.
|
PathResolvingCache |
getCache()
Gets the resolver cache to be used for creating the report.
|
ComponentProvider |
getComponentService()
Gets a provider for report components.
|
Column |
getOverriddenSortColumn()
Gets the overridden sort column of the report.
|
Sorting.Direction |
getOverriddenSortDir()
Gets the overridden sort direction of the report.
|
QueryBuilder |
getQueryBuilder()
Gets the query builder.
|
Session |
getReportSession()
Gets the
Session to execute the report. |
java.lang.String |
getReportUserId()
Gets the user that has to be used to execute the report.
|
SlingRepository |
getRepository()
Gets the repository.
|
java.util.ResourceBundle |
getResourceBundle()
Gets the resource bundle for text retrieval.
|
void |
setOverriddenSortColumn(Column overriddenSortColumn)
Sets the overridden sort column of the report.
|
void |
setOverriddenSortDir(Sorting.Direction overriddenSortDir)
Sets the overridden sort direction of the report.
|
public Context(SlingRepository repository, QueryBuilder queryBuilder, ComponentProvider componentService, java.util.ResourceBundle resourceBundle, PathResolvingCache cache, Session reportSession)
repository
- The repositoryqueryBuilder
- The query buildercomponentService
- The provider for report componentsresourceBundle
- The CQ resource bundle for text retrievalcache
- The resolver cache to usereportSession
- The preconfigured session to usepublic Context(SlingRepository repository, QueryBuilder queryBuilder, ComponentProvider componentService, java.util.ResourceBundle resourceBundle, PathResolvingCache cache, java.lang.String reportUserId)
repository
- The repositoryqueryBuilder
- The query buildercomponentService
- The provider for report componentsresourceBundle
- The CQ resource bundle for text retrievalcache
- The resolver cache to usereportUserId
- The ID of the user to be used for accessing the repositorypublic SlingRepository getRepository()
public QueryBuilder getQueryBuilder()
public ComponentProvider getComponentService()
public java.util.ResourceBundle getResourceBundle()
public PathResolvingCache getCache()
public AggregateManager getAggregateManager()
public Session getReportSession()
Session
to execute the report.Session
; null
if a separate session with the
user specified by getReportUserId()
should be usedpublic java.lang.String getReportUserId()
null
if the "preconfigured" session provided
by getReportSession()
should be usedpublic Column getOverriddenSortColumn()
null
to keep the
report's original sorting column(s)public void setOverriddenSortColumn(Column overriddenSortColumn)
overriddenSortColumn
- The overridden sort colummn of the report;
null
to keep the report's original sorting
column(s)public Sorting.Direction getOverriddenSortDir()
null
to keep the
report's original sorting directionpublic void setOverriddenSortDir(Sorting.Direction overriddenSortDir)
overriddenSortDir
- The overridden direction of the report; null
to keep the report's original sorting directionCopyright © 2010 - 2020 Adobe. All Rights Reserved