Package org.apache.openmeetings.db.entity.user

Examples of org.apache.openmeetings.db.entity.user.PrivateMessageFolder


    {
      List<PrivateMessageFolder> list = readList(simpleSerializer, f, "privateMessageFolder.xml"
        , "privatemessagefolders", PrivateMessageFolder.class, true);
      for (PrivateMessageFolder p : list) {
        Long folderId = p.getPrivateMessageFolderId();
        PrivateMessageFolder storedFolder = privateMessageFolderDao.get(folderId);
        if (storedFolder == null) {
          p.setPrivateMessageFolderId(0);
          Long newFolderId = privateMessageFolderDao.addPrivateMessageFolderObj(p);
          messageFoldersMap.put(folderId, newFolderId);
        }
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

    {
      List<PrivateMessageFolder> list = readList(simpleSerializer, f, "privateMessageFolder.xml"
        , "privatemessagefolders", PrivateMessageFolder.class, true);
      for (PrivateMessageFolder p : list) {
        Long folderId = p.getPrivateMessageFolderId();
        PrivateMessageFolder storedFolder = privateMessageFolderDao.get(folderId);
        if (storedFolder == null) {
          p.setPrivateMessageFolderId(0);
          Long newFolderId = privateMessageFolderDao.addPrivateMessageFolderObj(p);
          messageFoldersMap.put(folderId, newFolderId);
        }
View Full Code Here

    {
      List<PrivateMessageFolder> list = readList(simpleSerializer, f, "privateMessageFolder.xml"
        , "privatemessagefolders", PrivateMessageFolder.class, true);
      for (PrivateMessageFolder p : list) {
        Long folderId = p.getPrivateMessageFolderId();
        PrivateMessageFolder storedFolder = privateMessageFolderDao.get(folderId);
        if (storedFolder == null) {
          p.setPrivateMessageFolderId(0);
          Long newFolderId = privateMessageFolderDao.addPrivateMessageFolderObj(p);
          messageFoldersMap.put(folderId, newFolderId);
        }
View Full Code Here

    {
      List<PrivateMessageFolder> list = readList(simpleSerializer, f, "privateMessageFolder.xml"
        , "privatemessagefolders", PrivateMessageFolder.class, true);
      for (PrivateMessageFolder p : list) {
        Long folderId = p.getPrivateMessageFolderId();
        PrivateMessageFolder storedFolder = privateMessageFolderDao.get(folderId);
        if (storedFolder == null) {
          p.setPrivateMessageFolderId(0);
          Long newFolderId = privateMessageFolderDao.addPrivateMessageFolderObj(p);
          messageFoldersMap.put(folderId, newFolderId);
        }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.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.