public class FlashbuyController extends ProductPageController
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FLASHBUY_URL |
protected static Logger |
LOG |
protected static java.lang.String |
PRODUCT_CODE_PATH_VARIABLE_PATTERN |
protected static java.lang.String |
PRODUCT_ENQUEUE |
protected static java.lang.String |
PRODUCT_RESULT |
| Constructor and Description |
|---|
FlashbuyController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
enqueue(java.lang.String encodedProductCode,
java.lang.String requestBody,
HttpServletRequest request,
HttpServletResponse response)
Enqueue the flash buy request
|
protected java.lang.String |
enqueueFailedHandled(java.lang.String productCode,
HttpServletRequest request,
java.lang.String flashbuyButtonLabel) |
protected AbstractPageModel |
getPageForProduct(ProductModel product)
Replace the product page of super class with flash buy product page.
|
java.lang.String |
getShowResultInterval(HttpServletRequest request) |
protected void |
populateProductData(ProductData productData,
Model model)
Extend the super class methed, and populate flash buy related data.
|
java.lang.String |
productDetail(java.lang.String encodedProductCode,
Model model,
HttpServletRequest request,
HttpServletResponse response)
Data preparation and necessary check before showing up the flash buy product details page.
|
getGalleryImages, getReviewValidator, handleUnknownIdentifierException, populateProductDetailForDisplay, postReview, reviewHtml, setUpReviewPage, showQuickView, showZoomImages, sortVariantOptionData, updatePageTitle, writeReview, writeReviewprotected static final Logger LOG
protected static final java.lang.String PRODUCT_CODE_PATH_VARIABLE_PATTERN
protected static final java.lang.String PRODUCT_ENQUEUE
protected static final java.lang.String PRODUCT_RESULT
protected static final java.lang.String FLASHBUY_URL
public java.lang.String productDetail(java.lang.String encodedProductCode,
Model model,
HttpServletRequest request,
HttpServletResponse response)
throws CMSItemNotFoundException,
java.io.UnsupportedEncodingException
productDetail in class ProductPageControllerCMSItemNotFoundExceptionjava.io.UnsupportedEncodingExceptionprotected AbstractPageModel getPageForProduct(ProductModel product) throws CMSItemNotFoundException
getPageForProduct in class ProductPageControllerCMSItemNotFoundExceptionprotected void populateProductData(ProductData productData, Model model)
populateProductData in class ProductPageControllerpublic java.lang.String enqueue(java.lang.String encodedProductCode,
java.lang.String requestBody,
HttpServletRequest request,
HttpServletResponse response)
throws JSONException
JSONExceptionpublic java.lang.String getShowResultInterval(HttpServletRequest request)
protected java.lang.String enqueueFailedHandled(java.lang.String productCode,
HttpServletRequest request,
java.lang.String flashbuyButtonLabel)
throws JSONException
JSONExceptionCopyright © 2018 SAP SE. All Rights Reserved.