Package com.agiletec.aps.system.exception

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


      RatingSearchBean searchBean  = new RatingSearchBean();
      searchBean.setCommentId(commentId);
      rating = this.getRatingDAO().getRating(searchBean);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getCommentRating");
      throw new ApsSystemException("Error get comment rating", t);
    }
    return rating;
  }
View Full Code Here


    try{
      this.getRatingDAO().removeContentRating(content.getId());
            this.notifyEvent(content.getId(), -1, ContentFeedbackChangedEvent.CONTENT_RATING, ContentFeedbackChangedEvent.REMOVE_OPERATION_CODE);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteContentRating");
      throw new ApsSystemException("Error while remove content rating", t);
    }
  }
View Full Code Here

    StringReader reader = new StringReader(xmlText);
    try {
      _doc = builder.build(reader);
    } catch (Throwable t) {
      ApsSystemUtils.getLogger().error("Errore nel parsing: " + t.getMessage());
      throw new ApsSystemException("Errore nel parsing: " + t.getMessage(), t);
    }
  }
View Full Code Here

  protected void loadNotifierConfig() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      }
      MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
      this.setNotifierConfigMap(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadNotifierConfig");
      throw new ApsSystemException("Error initializing the configuration", t);
    }
  }
View Full Code Here

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

      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

    List<String> contentsId = null;
    try {
      contentsId = this.getEntitySearcherDao().searchId(filters);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadMessagesId");
      throw new ApsSystemException("Errore caricamento id message", t);
    }
    return contentsId;
  }
View Full Code Here

    List<String> contentsId = null;
    try {
      contentsId = ((IMessageSearcherDAO) this.getEntitySearcherDao()).searchId(filters, answered);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadMessagesId");
      throw new ApsSystemException("Errore caricamento id message", t);
    }
    return contentsId;
  }
View Full Code Here

        message.setUsername(messageRecord.getUsername());
        message.setCreationDate(messageRecord.getCreationDate());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getMessage");
      throw new ApsSystemException("Error loading messageRecord", t);
    }
    return message;
  }
View Full Code Here

        message.setId(id);
        this.getMessageDAO().addEntity(message);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addMessage");
      throw new ApsSystemException("Error saving message", 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.