Package com.agiletec.aps.system.exception

Examples of com.agiletec.aps.system.exception.ApsSystemException


    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getNumPageSession(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertTrue(result >= 0);
  }
View Full Code Here


    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getTopPages(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertNotNull(result);
  }
View Full Code Here

    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try {
      result = _statsDAO.getTopContents(initialDate, finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertNotNull(result);
  }
View Full Code Here

  public void testGetFirstCalendarDay() throws ApsSystemException{
    Calendar firstDay = null;
    try {
      firstDay = _statsDAO.getFirstCalendarDay();
    } catch (Throwable t) {
      throw new ApsSystemException("error in get first day");
    }
    assertNotNull(firstDay);
  }
View Full Code Here

    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getIPByDateInterval(initialDate,finalDate);
    }catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertNotNull(result);
  }
View Full Code Here

    try {
      Document doc = builder.build(reader);
      root = doc.getRootElement();
    } catch (Throwable t) {
      ApsSystemUtils.getLogger().error("Error parsing xml: " + t.getMessage());
      throw new ApsSystemException("Error parsing xml", t);
    }
    return root;
  }
View Full Code Here

      configurationItem = configDOM.createConfigXml(config);
      this.getConfigManager().updateConfigItem(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_ITEM, configurationItem);
      this.setClientConfig(config);
    } catch (ApsSystemException t) {
      ApsSystemUtils.logThrowable(t, this, "updateConfig");
      throw new ApsSystemException("Errore in fase di aggiornamento configurazione mail", t);
    }
  }
View Full Code Here

          SmallContentType contenType = (SmallContentType) this.getContentManager().getSmallContentTypesMap().get(contentTypeCode);
          contentTypes.add(contenType);
        }
      }
    } catch (Throwable t) {
      throw new ApsSystemException("Errore", t);
    }
    return contentTypes;
  }
View Full Code Here

  private void loadContentTypeElement() throws ApsSystemException {
    Logger log = ApsSystemUtils.getLogger();
    try {
      String xml = this.getConfigInterface().getConfigItem(this.getConfigItemName());
      if (xml == null) {
        throw new ApsSystemException("Missing config item: " + this.getConfigItemName());
      } else {
        log.trace(this.getConfigItemName()+": " + xml);
        AbstractContentRelactionDOM catDom = this.getConfigDom(xml);
        this.setContentTypeElements(catDom.getContentTypes());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadContentTypeCategory");
      throw new ApsSystemException("Errorloading content type element", t);
    }
  }
View Full Code Here

  public void addRelation(String elementCode, String contentType) throws ApsSystemException {
    try {
      SmallContentType smallContentType =
        (SmallContentType) this.getContentManager().getSmallContentTypesMap().get(contentType);
      if (null == smallContentType) {
        throw new ApsSystemException("Content type missing : " + contentType);
      }
      if (null == this.getContentTypeElements().get(contentType)) {
        this.getContentTypeElements().put(contentType, new ArrayList<String>());
      }
      this.checkReference(elementCode);
      List<String> contentTypeCategories = this.getContentTypeElements().get(contentType);
      if (!contentTypeCategories.contains(elementCode)) {
        contentTypeCategories.add(elementCode);
      }
     
      this.updateConfig();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addCategoryRelation");
      throw new ApsSystemException("Error adding Category Relation", t);
    }
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.exception.ApsSystemException

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.