Package com.agiletec.aps.system.services.baseconfig

Examples of com.agiletec.aps.system.services.baseconfig.ConfigInterface


      MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
      Map<String, MessageTypeNotifierConfig> configMap = this.getNotifierConfigMap();
      configMap.remove(typeCode);

      String xml = configDOM.createConfigXml(configMap);
      ConfigInterface configManager = this.getConfigManager();
      configManager.updateConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM, xml);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "removeNotifierConfig");
      this.loadNotifierConfig();
      throw new ApsSystemException("Error updating notifier configuration");
    }
View Full Code Here


   * Carica e salva la configurazione di sistema del servizio.
   * @throws ApsSystemException
   */
  protected void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      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));
View Full Code Here

   *
   * @throws ApsSystemException
   */
  private void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      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));
View Full Code Here

 
    protected void init() throws Exception {
      try {
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
    } catch (Exception e) {
      throw e;
View Full Code Here

    ApsSystemUtils.getLogger().debug(this.getClass().getName() + ": initialized");
  }

  private void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      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);
View Full Code Here

    return SKIP_BODY;
  }
 
  public int doEndTag() throws JspException {
    super.doStartTag();//non è un errore!!!
        ConfigInterface confManager = (ConfigInterface) ApsWebApplicationUtils.getBean(SystemConstants.BASE_CONFIG_MANAGER, this.pageContext);
        String applicationBaseURL = confManager.getParam(SystemConstants.PAR_APPL_BASE_URL);
    final StringBuffer buffer = new StringBuffer(" src=\"");
    buffer.append(applicationBaseURL);
    buffer.append(getImgURL());
    buffer.append("\"");
    try {
View Full Code Here

    return this.executeAction();
  }
 
    protected void init() throws Exception {
      try {
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._mailManager = (IMailManager) this.getService(JpmailSystemConstants.MAIL_MANAGER);
        this._helper = new JpmailTestHelper(configManager, this._mailManager);
    } catch (Exception e) {
      throw e;
    }
View Full Code Here

    assertNotNull(mailConfig.getSmtpPassword());
  }
 
  protected void init() throws Exception {
    try {
      ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
      this._mailManager = (IMailManager) this.getService(JpmailSystemConstants.MAIL_MANAGER);
      this._helper = new JpmailTestHelper(configManager, this._mailManager);
    } catch (Exception e) {
      throw e;
    }
View Full Code Here

    return result;
  }
 
    private void init() throws Exception {
      try {
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._mailManager = (IMailManager) this.getService(JpmailSystemConstants.MAIL_MANAGER);
        this._helper = new JpmailTestHelper(configManager, this._mailManager);
    } catch (Exception e) {
      throw e;
    }
View Full Code Here

    return result;
  }
 
  private void init() {
    ContentWorkflowManager workflowManager = (ContentWorkflowManager) this.getService(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_MANAGER);
    ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
    this._helper = new WorkflowTestHelper(workflowManager, configManager);
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.services.baseconfig.ConfigInterface

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.