Class CustomerListController


  • @Controller
    @RequestMapping("/assisted-service-querying")
    public class CustomerListController
    extends AbstractSearchPageController
    Controller to handle querying requests for ASM and handling customer lists implementations
    • Constructor Detail

      • CustomerListController

        public CustomerListController()
    • 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 data
        page - page number in case we have more than 1 page of data
        showMode - either to show all or to show pages (default is page)
        sortCode - the sort code for the list of customers
        customerListUid - the customer list UId to get customers for
        query - the query provided by the user to filter the results
        Returns:
        paginated view with customer data