Class DefaultCustomerVendorReviewDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CustomerVendorReviewModel>
de.hybris.platform.marketplaceservices.vendor.daos.impl.DefaultCustomerVendorReviewDao
- All Implemented Interfaces:
CustomerVendorReviewDao,GenericDao<CustomerVendorReviewModel>
public class DefaultCustomerVendorReviewDao
extends DefaultGenericDao<CustomerVendorReviewModel>
implements CustomerVendorReviewDao
Default implementation for
CustomerVendorReviewDao.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SortQueryDatacreateSortQueryData(String sortCode, String query) findPagedReviewsForVendor(String vendorCode, LanguageModel language, PageableData pageableData) Find all approved paged reviews for a particular vendorfindReviewsByUser(UserModel user) Find all reviews for a particular userfindReviewsForVendor(VendorModel vendor) Find all approved reviews for a particular vendorprotected PagedFlexibleSearchServicebooleanpostedReview(String consignmentCode, UserModel user) Check whether the review has been postedvoidsetPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Field Details
-
VENDOR_CODE
- See Also:
-
APPROVAL_STATUS
- See Also:
-
CONSIGNMENT_CODE
- See Also:
-
UID
- See Also:
-
FIND_REVIEWS
- See Also:
-
FIND_REVIEWS_FOR_CURRENT_LANGUAGE
- See Also:
-
POSTED_REVIEW
- See Also:
-
-
Constructor Details
-
DefaultCustomerVendorReviewDao
public DefaultCustomerVendorReviewDao()
-
-
Method Details
-
findReviewsForVendor
Description copied from interface:CustomerVendorReviewDaoFind all approved reviews for a particular vendor- Specified by:
findReviewsForVendorin interfaceCustomerVendorReviewDao- Returns:
- all approved reviews for this vendor
-
postedReview
Description copied from interface:CustomerVendorReviewDaoCheck whether the review has been posted- Specified by:
postedReviewin interfaceCustomerVendorReviewDao- Parameters:
consignmentCode- consignment codeuser- User model- Returns:
- true if a review has been posted and false otherwise
-
findPagedReviewsForVendor
public SearchPageData<CustomerVendorReviewModel> findPagedReviewsForVendor(String vendorCode, LanguageModel language, PageableData pageableData) Description copied from interface:CustomerVendorReviewDaoFind all approved paged reviews for a particular vendor- Specified by:
findPagedReviewsForVendorin interfaceCustomerVendorReviewDao- Parameters:
vendorCode- code of vendorlanguage- current languagepageableData- the pagination data- Returns:
- paging result of reviews
-
findReviewsByUser
Description copied from interface:CustomerVendorReviewDaoFind all reviews for a particular user- Specified by:
findReviewsByUserin interfaceCustomerVendorReviewDao- Parameters:
user- the given user- Returns:
- all reviews for this user
-
createSortQueryData
-
getPagedFlexibleSearchService
-
setPagedFlexibleSearchService
-