Class ContentPageRedirectSupplier
java.lang.Object
de.hybris.platform.cmsocc.redirect.suppliers.impl.AbstractPageRedirectSupplier
de.hybris.platform.cmsocc.redirect.suppliers.impl.ContentPageRedirectSupplier
- All Implemented Interfaces:
PageRedirectSupplier
Implementation of
PageRedirectSupplier to handle ContentPageModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetPreviewCode(PreviewDataModel previewData) Retrieves the category or product code from preview data.getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Constructs the redirect url given the http servlet request and the preview data.voidpopulateParams(PreviewDataModel previewData, RequestParamData paramData) Populates the request parameters to make the request to redirect.booleanshouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Determines whether to redirect the request depending upon the logic in supplier.Methods inherited from class de.hybris.platform.cmsocc.redirect.suppliers.impl.AbstractPageRedirectSupplier
buildRequestParamData, getConstrainedBy, getPagePredicate, getTypeCodePredicate, setPagePredicate, setTypeCodePredicate, shouldNotRedirect
-
Constructor Details
-
ContentPageRedirectSupplier
public ContentPageRedirectSupplier()
-
-
Method Details
-
shouldRedirect
public boolean shouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Description copied from interface:PageRedirectSupplierDetermines whether to redirect the request depending upon the logic in supplier.- Specified by:
shouldRedirectin interfacePageRedirectSupplier- Overrides:
shouldRedirectin classAbstractPageRedirectSupplier- Parameters:
request- - the http requestpreviewData- - the preview data- Returns:
trueif it needs to redirect the request;falseotherwise.
-
populateParams
Description copied from class:AbstractPageRedirectSupplierPopulates the request parameters to make the request to redirect.- Specified by:
populateParamsin classAbstractPageRedirectSupplier- Parameters:
previewData- - the preview dataparamData- - the request path and query parameters
-
getRedirectUrl
public String getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Description copied from interface:PageRedirectSupplierConstructs the redirect url given the http servlet request and the preview data.- Specified by:
getRedirectUrlin interfacePageRedirectSupplier- Overrides:
getRedirectUrlin classAbstractPageRedirectSupplier- Parameters:
request- - the http servlet requestpreviewData- - the preview data- Returns:
- the redirect url
-
getPreviewCode
Description copied from class:AbstractPageRedirectSupplierRetrieves the category or product code from preview data.- Specified by:
getPreviewCodein classAbstractPageRedirectSupplier- Parameters:
previewData- - the preview data- Returns:
- the category code; can be
NULL
-