Class TmaReviewApiController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaReviewApiController
- All Implemented Interfaces:
ReviewApi
Default implementation of
ReviewApi- Since:
- 1907
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
BAD_REQUEST, NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Review>createReview(@Valid Review review, @Valid String productOfferingId, @Valid String relatedPartyId) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) listReview(@NotNull @Valid String productOfferingId, @Valid String fields, @Valid Integer offset, @Valid Integer limit) Methods inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
addDefaultFields, encodeUrl, filter, getAuthentication, getDataMapper, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getRequestUrl, getUnsuccessfulResponse, getUnsuccessfulResponseWithErrorRepresentation, getUser, handleInternalError, handleModelNotFoundException, handleTmaApiErrorInternal, hasRole, init, sanitize, sanitizeQueryString
-
Constructor Details
-
TmaReviewApiController
@Autowired public TmaReviewApiController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
createReview
@RequestMapping(value="/review", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) public org.springframework.http.ResponseEntity<Review> createReview(@Valid @RequestBody @Valid Review review, @Valid @RequestParam(value="productOffering.id",required=true) @Valid String productOfferingId, @Valid @RequestParam(value="relatedParty.id",required=true) @Valid String relatedPartyId) - Specified by:
createReviewin interfaceReviewApi
-
listReview
@RequestMapping(value="/review", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<List<Review>> listReview(@NotNull @Valid @RequestParam("productOffering.id") @NotNull @Valid String productOfferingId, @Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="offset",required=false) @Valid Integer offset, @Valid @RequestParam(value="limit",required=false) @Valid Integer limit) - Specified by:
listReviewin interfaceReviewApi
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-