@Component(value="report_ReportingWizardApi") public class ReportingWizardBean extends java.lang.Object implements ReportingWizardApi
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT_BAND_DEFINITION_NAME |
NAME
Constructor and Description |
---|
ReportingWizardBean() |
Modifier and Type | Method and Description |
---|---|
ReportRegion |
createReportRegionByView(EntityTree entityTree,
boolean isTabulated,
com.haulmont.cuba.core.global.View view,
java.lang.String collectionPropertyName)
Create report region using view and whole entity model as entityTree param
For creating tabulated report region for collection of entity (when used # in alias of dataset) view and
parameters must to be non-nul values because otherwise necessary ReportRegion.regionPropertiesRootNode field value
will be null.
|
com.haulmont.cuba.core.global.View |
createViewByReportRegions(EntityTreeNode entityTreeRootNode,
java.util.List<ReportRegion> reportRegions) |
boolean |
isEntityAllowedForReportWizard(com.haulmont.chile.core.model.MetaClass effectiveMetaClass) |
boolean |
isPropertyAllowedForReportWizard(com.haulmont.chile.core.model.MetaClass metaClass,
com.haulmont.chile.core.model.MetaProperty metaProperty) |
Report |
toReport(ReportData reportData,
boolean temporary) |
public static final java.lang.String ROOT_BAND_DEFINITION_NAME
public Report toReport(ReportData reportData, boolean temporary)
toReport
in interface ReportingWizardApi
public com.haulmont.cuba.core.global.View createViewByReportRegions(EntityTreeNode entityTreeRootNode, java.util.List<ReportRegion> reportRegions)
createViewByReportRegions
in interface ReportingWizardApi
public ReportRegion createReportRegionByView(EntityTree entityTree, boolean isTabulated, @Nullable com.haulmont.cuba.core.global.View view, @Nullable java.lang.String collectionPropertyName)
createReportRegionByView
in interface ReportingWizardApi
entityTree
- the whole entity tree modelisTabulated
- determine which region will be createdview
- by that view region will be createdcollectionPropertyName
- must to be non-null for a tabulated regionpublic boolean isEntityAllowedForReportWizard(com.haulmont.chile.core.model.MetaClass effectiveMetaClass)
isEntityAllowedForReportWizard
in interface ReportingWizardApi
public boolean isPropertyAllowedForReportWizard(com.haulmont.chile.core.model.MetaClass metaClass, com.haulmont.chile.core.model.MetaProperty metaProperty)
isPropertyAllowedForReportWizard
in interface ReportingWizardApi