Package org.pentaho.reporting.libraries.base.config

Examples of org.pentaho.reporting.libraries.base.config.Configuration


  }

  public static void createPlainText(final MasterReport report,
                                     final OutputStream outputStream) throws ReportProcessingException
  {
    final Configuration configuration = report.getConfiguration();
    final String cpiText = configuration.getConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.CharsPerInch");
    final String lpiText = configuration.getConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.LinesPerInch");
    createPlainText(report, outputStream, ParserUtil.parseInt(cpiText, 10), ParserUtil.parseInt(lpiText, 6), null);
  }
View Full Code Here


      this.messages = new Messages(Locale.getDefault(), PdfExportPlugin.BASE_RESOURCE_CLASS,
          ObjectUtilities.getClassLoader(PdfExportPlugin.class));
    }

    this.progressListener = progressListener;
    final Configuration config = report.getConfiguration();
    final String targetFileName = config.getConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.gui.pdf.TargetFileName"); //$NON-NLS-1$
    if (targetFileName == null)
    {
      throw new NullPointerException("TargetFileName must be set in the configuration.");
    }
View Full Code Here

    catch (NamingException e)
    {
      // ignored ..
    }

    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final Iterator keys = config.findPropertyKeys(JNDI_PREFIX_CONFIGURATION);
    while (keys.hasNext())
    {
      final String key = (String) keys.next();
      final String prefix = config.getConfigProperty(key);
      try
      {
        final Object o = initialContext.lookup(prefix + connectionPath);
        if (o instanceof DataSource)
        {
View Full Code Here

  public static synchronized SubReportReadHandlerFactory getInstance()
  {
    if (readHandlerFactory == null)
    {
      readHandlerFactory = new SubReportReadHandlerFactory();
      final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
      final Iterator propertyKeys = config.findPropertyKeys(PREFIX_SELECTOR);
      while (propertyKeys.hasNext())
      {
        final String key = (String) propertyKeys.next();
        final String value = config.getConfigProperty(key);
        if (value != null)
        {
          readHandlerFactory.configure(config, value);
        }
      }
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/xml"));
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/rtf"));
View Full Code Here

   *
   * @return the resolution defined in the report-configuration.
   */
  private float getDeviceScale()
  {
    final Configuration config = getReportConfiguration();
    final String resolution = config.getConfigProperty(
        "org.pentaho.reporting.engine.classic.core.layout.DeviceResolution");
    if (resolution == null)
    {
      return 1;
    }
View Full Code Here

  public static synchronized ReportElementReadHandlerFactory getInstance()
  {
    if (readHandlerFactory == null)
    {
      readHandlerFactory = new ReportElementReadHandlerFactory();
      final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
      final Iterator propertyKeys = config.findPropertyKeys(PREFIX_SELECTOR);
      while (propertyKeys.hasNext())
      {
        final String key = (String) propertyKeys.next();
        final String value = config.getConfigProperty(key);
        if (value != null)
        {
          readHandlerFactory.configure(config, value);
        }
      }
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/csv"));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.config.Configuration

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.