Examples of extractConfig()


Examples of com.agiletec.plugins.jpavatar.aps.system.services.avatar.parse.AvatarConfigDOM.extractConfig()

      String xml = configManager.getConfigItem(JpAvatarSystemConstants.CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpAvatarSystemConstants.CONFIG_ITEM);
      }
      AvatarConfigDOM configDOM = new AvatarConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error on AvatarManager startup", t);
    }
  }
View Full Code Here

Examples of com.agiletec.plugins.jpcasclient.aps.system.services.config.parse.ConfigDOM.extractConfig()

  @Override
  public void init() throws Exception {
    String configItem = this.getConfigManager().getConfigItem(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_ITEM);
    ConfigDOM configDOM = new ConfigDOM();
    CasClientConfig casClientConfig = configDOM.extractConfig(configItem);
    this.setClientConfig(casClientConfig);
  }
 
  @Override
  protected void release() {
View Full Code Here

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

      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

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.parse.WorkflowNotifierDOM.extractConfig()

  }
 
  public void testExtractConfig() throws Throwable {
    WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
    String xml = this._configManager.getConfigItem(JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
    NotifierConfig notifierConfig = configDOM.extractConfig(xml);
    assertFalse(notifierConfig.isActive());
    assertEquals(24, notifierConfig.getHoursDelay());
    assertTrue(notifierConfig.getStartScheduler().getTime()<(new Date()).getTime());
    assertEquals("CODE1", notifierConfig.getSenderCode());
    //assertEquals("email", notifierConfig.getMailAttrName());
View Full Code Here

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.parse.WorkflowNotifierDOM.extractConfig()

    WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
   
    NotifierConfig newConfig = this.prepareNotifierConfig();
    String xml = configDOM.createConfigXml(newConfig);
   
    NotifierConfig extractedConfig = configDOM.extractConfig(xml);
    this.compareNotifiers(newConfig, extractedConfig);
  }
 
  private NotifierConfig prepareNotifierConfig() {
    NotifierConfig notifierConfig = new NotifierConfig();
View Full Code Here

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.parse.WorkflowNotifierDOM.extractConfig()

      String xml = configManager.getConfigItem(JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
      }
      WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
      this.setNotifierConfig(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.jpcontentworkflow.aps.system.services.workflow.parse.ContentWorkflowDOM.extractConfig()

      String xml = configManager.getConfigItem(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_CONFIG_ITEM);
      }
      ContentWorkflowDOM configDOM = new ContentWorkflowDOM();
      this.setWorkflowConfig(configDOM.extractConfig(xml));
    } catch (Exception e) {
      ApsSystemUtils.logThrowable(e, this, "loadConfig");
    }
  }
 
View Full Code Here

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

      String xml = configManager.getConfigItem(JpmailSystemConstants.MAIL_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpmailSystemConstants.MAIL_CONFIG_ITEM);
      }
      MailConfigDOM configDOM = new MailConfigDOM();
      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.jpmail.aps.services.mail.parse.MailConfigDOM.extractConfig()

   * @throws Throwable
   */
  public void testUpdateConfig() throws Throwable {
    MailConfigDOM mailConfigDom = new MailConfigDOM();
    String xml = this._configManager.getConfigItem(JpmailSystemConstants.MAIL_CONFIG_ITEM);
    MailConfig originaryConfig = mailConfigDom.extractConfig(xml);
    try {
      MailConfig config = this.createMailConfig();
      xml = mailConfigDom.createConfigXml(config);
      MailConfig updatedConfig = mailConfigDom.extractConfig(xml);
      this.compareConfigs(config, updatedConfig);
View Full Code Here

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

    String xml = this._configManager.getConfigItem(JpmailSystemConstants.MAIL_CONFIG_ITEM);
    MailConfig originaryConfig = mailConfigDom.extractConfig(xml);
    try {
      MailConfig config = this.createMailConfig();
      xml = mailConfigDom.createConfigXml(config);
      MailConfig updatedConfig = mailConfigDom.extractConfig(xml);
      this.compareConfigs(config, updatedConfig);
    } catch (Throwable t) {
      throw t;
    } finally {
      xml = mailConfigDom.createConfigXml(originaryConfig);
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.