public void addChildInquiryToParentThreadCustomer(
     int userId, Boolean isCustomer, Inquiry childInquiry) {
   inquiryDao.addChildInquiryToParentThreadCustomer(userId, isCustomer, childInquiry);
 }
  public void sendInquiryFromWebMaster(Inquiry inquiry) {

    inquiryDao.save(inquiry);
  }
 public void addChildInquiryToParentThread(int userId, Boolean isSeller, Inquiry childInquiry) {
   inquiryDao.addChildInquiryToParentThread(userId, isSeller, childInquiry);
 }
 public List<Inquiry> listParentInquiriesPostedByCustomer(int adminUserId) {
   return inquiryDao.findParentInquiriesPostedToAdmin(adminUserId, true, 3);
 }
 public List<Inquiry> findChildrenInquiryByParentInquiryId(int parentInquiry) {
   inquiryList = inquiryDao.findChildrenInquiryByParentInquiryId(parentInquiry);
   if (inquiryList == null) inquiryList = new ArrayList<Inquiry>();
   return inquiryList;
 }
  public Inquiry getInquiryByInquiryId(int inquiryId) {

    Inquiry inquiry = inquiryDao.findById(inquiryId);

    return inquiry;
  }
 public boolean updateInquiry(int inquiryId, int adminId) {
   int userId = adminId;
   Boolean isSeller = false;
   int inquiryIdToClose = inquiryId;
   return inquiryDao.closeCurrentInquiryThread(userId, isSeller, inquiryIdToClose);
 }
 public List<Inquiry> listParentInquiriesPostedByGuest() {
   inquiryList = inquiryDao.findInquiryPostedByGuest();
   if (inquiryList == null) inquiryList = new ArrayList<Inquiry>();
   return inquiryList;
 }
 public List<Inquiry> listParentInquiriesPostedBySellers(int adminUserId) {
   return inquiryDao.findParentInquiriesPostedToAdmin(adminUserId, true, 1);
 }
Esempio n. 10
0
 public Inquiry getInquiryById(int inquiryId) {
   return inquiryDao.findById(inquiryId);
 }