public int getQuotaRatioByMemberId(String memberId){
return pmDao.getQuotaRatioByMemberId(memberId);
}
public PrivateMessageHelper getMessageCenter(String memberId, String folderType, MyAlumniUserContainer container){
PrivateMessageHelper pmHelper = new PrivateMessageHelper();
// set the messges
pmHelper.setListOfMessages(pmDao.getMailListByMemberId(memberId, folderType));
//set member folders
pmHelper.setMessageFolders(messageFolderDao.getMessageFoldersForMemberByMemberId(memberId));
//set Max quota
pmHelper.setMaxQuota(SystemConfigConstants.MAIL_QUOTA);
//set member quota
pmHelper.setMemberQuota(pmDao.getQuotaRatioByMemberId(memberId));
//set folder type
pmHelper.setFolderType(folderType.toLowerCase());
//set number of new and old message
container.setNewMailCount(pmDao.getMailCountByUserName(memberId, BaseConstants.PM_STATUS_NEW));
return pmHelper;