Package com.agiletec.plugins.jpavatar.aps.system.services.avatar.parse

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


      ConfigInterface configManager = this.getConfigManager();
      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


  }

  @Override
  public void updateConfig(AvatarConfig config) throws ApsSystemException {
    try {
      String xml = new AvatarConfigDOM().createConfigXml(config);
      this.getConfigManager().updateConfigItem(JpAvatarSystemConstants.CONFIG_ITEM, xml);
      this.setConfig(config);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateConfig");
      throw new ApsSystemException("Error updating jpavatar config", t);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpavatar.aps.system.services.avatar.parse.AvatarConfigDOM

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.