public class CustomerListController
extends AbstractSearchPageController
| Constructor and Description |
|---|
CustomerListController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Boolean |
calculateShowAll(SearchPageData<?> searchPageData,
ShowMode showMode) |
protected java.lang.Boolean |
calculateShowPaged(SearchPageData<?> searchPageData,
ShowMode showMode) |
protected PageableData |
createPageableData(int pageNumber,
int pageSize,
java.lang.String sortCode,
ShowMode showMode) |
java.lang.String |
getCustomersListPopup(Model model,
HttpServletResponse response)
Method responsible for getting available customer list for agent and return a popup with the data
|
java.lang.String |
listPaginatedCustomers(Model model,
int page,
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 well
|
protected void |
populateModel(Model model,
SearchPageData<?> searchPageData,
ShowMode showMode) |
public java.lang.String getCustomersListPopup(Model model,
HttpServletResponse response)
model - model to hold the populated datapublic java.lang.String listPaginatedCustomers(Model model,
int page,
ShowMode showMode,
java.lang.String sortCode,
java.lang.String customerListUid,
java.lang.String query)
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 resultsprotected void populateModel(Model model,
SearchPageData<?> searchPageData,
ShowMode showMode)
protected PageableData createPageableData(int pageNumber, int pageSize, java.lang.String sortCode, ShowMode showMode)
protected java.lang.Boolean calculateShowAll(SearchPageData<?> searchPageData, ShowMode showMode)
protected java.lang.Boolean calculateShowPaged(SearchPageData<?> searchPageData, ShowMode showMode)
Copyright © 2018 SAP SE. All Rights Reserved.