Class CustomerListController
- 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.assistedservicestorefront.controllers.CustomerListController
-
@Controller @RequestMapping("/assisted-service-querying") public class CustomerListController extends AbstractSearchPageControllerController to handle querying requests for ASM and handling customer lists implementations
-
-
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 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 CustomerListController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.BooleancalculateShowAll(SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)protected java.lang.BooleancalculateShowPaged(SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)protected PageableDatacreatePageableData(int pageNumber, int pageSize, java.lang.String sortCode, AbstractSearchPageController.ShowMode showMode)java.lang.StringgetCustomersListPopup(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response)Method responsible for getting available customer list for agent and return a popup with the datajava.lang.StringlistPaginatedCustomers(org.springframework.ui.Model model, int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, java.lang.String customerListUid, java.lang.String query)Responsible for getting list of customers based on a customer List UId and handle pagination and sorting of this list as wellprotected voidpopulateModel(org.springframework.ui.Model model, SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
convertBreadcrumbsToFacets, createEmptyPagination, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, getSearchPageSize, isShowAllAllowed, 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
-
-
-
-
Method Detail
-
getCustomersListPopup
@RequestMapping(value="/availableCustomerLists", method=GET) public java.lang.String getCustomersListPopup(org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse response)Method responsible for getting available customer list for agent and return a popup with the data- Parameters:
model- model to hold the populated data- Returns:
- the popup with list of customers list populated
-
listPaginatedCustomers
@RequestMapping(value="/listCustomers", method=GET) public java.lang.String listPaginatedCustomers(org.springframework.ui.Model model, @RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",required=false) java.lang.String sortCode, @RequestParam(value="customerListUId",required=false) java.lang.String customerListUid, @RequestParam(value="query",required=false) java.lang.String query)Responsible for getting list of customers based on a customer List UId and handle pagination and sorting of this list as well- Parameters:
model- to hold populated datapage- page number in case we have more than 1 page of datashowMode- either to show all or to show pages (default is page)sortCode- the sort code for the list of customerscustomerListUid- the customer list UId to get customers forquery- the query provided by the user to filter the results- Returns:
- paginated view with customer data
-
populateModel
protected void populateModel(org.springframework.ui.Model model, SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)- Overrides:
populateModelin classAbstractSearchPageController
-
createPageableData
protected PageableData createPageableData(int pageNumber, int pageSize, java.lang.String sortCode, AbstractSearchPageController.ShowMode showMode)
- Overrides:
createPageableDatain classAbstractSearchPageController
-
calculateShowAll
protected java.lang.Boolean calculateShowAll(SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)
- Overrides:
calculateShowAllin classAbstractSearchPageController
-
calculateShowPaged
protected java.lang.Boolean calculateShowPaged(SearchPageData<?> searchPageData, AbstractSearchPageController.ShowMode showMode)
- Overrides:
calculateShowPagedin classAbstractSearchPageController
-
-