Package net.naijatek.myalumni.modules.common.domain

Examples of net.naijatek.myalumni.modules.common.domain.PrivateMessageVO


 
 
  public void deleteMail(String[] mailArray, String memberId, String lastModifiedBy) {
   
    List<PrivateMessageVO> listOfPM = new ArrayList<PrivateMessageVO>();
    PrivateMessageVO pm = new PrivateMessageVO();
    for (int i = 0 ; i < mailArray.length ; i++){
      pm = findById(mailArray[i]);
      if ((pm.getMessageToUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_NO))
          || (pm.getMessageFromUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_YES))){
        pm.setMessageStatus(BaseConstants.PM_STATUS_DELETED);
        pm.setFolderName(BaseConstants.FOLDER_TRASH);
        pm.setLastModifiedBy(lastModifiedBy);
        listOfPM.add(findById(mailArray[i]));
      }
    }
    batchUpdate(listOfPM);
  }
View Full Code Here


        .setParameter("folderName", folderName)
        .list();
  }

  public String getPrivateMessagesStatusById(String pmID) {
    PrivateMessageVO pmVO = findById(pmID);
    if (pmVO != null)
      return pmVO.getMessageStatus();
    else
      return "";
  }
View Full Code Here

  }

  public void moveMail(String[] mailArray, String memberId, String toFolder, String lastModifiedBy) {

    List<PrivateMessageVO> listOfPM = new ArrayList<PrivateMessageVO>();
    PrivateMessageVO pm = new PrivateMessageVO();
    for (int i = 0 ; i < mailArray.length ; i++){
      pm = findById(mailArray[i]);
      if ((pm.getMessageToUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_NO))
          || (pm.getMessageFromUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_YES))){
        pm.setFolderName(toFolder);
        pm.setLastModifiedBy(lastModifiedBy);
        listOfPM.add(findById(mailArray[i]));
      }
    }
  }
View Full Code Here

//
//  }
 
 
    public void updateMessageRead(String memberId, String messageId, String lastModifiedBy) {
      PrivateMessageVO pm = findById(messageId);
    if ((pm.getMessageToUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_NO))
        || (pm.getMessageFromUserId().equals(memberId) && pm.getCopyMe().equals(BaseConstants.BOOLEAN_YES))){
        pm.setMessageStatus(BaseConstants.PM_STATUS_READ);
        pm.setLastModifiedBy(lastModifiedBy);
        update(pm);
      }
    }
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.domain.PrivateMessageVO

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.