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 AbstractSearchPageController
Controller for cancel return page
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowModeNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMITFields 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_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceBreadcrumbBuilderprotected BaseStoreServiceprotected OmsReturnFacadeprotected Converter<ProductModel,ProductData> protected ProductServiceprotected 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 associatedProductDatashowCancelReturnPage(String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Displays the cancel return pagesubmitCancelReturnPage(String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Submits the return cancellation requestMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, getSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacetsMethods 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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
BREADCRUMBS_ATTR
- See Also:
-
MY_ACCOUNT_RETURNS
- See Also:
-
REDIRECT_TO_RETURNS_HISTORY_PAGE
- See Also:
-
CANCEL_RETURN_CMS_PAGE
- See Also:
-
RETURN_HISTORY_LABEL
- See Also:
-
RETURN_REQUEST_LABEL
- See Also:
-
RETURN_BREADCRUMB_LABEL
- See Also:
-
CANCEL_RETURN_LABEL
- See Also:
-
-
Constructor Details
-
CancelReturnPageController
public CancelReturnPageController()
-
-
Method Details
-
showCancelReturnPage
@RequestMapping(value="{returnCode:.*}/cancel", method={POST,GET}) public String showCancelReturnPage(@PathVariable("returnCode") String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException Displays 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 String submitCancelReturnPage(@PathVariable("returnCode") String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException Submits 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
Populates the givenReturnEntryDatawith its associatedProductData- Parameters:
returnEntryData- theReturnEntryDatawhich is to be populated
-
isUserValidForOrder
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
-
getAccountBreadcrumbBuilder
-
getProductConverter
-
getProductService
-
getBaseStoreService
-