public class ReportComponent extends DefaultComponent implements ReportService
ReportService
interface. Mainly encapsulate NXQL queries.Modifier and Type | Field and Description |
---|---|
static String |
BIRT_REPORTS_CONTAINER_PATH |
protected static org.apache.commons.logging.Log |
log |
lastModified
Constructor and Description |
---|
ReportComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
List<ReportModel> |
getReportAvailableModels(CoreSession session) |
ReportInstance |
getReportInstanceByKey(CoreSession session,
String key) |
List<ReportInstance> |
getReportInstanceByModelName(CoreSession session,
String reportModelName) |
ReportModel |
getReportModelByName(CoreSession session,
String reportModelName) |
String |
getReportModelsContainer() |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
protected static final org.apache.commons.logging.Log log
public static final String BIRT_REPORTS_CONTAINER_PATH
public ReportComponent()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic List<ReportInstance> getReportInstanceByModelName(CoreSession session, String reportModelName)
getReportInstanceByModelName
in interface ReportService
public ReportInstance getReportInstanceByKey(CoreSession session, String key)
getReportInstanceByKey
in interface ReportService
public String getReportModelsContainer()
getReportModelsContainer
in interface ReportService
public ReportModel getReportModelByName(CoreSession session, String reportModelName)
getReportModelByName
in interface ReportService
public List<ReportModel> getReportAvailableModels(CoreSession session)
getReportAvailableModels
in interface ReportService
Copyright © 2015 Nuxeo SA. All rights reserved.