예제 #1
0
 public void addChildInquiryToParentThreadCustomer(
     int userId, Boolean isCustomer, Inquiry childInquiry) {
   inquiryDao.addChildInquiryToParentThreadCustomer(userId, isCustomer, childInquiry);
 }
예제 #2
0
  public void sendInquiryFromWebMaster(Inquiry inquiry) {

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

    Inquiry inquiry = inquiryDao.findById(inquiryId);

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