Interface ReportExecutor
- All Known Implementing Classes:
PathListReportExecutor,QueryReportExecutor
public interface ReportExecutor
Interface for report execution classes to implement. These should be Sling
Models which are adaptable from a SlingHttpServletRequest and return a page
of results based on the supplied configuration.
-
Method Summary
Modifier and TypeMethodDescriptionReturn all of the results based on the request parameters and supplied configuration settings in the configuration resource.Gets the details for this report executorThe parameters used to execute the report.getParamPatternMap(org.apache.sling.api.SlingHttpServletRequest request) Return the page of results based on the request parameters and supplied configuration settings in the configuration resource.voidsetConfiguration(org.apache.sling.api.resource.Resource config) Set the resource used to configure this report executor.voidsetPage(int page) This method will be called by the ReportRunner to set the current results page.
-
Method Details
-
getDetails
Gets the details for this report executor- Returns:
- the details
- Throws:
ReportException
-
getParameters
The parameters used to execute the report.- Returns:
- the report parameters as a string
- Throws:
ReportException
-
getAllResults
Return all of the results based on the request parameters and supplied configuration settings in the configuration resource.- Returns:
- the results
- Throws:
ReportException
-
getResults
Return the page of results based on the request parameters and supplied configuration settings in the configuration resource.- Returns:
- the current page of results
- Throws:
ReportException
-
setConfiguration
void setConfiguration(org.apache.sling.api.resource.Resource config) Set the resource used to configure this report executor.- Parameters:
config- the resource to configure this report executor
-
setPage
void setPage(int page) This method will be called by the ReportRunner to set the current results page.- Parameters:
page- the result page
-
getParamPatternMap
-