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

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


    return this.executeAction();
  }
 
  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


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

    assertEquals(Action.SUCCESS, result);
  }
 
  private void init() {
    ContentWorkflowManager workflowManager = (ContentWorkflowManager) this.getService(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_MANAGER);
    ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
    DataSource dataSource = (DataSource) this.getApplicationContext().getBean("portDataSource");
    this._helper = new WorkflowTestHelper(workflowManager, configManager, dataSource);
  }
View Full Code Here

    this._categoryCode = categoryCode;
  }
 
  public long getMaximumSize() {
    if (this._maximumSize<=0) {
      ConfigInterface configManager = (ConfigInterface) ApsWebApplicationUtils.getBean(SystemConstants.BASE_CONFIG_MANAGER, ServletActionContext.getRequest());
      String maxSizeParam = configManager.getParam(SystemConstants.PAR_FILEUPLOAD_MAXSIZE);
      if (null != maxSizeParam) {
        try {
          this._maximumSize = Long.parseLong(maxSizeParam);
        } catch (Throwable t) {
          ApsSystemUtils.getLogger().error("Error parsing param 'maxSize' - value '" + maxSizeParam + "' - message " + t.getMessage());
View Full Code Here

  }
 
  private void init() {
    ContentWorkflowManager workflowManager = (ContentWorkflowManager) this.getService(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_MANAGER);
    this._workflowManager = workflowManager;
    ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
    this._helper = new WorkflowTestHelper(workflowManager, configManager);
  }
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);
    DataSource portDataSource = (DataSource) this.getApplicationContext().getBean("portDataSource");
    this._helper = new WorkflowTestHelper(workflowManager, configManager, portDataSource);
   
    DataSource servDataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
    this._notifierHelper = new WorkflowNotifierTestHelper();
View Full Code Here

    this.loadConfigs();
  }
 
  private void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = (ConfigInterface) this.getConfigManager();
      String xml = configManager.getConfigItem("jpwttMailConfig");
      if (xml == null) {
        throw new ApsSystemException("Missing config item: jpwttMailConfig");
      }
      WttMailConfigDOM configDOM = new WttMailConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
View Full Code Here

    this.loadConfigs();
  }
 
  private void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem("jpwttConfig");
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: jpwttConfig");
      }
      WttConfigDOM configDOM = new WttConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
View Full Code Here

  }


  private void loadConfig() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem(CalendarConstants.CALENDAR_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration Item not present: " + CalendarConstants.CALENDAR_CONFIG_ITEM);
      }
      CalendarConfigDOM dom = new CalendarConfigDOM(xml);
      this.setConfig(dom.extractConfig());
View Full Code Here

    }
  }

  protected void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      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();
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.