Class DefaultCustomerVendorReviewService
- java.lang.Object
-
- de.hybris.platform.marketplaceservices.vendor.impl.DefaultCustomerVendorReviewService
-
- All Implemented Interfaces:
CustomerVendorReviewService
public class DefaultCustomerVendorReviewService extends java.lang.Object implements CustomerVendorReviewService
Default implementation forCustomerVendorReviewService.
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomerVendorReviewService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerVendorReviewModelcreateReview(CustomerVendorReviewModel vendorReview)Create a reviewprotected CustomerVendorReviewDaogetCustomerVendorReviewDao()protected ModelServicegetModelService()SearchPageData<CustomerVendorReviewModel>getPagedReviewsForVendor(java.lang.String vendorCode, LanguageModel language, PageableData pageableData)Get all approved paged reviews for a particular vendorjava.util.Collection<CustomerVendorReviewModel>getReviewsForVendor(VendorModel vendor)Find all approved reviews for a particular vendorbooleanpostedReview(java.lang.String consignmentCode, UserModel user)Check whether a review for a consignment has been posted by a uservoidsetCustomerVendorReviewDao(CustomerVendorReviewDao customerVendorReviewDao)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
getReviewsForVendor
public java.util.Collection<CustomerVendorReviewModel> getReviewsForVendor(VendorModel vendor)
Description copied from interface:CustomerVendorReviewServiceFind all approved reviews for a particular vendor- Specified by:
getReviewsForVendorin interfaceCustomerVendorReviewService- Parameters:
vendor- the target vendor- Returns:
- all approved reviews for this vendor
-
createReview
public CustomerVendorReviewModel createReview(CustomerVendorReviewModel vendorReview)
Description copied from interface:CustomerVendorReviewServiceCreate a review- Specified by:
createReviewin interfaceCustomerVendorReviewService- Parameters:
vendorReview- vendor review model- Returns:
- the created review
-
postedReview
public boolean postedReview(java.lang.String consignmentCode, UserModel user)Description copied from interface:CustomerVendorReviewServiceCheck whether a review for a consignment has been posted by a user- Specified by:
postedReviewin interfaceCustomerVendorReviewService- Parameters:
consignmentCode- consignment codeuser- user model- Returns:
- true if a review has been posted and false otherwise
-
getPagedReviewsForVendor
public SearchPageData<CustomerVendorReviewModel> getPagedReviewsForVendor(java.lang.String vendorCode, LanguageModel language, PageableData pageableData)
Description copied from interface:CustomerVendorReviewServiceGet all approved paged reviews for a particular vendor- Specified by:
getPagedReviewsForVendorin interfaceCustomerVendorReviewService- Parameters:
vendorCode- code of vendorlanguage- current languagepageableData- the pagination data- Returns:
- paging result of reviews
-
getCustomerVendorReviewDao
protected CustomerVendorReviewDao getCustomerVendorReviewDao()
-
setCustomerVendorReviewDao
public void setCustomerVendorReviewDao(CustomerVendorReviewDao customerVendorReviewDao)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-