Package com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.parse

Examples of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.parse.ContentNotifierConfigDOM


  }

  @Override
  public void updateNotifierConfig(NotifierConfig config) throws ApsSystemException {
    try {
      String xml = new ContentNotifierConfigDOM().createConfigXml(config);
      this.getConfigManager().updateConfigItem(JpcontentnotifierSystemConstants.CONTENT_NOTIFIER_CONFIG_ITEM, xml);
      this.setSchedulerConfig(config);
      this.openScheduler();
      ApsSystemUtils.getLogger().trace("Updated Content Notifier Configuration");
    } catch (Throwable t) {
View Full Code Here


      String xml = configManager.getConfigItem(JpcontentnotifierSystemConstants.CONTENT_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Missing content item: " + JpcontentnotifierSystemConstants.CONTENT_NOTIFIER_CONFIG_ITEM);
      }
      ApsSystemUtils.getLogger().trace(JpcontentnotifierSystemConstants.CONTENT_NOTIFIER_CONFIG_ITEM + ": " + xml);
      ContentNotifierConfigDOM configDOM = new ContentNotifierConfigDOM();
      this.setSchedulerConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error loading config", t);
    }
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.parse.ContentNotifierConfigDOM

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.