public void performUpdate( final MasterReport report ) { version = report.getCompatibilityLevel(); if ( version == -1 ) { return; } super.inspect( report ); }
public void performUpdate( final MasterReport report ) { final Integer versionRaw = report.getCompatibilityLevel(); if ( versionRaw == null ) { version = -1; } else { version = versionRaw.intValue(); } if ( version == -1 ) { return; } performUpdateInternal( report ); report.setCompatibilityLevel( null ); }
public void performUpdate( final SubReport report ) { final ReportDefinition reportDefinition = report.getMasterReport(); if ( reportDefinition == null ) { return; } final MasterReport masterReport = (MasterReport) reportDefinition; version = masterReport.getCompatibilityLevel(); if ( version == -1 ) { return; } super.inspect( report ); }
public void performUpdate( final SubReport report ) { final ReportDefinition reportDefinition = report.getMasterReport(); if ( reportDefinition == null ) { return; } final MasterReport masterReport = (MasterReport) reportDefinition; final Integer versionRaw = masterReport.getCompatibilityLevel(); if ( versionRaw == null ) { version = -1; } else { version = versionRaw.intValue(); } if ( version == -1 ) { return; } performUpdateInternal( report ); }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { // Now, after all the user-defined and global files have been parsed, finally override whatever had been // defined in these files with the contents from the bundle. This will merge all the settings from the bundle // with the global definitions but grants the local settings higer preference parseLocalFiles(); final Object definedCompatLevel = report.getCompatibilityLevel(); if ( definedCompatLevel instanceof Integer == false ) { final Object specRaw = getRootHandler().getHelperObject( PRPT_SPEC_VERSION ); final Integer x = ClassicEngineBoot.computeVersionId( 999, 999, 999 ); if ( specRaw instanceof Integer && x.equals( specRaw ) == false ) { report.setCompatibilityLevel( (Integer) specRaw ); } else { report.setCompatibilityLevel( x ); } } }
public DefaultProcessingContext( final MasterReport report, final OutputProcessorMetaData metaData ) throws ReportProcessingException { this( metaData, report.getResourceBundleFactory(), report.getConfiguration(), report.getResourceManager(), report .getContentBase(), report.getBundle().getMetaData(), report.getReportEnvironment(), -1 ); final Integer comLev = report.getCompatibilityLevel(); if ( comLev != null ) { compatibilityLevel = comLev; } }
protected DefaultProcessingContext createProcessingContext() throws ReportProcessingException { final OutputProcessorMetaData metaData = getOutputProcessorMetaData(); final MasterReport report = getReport(); final DocumentMetaData documentMetaData; final DocumentBundle bundle = report.getBundle(); if ( bundle != null ) { documentMetaData = bundle.getMetaData(); } else { documentMetaData = new MemoryDocumentMetaData(); } final Integer compatibilityLevel = report.getCompatibilityLevel(); final int cLevel; if ( compatibilityLevel == null ) { cLevel = -1; } else { cLevel = compatibilityLevel; } return new DefaultProcessingContext( metaData, report.getResourceBundleFactory(), report.getConfiguration(), report .getResourceManager(), report.getContentBase(), documentMetaData, report.getReportEnvironment(), cLevel ); }
private static Configuration wrapForCompatibility( final MasterReport processingContext ) { final Integer compatibilityLevel = processingContext.getCompatibilityLevel(); if ( compatibilityLevel == null || compatibilityLevel < 0 ) { return processingContext.getConfiguration(); } if ( compatibilityLevel < ClassicEngineBoot.computeVersionId( 3, 999, 999 ) ) { // enable strict compatibility mode for reports older than 4.0. final HierarchicalConfiguration config = new HierarchicalConfiguration( processingContext.getConfiguration() ); config.setConfigProperty( "org.pentaho.reporting.engine.classic.core.legacy.WrapProgressMarkerInSection", "true" ); config.setConfigProperty( "org.pentaho.reporting.engine.classic.core.legacy.StrictCompatibility", "true" ); return config; } // this is a trunk or 4.0 or newer report. return processingContext.getConfiguration(); }
.equals( configuration .getConfigProperty( "org.pentaho.reporting.engine.classic.core.designtime.PreserveOriginalCompatibilitySettingInTrunk" ) ) ) { final Integer reportCompatibility = masterReport.getCompatibilityLevel(); if ( reportCompatibility != null && reportCompatibility > 0 ) { final int patch = reportCompatibility % 1000;