Examples of extractConfig()


Examples of com.agiletec.plugins.jpmail.aps.services.mail.parse.MailConfigDOM.extractConfig()

      this.compareConfigs(config, updatedConfig);
    } catch (Throwable t) {
      throw t;
    } finally {
      xml = mailConfigDom.createConfigXml(originaryConfig);
      MailConfig updatedConfig = mailConfigDom.extractConfig(xml);
      this.compareConfigs(originaryConfig, updatedConfig);
    }
  }
 
  @Override
View Full Code Here

Examples of com.agiletec.plugins.jpmyportalplus.aps.system.services.config.parse.MyPortalPlusConfigDOM.extractConfig()

      String xml = this.getConfigManager().getConfigItem(JpmyportalplusSystemConstants.MYPORTALPLUS_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Missing configuration item: "+ JpmyportalplusSystemConstants.MYPORTALPLUS_CONFIG_ITEM);
      }
      MyPortalPlusConfigDOM configDom = new MyPortalPlusConfigDOM();
      this.setConfig(configDom.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfig");
      throw new ApsSystemException("Error during initialization", t);
    }
  }
View Full Code Here

Examples of com.agiletec.plugins.jpnewsletter.aps.system.services.newsletter.parse.NewsletterConfigDOM.extractConfig()

 
  public void testUpdateConfig() throws Throwable {
    NewsletterConfigDOM newsletterConfigDOM = new NewsletterConfigDOM();
    NewsletterConfig config = this.createNewsletterConfig();
    String xml = newsletterConfigDOM.createConfigXml(config);
    NewsletterConfig updatedConfig = newsletterConfigDOM.extractConfig(xml);
    this.compareConfigs(config, updatedConfig);
  }
 
  @Override
    protected void init() throws Exception {
View Full Code Here

Examples of com.agiletec.plugins.jpnewsletter.aps.system.services.newsletter.parse.NewsletterConfigDOM.extractConfig()

      String xml = configManager.getConfigItem(JpnewsletterSystemConstants.NEWSLETTER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpnewsletterSystemConstants.NEWSLETTER_CONFIG_ITEM);
      }
      NewsletterConfigDOM configDOM = new NewsletterConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore in fase di inizializzazione", t);
    }
  }
View Full Code Here

Examples of com.agiletec.plugins.jpuserreg.aps.system.services.userreg.parse.UserRegConfigDOM.extractConfig()

      String xml = configManager.getConfigItem(JpUserRegSystemConstants.USER_REG_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration Item not found: " + JpUserRegSystemConstants.USER_REG_CONFIG_ITEM);
      }
      UserRegConfigDOM userRegConfigDom = new UserRegConfigDOM();
      IUserRegConfig config = userRegConfigDom.extractConfig(xml);
      this.setUserRegConfig(config);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error in init", t);
    }
View Full Code Here

Examples of com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.parse.MessageNotifierConfigDOM.extractConfig()

  public void testExtractCreateConfig() throws Throwable {
    ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
    String xml = configManager.getConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
   
    MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
    Map<String, MessageTypeNotifierConfig> config = configDOM.extractConfig(xml);
    this.checkOriginaryConfig(config);
   
    String newXml = configDOM.createConfigXml(config);
    Map<String, MessageTypeNotifierConfig> newConfig = configDOM.extractConfig(newXml);
    this.checkOriginaryConfig(newConfig);
View Full Code Here

Examples of com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.parse.MessageNotifierConfigDOM.extractConfig()

    MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
    Map<String, MessageTypeNotifierConfig> config = configDOM.extractConfig(xml);
    this.checkOriginaryConfig(config);
   
    String newXml = configDOM.createConfigXml(config);
    Map<String, MessageTypeNotifierConfig> newConfig = configDOM.extractConfig(newXml);
    this.checkOriginaryConfig(newConfig);
  }
 
  private void checkOriginaryConfig(Map<String, MessageTypeNotifierConfig> config) {
    assertEquals(2, config.size());
View Full Code Here

Examples of com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.parse.MessageNotifierConfigDOM.extractConfig()

      String xml = configManager.getConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      }
      MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
      this.setNotifierConfigMap(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadNotifierConfig");
      throw new ApsSystemException("Error initializing the configuration", t);
    }
  }
View Full Code Here

Examples of com.agiletec.plugins.jpwebmail.aps.system.services.webmail.parse.WebMailConfigDOM.extractConfig()

public class TestWebMailConfigDOM extends ApsPluginBaseTestCase {
 
  public void testGetItems() throws ApsSystemException {
    WebMailConfigDOM configDOM = new WebMailConfigDOM();
    WebMailConfig bean = configDOM.extractConfig(XML);
    assertEquals("smtpUsername", bean.getSmtpUserName());
    assertEquals("SMTP.EMAIL.COM", bean.getSmtpHost());
    assertEquals("smtpPassword", bean.getSmtpPassword());
    assertEquals("/cert/path/", bean.getCertificatePath());
    assertTrue(bean.isCertificateLazyCheck());
View Full Code Here

Examples of com.agiletec.plugins.jpwebmail.aps.system.services.webmail.parse.WebMailConfigDOM.extractConfig()

      String xml = this.getConfigManager().getConfigItem(JpwebmailSystemConstants.WEBMAIL_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Missing confi item: " + JpwebmailSystemConstants.WEBMAIL_CONFIG_ITEM);
      }
      WebMailConfigDOM contactConfigDom = new WebMailConfigDOM();
      this.setConfig(contactConfigDom.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error loading config", t);
    }
  }
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.