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

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


    {
      final ResourceManager manager = documentContext.getResourceManager();

      // Get the configuration file properties for the initial css load
      final Configuration config = LibCssBoot.getInstance().getGlobalConfig();
      Iterator it = config.findPropertyKeys(INITIAL_CSS_PREFIX);
      while (it.hasNext())
      {
        // Get the next initial set of styles to add to the global list of initial styles
        final String key = (String) it.next();
        final String value = config.getConfigProperty(key);
View Full Code Here


  public SequenceRegistry()
  {
    sequences = new ArrayList<SequenceDescription>();
    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final Iterator<String> keys = config.findPropertyKeys(PREFIX);
    while (keys.hasNext())
    {
      final String key = keys.next();
      final String clazz = config.getConfigProperty(key);
      final SequenceDescription sequenceDescription =
View Full Code Here

      logger.trace("Failed to lookup JNDI name", 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
View Full Code Here

    {
      if (converters == null)
      {
        converters = new ArrayList<ScriptValueConverter>();
        final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
        final Iterator propertyKeys = globalConfig.findPropertyKeys
            ("org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.script-value-converters.");
        while (propertyKeys.hasNext())
        {
          final String key = (String) propertyKeys.next();
          final String impl = globalConfig.getConfigProperty(key);
View Full Code Here

  }

  public void testEnvironment() throws Exception
  {
    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final Iterator<String> propertyKeys = config.findPropertyKeys("");
    final ArrayList<String> keys = new ArrayList<String>();
    while (propertyKeys.hasNext())
    {
      keys.add(propertyKeys.next());
    }
View Full Code Here

  public static ActionCategory[] loadCategories(final SwingGuiContext swingGuiContext)
  {
    final ArrayList categories = new ArrayList();
    final Configuration configuration = swingGuiContext.getConfiguration();
    final Iterator keys = configuration.findPropertyKeys(CATEGORY_PREFIX);
    while (keys.hasNext())
    {
      final String enableKey = (String) keys.next();
      if (enableKey.endsWith(".enabled") == false) //$NON-NLS-1$
      {
View Full Code Here

    private String[] getOperators(DefaultFormulaContext defaultContext, final String _kind)
    {
        final ArrayList ops = new ArrayList();
        final Configuration configuration = defaultContext.getConfiguration();
        final Iterator iter = configuration.findPropertyKeys(_kind);
        while (iter.hasNext())
        {
            final String configKey = (String) iter.next();
            if ( configKey.endsWith(".class") == false )
            {
View Full Code Here

    {
      return (DataSchemaDefinition) fromCache.clone();
    }

    final Configuration configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
    final Iterator sources = configuration.findPropertyKeys
        ("org.pentaho.reporting.engine.classic.core.DataSchemaDefinition");

    final DefaultDataSchemaDefinition definition = new DefaultDataSchemaDefinition();

    while (sources.hasNext())
View Full Code Here

    if ("true".equals(configuration.getConfigProperty(ROLE_FILTER_ENABLE_CONFIG_KEY)) == false)
    {
      return role;
    }

    final Iterator staticDenyKeys = configuration.findPropertyKeys(DENY_ROLE_CONFIG_KEY);
    while (staticDenyKeys.hasNext())
    {
      final String key = (String) staticDenyKeys.next();
      final String value = configuration.getConfigProperty(key);
      if (ObjectUtilities.equal(value, role))
View Full Code Here

      {
        return null;
      }
    }

    final Iterator regExpDenyKeys = configuration.findPropertyKeys(DENY_REGEXP_CONFIG_KEY);
    while (regExpDenyKeys.hasNext())
    {
      final String key = (String) regExpDenyKeys.next();
      final String value = configuration.getConfigProperty(key);
      try
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.