Package com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.model

Examples of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.model.ContentMailInfo


  }
 
  private Map<String, List<ContentMailInfo>> extractContentMailInfoFromResultSet(ResultSet res) throws SQLException {
    Map<String, List<ContentMailInfo>> contentsToNotify = new HashMap<String, List<ContentMailInfo>>();
    while (res.next()) {
      ContentMailInfo info = new ContentMailInfo();
      info.setId(res.getInt(1));
      info.setDate(res.getTimestamp(2));
      info.setOperationCode(res.getInt(3));
      info.setContentId(res.getString(4));
      info.setContentTypeCode(res.getString(5));
      info.setContentDescr(res.getString(6));
      info.setMainGroup(res.getString(7));
      String groups = res.getString(8);
      if (groups!=null) {
        info.setGroups(groups.split(","));
      }
      String contentType = info.getContentTypeCode();
      List<ContentMailInfo> infosForContentType = (List<ContentMailInfo>) contentsToNotify.get(contentType);
      if (infosForContentType == null) {
        infosForContentType = new ArrayList<ContentMailInfo>();
        contentsToNotify.put(contentType, infosForContentType);
      }
View Full Code Here


    try {
      conn = this.getConnection();
      stat = conn.createStatement();
      res = stat.executeQuery(LOAD_ALL_CONTENT_TO_BE_NOTIFY);
      while (res.next()) {
        ContentMailInfo info = this.prepareContentInfoFromResultSet(res);
        contentsToNotify.add(info);
      }
    } catch (Throwable t) {
      this.processDaoException(t, "Errore in caricamento contenuti da notificare", "getContentsToNotify");
    } finally {
View Full Code Here

    }
    return null;
  }
 
  private ContentMailInfo prepareContentInfoFromResultSet(ResultSet res) throws SQLException {
    ContentMailInfo info = new ContentMailInfo();
    info.setId(res.getInt(1));
    info.setDate(res.getTimestamp(2));
    info.setOperationCode(res.getInt(3));
    info.setContentId(res.getString(4));
    info.setContentTypeCode(res.getString(5));
    info.setContentDescr(res.getString(6));
    info.setMainGroup(res.getString(7));
    String groups = res.getString(8);
    if (groups!=null) {
      info.setGroups(groups.split(","));
    }
    return info;
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.model.ContentMailInfo

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.