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

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


    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 =
        (DataSourceProviderBundleWriteHandler) 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 =
        (CubeFileProviderBundleWriteHandler) 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

      {
        writeKettleRepositoryProducer(xmlWriter, queryName, (KettleTransFromRepositoryProducer) prod);
      }
      else
      {
        throw new BundleWriterException("Failed to write Kettle-Producer: Unknown implementation.");
      }
    }
    xmlWriter.writeCloseTag();
    xmlWriter.close();
    return fileName;
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

    {
      writeConnectionInfo(xmlWriter, hqlDataFactory.getSessionProvider());
    }
    catch (ReportWriterException e)
    {
      throw new BundleWriterException("Failed to write connection info", e);
    }

    final String[] queryNames = hqlDataFactory.getQueryNames();
    for (int i = 0; i < queryNames.length; i++)
    {
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

    final String configKey = Olap4JDataFactoryModule.CONNECTION_WRITER_PREFIX + connectionProvider.getClass().getName();
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final String value = globalConfig.getConfigProperty(configKey);
    if (value == null)
    {
      throw new BundleWriterException
          ("Unable to find writer for connection info of type " + connectionProvider.getClass());
    }

    final OlapConnectionProviderWriteHandler handler =
        (OlapConnectionProviderWriteHandler) ObjectUtilities.loadAndInstantiate
View Full Code Here

                    final XmlWriter xmlWriter,
                    final CubeFileProvider cubeFileProvider) throws IOException, BundleWriterException
  {
    if (cubeFileProvider instanceof DefaultCubeFileProvider == false)
    {
      throw new BundleWriterException("This is not a DefaultCubeFileProvider");
    }
    write(xmlWriter, (DefaultCubeFileProvider) cubeFileProvider);
  }
View Full Code Here

    {
      throw new NullPointerException();
    }
    if (element instanceof MasterReport)
    {
      throw new BundleWriterException();
    }
    if (element instanceof SubReport)
    {
      throw new BundleWriterException();
    }

    String name = element.getMetaData().getName();
    String namespace = element.getMetaData().getNamespace();
View Full Code Here

        writePreProcessor(xmlWriter, processor);
        xmlWriter.writeCloseTag();
      }
      catch (IntrospectionException e)
      {
        throw new BundleWriterException("Failed to write pre-processor", e);
      }
      catch (BeanException e)
      {
        throw new BundleWriterException("Failed to write pre-processor", e);
      }
    }
    if (ExpressionWriterUtility.isElementLayoutExpressionActive(state))
    {
      xmlWriter.writeTag(BundleNamespaces.LAYOUT, "layout-processors", XmlWriterSupport.OPEN);
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.