Package com.agiletec.aps.system.exception

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


    List<String> commentIds = new ArrayList<String>();
    try {
      commentIds = this.getCommentDAO().searchCommentsId(searchBean);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "searchCommentIds");
      throw new ApsSystemException("Error while search comment", t);
    }
    return commentIds;
  }
View Full Code Here


    try {
      this.getCommentDAO().updateStatus(id, status);
            this.notifyEvent(null, id, ContentFeedbackChangedEvent.CONTENT_COMMENT, ContentFeedbackChangedEvent.UPDATE_OPERATION_CODE);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateCommentStatus");
      throw new ApsSystemException("Error while update comment status", t);
    }
  }
View Full Code Here

      }
      comment.setComment(res.getString("usercomment"));
      comment.setStatus(res.getInt("status"));
      comment.setUsername(res.getString("username"));
    } catch (Throwable t) {
      throw new ApsSystemException("Errore loading comment", t);
    }
    return comment;
  }
View Full Code Here

  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));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore in fase di inizializzazione", t);
    }
  }
View Full Code Here

        restartScheduler(config);
        ApsSystemUtils.getLogger().info("Newsletter: scheduler restart completed");
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateNewsletterConfig");
      throw new ApsSystemException("Errore in fase di aggiornamento configurazione newsletter", t);
    }
  }
View Full Code Here

  public void removeContentFromQueue(String contentId) throws ApsSystemException {
    try {
      this.getNewsletterDAO().deleteContentFromQueue(contentId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "removeContentFromQueue");
      throw new ApsSystemException("Errore in aggiunta contenuto in coda newsLetter", t);
    }
  }
View Full Code Here

  public List<String> getContentQueue() throws ApsSystemException {
    try {
      return this.getNewsletterDAO().loadContentQueue();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContentQueue");
      throw new ApsSystemException("Errore in caricamento coda contenuti newsLetter", t);
    }
  }
View Full Code Here

  public boolean existsContentReport(String contentId) throws ApsSystemException {
    try {
      return this.getNewsletterDAO().existsContentReport(contentId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContentQueue");
      throw new ApsSystemException("Error verifying content report existence", t);
    }
  }
View Full Code Here

  public List<String> getSentContentIds() throws ApsSystemException {
    try {
      return this.getNewsletterDAO().loadSentContentIds();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContentQueue");
      throw new ApsSystemException("Error loading sent contents ids", t);
    }
  }
View Full Code Here

  public NewsletterContentReportVO getContentReport(String contentId) throws ApsSystemException {
    try {
      return this.getNewsletterDAO().loadContentReport(contentId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContentQueue");
      throw new ApsSystemException("Error loading content report", 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.