Package org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException


      xmlWriter.writeTag(WizardCoreModule.NAMESPACE, "group-definition", attList, XmlWriter.CLOSE);

    }
    catch (BeanException e)
    {
      throw new BundleWriterException("Failed to write bundle", e);
    }

  }
View Full Code Here


      xmlWriter.close();
      return wizardFileState.getFileName();
    }
    catch (final ReportProcessingException e)
    {
      throw new BundleWriterException("Failed to load wizard-specifiation",e);
    }
  }
View Full Code Here

                                            final String queryName,
                                            final KettleTransformationProducer producer) throws IOException, BundleWriterException
  {
    if (producer instanceof EmbeddedKettleTransformationProducer == false)
    {
      throw new BundleWriterException
          ("Invalid object type registered for handler of " + EmbeddedKettleTransformationProducer.class.getSimpleName());
    }
    EmbeddedKettleTransformationProducer fileProducer = (EmbeddedKettleTransformationProducer) producer;

View Full Code Here

                                            final String queryName,
                                            final KettleTransformationProducer producer) throws IOException, BundleWriterException
  {
    if (producer instanceof KettleTransFromFileProducer == false)
    {
      throw new BundleWriterException
          ("Invalid object type registered for handler of " + KettleTransFromFileProducer.class.getSimpleName());
    }
    KettleTransFromFileProducer fileProducer = (KettleTransFromFileProducer) producer;

    final AttributeList coreAttrs = new AttributeList();
View Full Code Here

    final String configKey = MondrianDataFactoryModule.DATASOURCE_BUNDLEWRITER_PREFIX + connectionProvider.getClass().getName();
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final String value = globalConfig.getConfigProperty(configKey);
    if (value == null)
    {
      throw new BundleWriterException("Unable to locate writer for " + connectionProvider.getClass().getName());
    }
    final DataSourceProviderBundleWriteHandler handler = ObjectUtilities.loadAndInstantiate
            (value, AbstractMDXDataFactoryBundleWriteHandler.class, DataSourceProviderBundleWriteHandler.class);
    if (handler == null)
    {
      throw new BundleWriterException("Invalid write-handler for " + connectionProvider.getClass().getName());
    }
    handler.write(bundle, state, xmlWriter, connectionProvider);
  }
View Full Code Here

    final String configKey = MondrianDataFactoryModule.CUBEFILE_BUNDLEWRITER_PREFIX + cubeFileProvider.getClass().getName();
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final String value = globalConfig.getConfigProperty(configKey);
    if (value == null)
    {
      throw new BundleWriterException("Unable to locate writer for " + cubeFileProvider.getClass().getName());
    }

    final CubeFileProviderBundleWriteHandler handler = ObjectUtilities.loadAndInstantiate
            (value, AbstractMDXDataFactoryWriteHandler.class, CubeFileProviderBundleWriteHandler.class);
    if (handler == null)
    {
      throw new BundleWriterException("Invalid write-handler for " + cubeFileProvider.getClass().getName());
    }
    handler.write(bundle, state, xmlWriter, cubeFileProvider);
  }
View Full Code Here

                    final XmlWriter xmlWriter,
                    final DataSourceProvider dataSourceProvider) throws IOException, BundleWriterException
  {
    if (dataSourceProvider instanceof JndiDataSourceProvider == false)
    {
      throw new BundleWriterException("This is not a JNDI connection");
    }
    write(xmlWriter, (JndiDataSourceProvider) dataSourceProvider);
  }
View Full Code Here

    {
      return new EmdeddedTransformationProducerWriteHandler();
    }
    else
    {
      throw new BundleWriterException("Failed to write Kettle-Producer: Unknown implementation.");
    }

  }
View Full Code Here

                                            final XmlWriter xmlWriter,
                                            final String queryName,
                                            final KettleTransformationProducer producer) throws IOException, BundleWriterException
  {
    if (producer instanceof KettleTransFromRepositoryProducer == false) {
      throw new BundleWriterException
          ("Invalid object type registered for handler of " + KettleTransFromRepositoryProducer.class.getSimpleName());
    }
    KettleTransFromRepositoryProducer repositoryProducer = (KettleTransFromRepositoryProducer) producer;

    final AttributeList coreAttrs = new AttributeList();
View Full Code Here

                    final XmlWriter xmlWriter,
                    final DataSourceProvider dataSourceProvider) throws IOException, BundleWriterException
  {
    if (dataSourceProvider instanceof DriverDataSourceProvider == false)
    {
      throw new BundleWriterException("This is not a Driver connection");
    }
    write(xmlWriter, (DriverDataSourceProvider) dataSourceProvider);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.