Package org.openmeetings.app.persistence.beans.user

Examples of org.openmeetings.app.persistence.beans.user.PrivateMessageFolder


                    .element("userId").getText())),
                Maps.USERS);
            Long privateMessageFolderId = importLongType(unformatString(pmfObject
                .element("privateMessageFolderId").getText()));

            PrivateMessageFolder privateMessageFolder = new PrivateMessageFolder();
            privateMessageFolder.setFolderName(folderName);
            privateMessageFolder.setUserId(userId);
            privateMessageFolder
                .setPrivateMessageFolderId(privateMessageFolderId);

            pmfList.add(privateMessageFolder);

          }
View Full Code Here


  @PersistenceContext
  private EntityManager em;
 
  public Long addPrivateMessageFolder(String folderName, Long userId) {
    try {
      PrivateMessageFolder privateMessageFolder = new PrivateMessageFolder();
      privateMessageFolder.setFolderName(folderName);
      privateMessageFolder.setUserId(userId);
      privateMessageFolder.setInserted(new Date());
     
      privateMessageFolder = em.merge(privateMessageFolder);
      Long privateMessageFolderId = privateMessageFolder.getPrivateMessageFolderId();
     
      return privateMessageFolderId; 
    } catch (Exception e) {
      log.error("[addPrivateMessageFolder]",e);
    }
View Full Code Here

            "where c.privateMessageFolderId = :privateMessageFolderId ";

      TypedQuery<PrivateMessageFolder> query = em.createQuery(hql, PrivateMessageFolder.class);
      query.setParameter("privateMessageFolderId", privateMessageFolderId);
     
      PrivateMessageFolder privateMessageFolder = null;
      try {
        privateMessageFolder = query.getSingleResult();
        } catch (NoResultException ex) {
        }
     
View Full Code Here

    Element privatemessagefolders = root
        .addElement("privatemessagefolders");

    for (Iterator<PrivateMessageFolder> it = privateMessageFolders
        .iterator(); it.hasNext();) {
      PrivateMessageFolder pmf = it.next();

      Element privateMessageFolder = privatemessagefolders
          .addElement("privatemessagefolder");

      privateMessageFolder.addElement("privateMessageFolderId").addCDATA(
          formatString("" + pmf.getPrivateMessageFolderId()));
      privateMessageFolder.addElement("folderName").addCDATA(
          formatString("" + pmf.getFolderName()));
      privateMessageFolder.addElement("userId").addCDATA(
          formatString("" + pmf.getUserId()));

    }

    return document;
  }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.user.PrivateMessageFolder

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.