Examples of RetailerCustomerComment


Examples of org.hoteia.qalingo.core.domain.RetailerCustomerComment

        Set<RetailerCustomerComment> customerComments = retailer.getCustomerComments();
        if (Hibernate.isInitialized(customerComments) &&
                customerComments != null) {
            for (Iterator<RetailerCustomerComment> iterator = customerComments.iterator(); iterator.hasNext();) {
                RetailerCustomerComment retailerCustomerComment = (RetailerCustomerComment) iterator.next();
                RetailerCustomerCommentViewBean retailerCustomerCommentViewBean = new RetailerCustomerCommentViewBean();

                retailerCustomerCommentViewBean.setCustomerDisplayName(retailerCustomerComment.getCustomer().getScreenName());
                retailerCustomerCommentViewBean.setCustomerUrl(urlService.buildCustomerDetailsUrl(requestData, retailerCustomerComment.getCustomer().getPermalink()));
                retailerCustomerCommentViewBean.setCustomerAvatarImg(requestUtil.getCustomerAvatar(requestData.getRequest(), retailerCustomerComment.getCustomer()));

                DateFormat dateFormat = requestUtil.getFormatDate(requestData, DateFormat.MEDIUM, DateFormat.MEDIUM);
                if (retailerCustomerComment.getDateCreate() != null) {
                    retailerCustomerCommentViewBean.setDateCreate(dateFormat.format(retailerCustomerComment.getDateCreate()));
                }

                retailerCustomerCommentViewBean.setComment(retailerCustomerComment.getComment());

                ReviewDataVocabularyPojo reviewDataVocabulary = new ReviewDataVocabularyPojo();
                reviewDataVocabulary.setItemreviewed(retailer.getName());
                reviewDataVocabulary.setReviewer(retailerCustomerComment.getCustomer().getScreenName());
                DateFormat dateFormatDataVocabulary = requestUtil.getDataVocabularyFormatDate(requestData);
                reviewDataVocabulary.setDtreviewed(dateFormat.format(retailerCustomerComment.getDateCreate()));
                // reviewDataVocabulary.setSummary(summary);
                reviewDataVocabulary.setDescription(retailerCustomerComment.getComment());
                // reviewDataVocabulary.setRating(rating);

                retailerCustomerCommentViewBean.setReviewDataVocabulary(reviewDataVocabulary);

                retailerViewBean.getComments().add(retailerCustomerCommentViewBean);
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.RetailerCustomerComment

    retailerCustomerComment.setDateUpdate(new Date());
        if (retailerCustomerComment.getId() != null) {
            if(em.contains(retailerCustomerComment)){
                em.refresh(retailerCustomerComment);
            }
            RetailerCustomerComment mergedRetailerCustomerComment = em.merge(retailerCustomerComment);
            em.flush();
            return mergedRetailerCustomerComment;
        } else {
            em.persist(retailerCustomerComment);
            return retailerCustomerComment;
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.RetailerCustomerComment

      retailerCustomerRate.setType("PRICE_SCORE");
      retailerService.saveOrUpdateRetailerCustomerRate(retailerCustomerRate);
    }
   
    if (StringUtils.isNotEmpty(retailerCommentForm.getComment())) {
      RetailerCustomerComment retailerCustomerComment = new RetailerCustomerComment();
      retailerCustomerComment.setComment(retailerCommentForm.getComment());
      retailerCustomerComment.setRetailerId(retailer.getId());
      retailerCustomerComment.setCustomer(customer);
      retailerService.saveOrUpdateRetailerCustomerComment(retailerCustomerComment);
    }
   
    addSuccessMessage(request, getSpecificMessage(ScopeWebMessage.RETAILER, "comment_form_success_message",  locale));
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.