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

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


    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.ms-excel"));
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

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();
      final boolean alphaChannel = "true".equals(configuration.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.AlphaChannel"));
      final String mimeType = computeMimeType(configuration);
      final float quality = ParserUtil.parseFloat(configuration.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.Quality"), 0.9f);


      final GraphicsOutputProcessor outputProcessor = new GraphicsOutputProcessor
          (new StreamGraphicsOutputProcessorMetaData(configuration), masterReport.getResourceManager());
View Full Code Here

  }

  public String getReportMimeType()
  {
    final MasterReport masterReport = getReport();
    final Configuration configuration = masterReport.getConfiguration();
    return computeMimeType(configuration);
  }
View Full Code Here

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

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

      final HtmlPrinter printer = new AllItemsHtmlPrinter(masterReport.getResourceManager());
      printer.setContentWriter(getBodyContentLocation(), getBodyNameGenerator());
      printer.setDataWriter(getBulkLocation(), getBulkNameGenerator());
      printer.setUrlRewriter(computeUrlRewriter());
View Full Code Here

    if (connectionProvider == null)
    {
      throw new NullPointerException();
    }
    this.connectionProvider = connectionProvider;
    final Configuration globalConfig =
        ClassicEngineBoot.getInstance().getGlobalConfig();
    this.labelMapping = "Label".equals(globalConfig.getConfigProperty //$NON-NLS-1$
        (SimpleSQLReportDataFactory.COLUMN_NAME_MAPPING_KEY, "Label")); //$NON-NLS-1$
    this.configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
  }
View Full Code Here

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

      final HtmlPrinter printer = new AllItemsHtmlPrinter(masterReport.getResourceManager());
      printer.setContentWriter(getBodyContentLocation(), getBodyNameGenerator());
      printer.setDataWriter(getBulkLocation(), getBulkNameGenerator());
      printer.setUrlRewriter(computeUrlRewriter());
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 FlowCSVOutputProcessor outputProcessor =
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

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.