Package org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base

Examples of org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage


    try
    {
      final boolean fullStorageEnabled = isFullInputStorageEnabled(reportConfiguration);
      final Configuration dialogContents = grabDialogContents(fullStorageEnabled);
      final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
      storage.store(configPath, dialogContents);
    }
    catch (ConfigStoreException cse)
    {
      AbstractExportDialog.logger.debug(messages.getString("AbstractExportDialog.DEBUG_CANT_STORE_DEFAULTS",
          String.valueOf(getClass()))); //$NON-NLS-1$//$NON-NLS-2$
View Full Code Here


  private Configuration loadFromConfigStore(final MasterReport reportJob,
                                            final Configuration defaultConfig)
  {
    final String configPath = ConfigFactory.encodePath(
        reportJob.getTitle() + getConfigurationSuffix());
    final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
    try
    {
      return storage.load(configPath, defaultConfig);
    }
    catch (Exception cse)
    {
      AbstractExportDialog.logger.debug(messages.getString("AbstractExportDialog.DEBUG_CANT_LOAD_DEFAULTS",
          String.valueOf(getClass()))); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

   * @return the loaded URL or null, if the configuration did not hold an entry.
   */
  protected URL loadFromConfiguration()
  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    if (cs.isAvailable(configPath) == false)
    {
      return null;
    }
    try
    {
      final Configuration p = cs.load(configPath, null);
      final String property = p.getConfigProperty("repository-path");
      if (property == null)
      {
        return null;
      }
View Full Code Here

  }

  protected void storeToConfiguration(final URL url)
  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    try
    {
      final DefaultConfiguration p = new DefaultConfiguration();
      if (url != null)
      {
        p.setConfigProperty("repository-path", url.toExternalForm());
      }
      cs.store(configPath, p);
    }
    catch (Exception e)
    {
      // ignored ..
      logger.debug("Unable to store the configuration.", e);
View Full Code Here

   * @return the loaded URL or null, if the configuration did not hold an entry.
   */
  protected URL loadFromConfiguration()
  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    if (cs.isAvailable(configPath) == false)
    {
      return null;
    }
    try
    {
      final Configuration p = cs.load(configPath, null);
      final String property = p.getConfigProperty("repository-path");
      if (property == null)
      {
        return null;
      }
View Full Code Here

  }

  protected void storeToConfiguration(final URL url)
  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    try
    {
      final DefaultConfiguration p = new DefaultConfiguration();
      if (url != null)
      {
        p.setConfigProperty("repository-path", url.toExternalForm());
      }
      cs.store(configPath, p);
    }
    catch (Exception e)
    {
      // ignored ..
      logger.debug("Unable to store the configuration.", e);
View Full Code Here

    try
    {
      final boolean fullStorageEnabled = isFullInputStorageEnabled(reportConfiguration);
      final Configuration dialogContents = grabDialogContents(fullStorageEnabled);
      final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
      storage.store(configPath, dialogContents);
    }
    catch (ConfigStoreException cse)
    {
      AbstractExportDialog.logger.debug(messages.getString("AbstractExportDialog.DEBUG_CANT_STORE_DEFAULTS",
          String.valueOf(getClass()))); //$NON-NLS-1$//$NON-NLS-2$
View Full Code Here

  private Configuration loadFromConfigStore(final MasterReport reportJob,
                                            final Configuration defaultConfig)
  {
    final String configPath = ConfigFactory.encodePath(
        reportJob.getTitle() + getConfigurationSuffix());
    final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
    try
    {
      return storage.load(configPath, defaultConfig);
    }
    catch (Exception cse)
    {
      AbstractExportDialog.logger.debug(messages.getString("AbstractExportDialog.DEBUG_CANT_LOAD_DEFAULTS",
          String.valueOf(getClass()))); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStorage

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.