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

Examples of org.pentaho.reporting.libraries.base.config.Configuration.findPropertyKeys()


        throw new ReportDataFactoryException("Unable to match reg-exp role filter:", pe);
      }
    }

    boolean hasAccept = false;
    final Iterator staticAcceptKeys = configuration.findPropertyKeys(ACCEPT_ROLES_CONFIG_KEY);
    while (staticAcceptKeys.hasNext())
    {
      hasAccept = true;
      final String key = (String) staticAcceptKeys.next();
      final String value = configuration.getConfigProperty(key);
View Full Code Here


      {
        return role;
      }
    }

    final Iterator regExpAcceptKeys = configuration.findPropertyKeys(ACCEPT_REGEXP_CONFIG_KEY);
    while (regExpAcceptKeys.hasNext())
    {
      hasAccept = true;
      final String key = (String) regExpAcceptKeys.next();
      final String value = configuration.getConfigProperty(key);
View Full Code Here

  private void preComputeEnvironmentMapping()
  {
    if (cachedEnvironmentMapping == null)
    {
      final Configuration configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      final Iterator propertyKeys = configuration.findPropertyKeys(ENV_MAPPING_KEY_PREFIX);
      final LinkedHashMap<String,String> names = new LinkedHashMap<String,String>();
      while (propertyKeys.hasNext())
      {
        final String key = (String) propertyKeys.next();
        final String value = configuration.getConfigProperty(key);
View Full Code Here

  private void registerDefaults()
  {
    final Configuration config = LibFontBoot.getInstance().getGlobalConfig();

    final Iterator encodings = config.findPropertyKeys("org.pentaho.reporting.libraries.fonts.encoding.manual.");
    while (encodings.hasNext())
    {
      final String key = (String) encodings.next();
      final String encodingClass = config.getConfigProperty(key);
      final Object maybeEncoding = ObjectUtilities.loadAndInstantiate
View Full Code Here

        //Log.debug ("Manual mapping added. " + name);
        encodingsMapping.put(normalizeEncodingName(name), encodingClass);
      }
    }

    final Iterator generateDirs = config.findPropertyKeys("org.pentaho.reporting.libraries.fonts.encoding.generated.");
    while (generateDirs.hasNext())
    {
      final String key = (String) generateDirs.next();
      final String dataLocation = config.getConfigProperty(key);
      try
View Full Code Here

        // ignore that key, it is behaving badly ..
        e.printStackTrace();
      }
    }

    final Iterator aliasesIt = config.findPropertyKeys
            (ENCODING_ALIAS_PREFIX);
    while (aliasesIt.hasNext())
    {
      final String key = (String) aliasesIt.next();
      final String alias = key.substring(ENCODING_ALIAS_PREFIX.length());
View Full Code Here

        ("org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.role-filter.enable")) == false)
    {
      return role;
    }

    final Iterator staticDenyKeys = configuration.findPropertyKeys
        ("org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.role-filter.static.deny");
    while (staticDenyKeys.hasNext())
    {
      final String key = (String) staticDenyKeys.next();
      final String value = configuration.getConfigProperty(key);
View Full Code Here

      {
        return null;
      }
    }

    final Iterator regExpDenyKeys = configuration.findPropertyKeys
        ("org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.role-filter.reg-exp.deny");
    while (regExpDenyKeys.hasNext())
    {
      final String key = (String) regExpDenyKeys.next();
      final String value = configuration.getConfigProperty(key);
View Full Code Here

        throw new ReportDataFactoryException("Unable to match reg-exp role filter:", pe);
      }
    }

    boolean hasAccept = false;
    final Iterator staticAcceptKeys = configuration.findPropertyKeys
        ("org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.role-filter.static.accept");
    while (staticAcceptKeys.hasNext())
    {
      hasAccept = true;
      final String key = (String) staticAcceptKeys.next();
View Full Code Here

      {
        return role;
      }
    }

    final Iterator regExpAcceptKeys = configuration.findPropertyKeys
        ("org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.role-filter.reg-exp.accept");
    while (regExpAcceptKeys.hasNext())
    {
      hasAccept = true;
      final String key = (String) regExpAcceptKeys.next();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.