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 |
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, unregisterContribution, unregisterExtension
public static final String BIRT_REPORTS_CONTAINER_PATH
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic List<ReportInstance> getReportInstanceByModelName(CoreSession session, String reportModelName) throws ClientException
getReportInstanceByModelName
in interface ReportService
ClientException
public ReportInstance getReportInstanceByKey(CoreSession session, String key) throws ClientException
getReportInstanceByKey
in interface ReportService
ClientException
public String getReportModelsContainer()
getReportModelsContainer
in interface ReportService
public ReportModel getReportModelByName(CoreSession session, String reportModelName) throws ClientException
getReportModelByName
in interface ReportService
ClientException
public List<ReportModel> getReportAvailableModels(CoreSession session) throws ClientException
getReportAvailableModels
in interface ReportService
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.