Class CancelReturnPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
-
- de.hybris.platform.orderselfserviceaddon.controllers.pages.CancelReturnPageController
-
@Controller @RequestMapping("/my-account/returns") public class CancelReturnPageController extends AbstractSearchPageControllerController for cancel return page
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowMode
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringBREADCRUMBS_ATTRprotected static java.lang.StringCANCEL_RETURN_CMS_PAGEprotected static java.lang.StringCANCEL_RETURN_LABELprotected static java.lang.StringMY_ACCOUNT_RETURNSprotected static java.lang.StringREDIRECT_TO_RETURNS_HISTORY_PAGEprotected static java.lang.StringRETURN_BREADCRUMB_LABELprotected static java.lang.StringRETURN_HISTORY_LABELprotected static java.lang.StringRETURN_REQUEST_LABEL-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMIT
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description CancelReturnPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResourceBreadcrumbBuildergetAccountBreadcrumbBuilder()protected BaseStoreServicegetBaseStoreService()protected OmsReturnFacadegetOmsReturnFacade()protected Converter<ProductModel,ProductData>getProductConverter()protected ProductServicegetProductService()protected booleanisUserValidForOrder(OrderData orderData)Validates if the currentCustomerDatamatches the user in theOrderDataand that it is part of the sameBaseStoreModelprotected voidpopulateReturnEntry(ReturnEntryData returnEntryData)Populates the givenReturnEntryDatawith its associatedProductDatajava.lang.StringshowCancelReturnPage(java.lang.String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)Displays the cancel return pagejava.lang.StringsubmitCancelReturnPage(java.lang.String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)Submits the return cancellation request-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, getSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacets
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Field Detail
-
BREADCRUMBS_ATTR
protected static final java.lang.String BREADCRUMBS_ATTR
- See Also:
- Constant Field Values
-
MY_ACCOUNT_RETURNS
protected static final java.lang.String MY_ACCOUNT_RETURNS
- See Also:
- Constant Field Values
-
REDIRECT_TO_RETURNS_HISTORY_PAGE
protected static final java.lang.String REDIRECT_TO_RETURNS_HISTORY_PAGE
- See Also:
- Constant Field Values
-
CANCEL_RETURN_CMS_PAGE
protected static final java.lang.String CANCEL_RETURN_CMS_PAGE
- See Also:
- Constant Field Values
-
RETURN_HISTORY_LABEL
protected static final java.lang.String RETURN_HISTORY_LABEL
- See Also:
- Constant Field Values
-
RETURN_REQUEST_LABEL
protected static final java.lang.String RETURN_REQUEST_LABEL
- See Also:
- Constant Field Values
-
RETURN_BREADCRUMB_LABEL
protected static final java.lang.String RETURN_BREADCRUMB_LABEL
- See Also:
- Constant Field Values
-
CANCEL_RETURN_LABEL
protected static final java.lang.String CANCEL_RETURN_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
showCancelReturnPage
@RequestMapping(value="{returnCode:.*}/cancel", method={POST,GET}) public java.lang.String showCancelReturnPage(@PathVariable("returnCode") java.lang.String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundExceptionDisplays the cancel return page- Parameters:
returnCode- theReturnRequestModel.CODEmodel- theModelto which page attributes are addedredirectModel- theRedirectAttributes- Returns:
- View String
- Throws:
CMSItemNotFoundException- if the CMS content is not found
-
submitCancelReturnPage
@RequestMapping(value="/{returnCode:.*}/cancel/submit", method=POST) public java.lang.String submitCancelReturnPage(@PathVariable("returnCode") java.lang.String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundExceptionSubmits the return cancellation request- Parameters:
returnCode- theReturnRequestModel.CODEtheModelto which page attributes are addedredirectModel- theRedirectAttributes- Returns:
- View String
- Throws:
CMSItemNotFoundException- if the CMS content is not found
-
populateReturnEntry
protected void populateReturnEntry(ReturnEntryData returnEntryData)
Populates the givenReturnEntryDatawith its associatedProductData- Parameters:
returnEntryData- theReturnEntryDatawhich is to be populated
-
isUserValidForOrder
protected boolean isUserValidForOrder(OrderData orderData)
Validates if the currentCustomerDatamatches the user in theOrderDataand that it is part of the sameBaseStoreModel- Parameters:
orderData- theOrderData- Returns:
- true if the order is tied to the current customer and the current base store.
-
getOmsReturnFacade
protected OmsReturnFacade getOmsReturnFacade()
-
getAccountBreadcrumbBuilder
protected ResourceBreadcrumbBuilder getAccountBreadcrumbBuilder()
-
getProductConverter
protected Converter<ProductModel,ProductData> getProductConverter()
-
getProductService
protected ProductService getProductService()
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
-