Class B2BCustomerListSearchStrategy

  • All Implemented Interfaces:
    CustomerListSearchStrategy

    public class B2BCustomerListSearchStrategy
    extends java.lang.Object
    implements CustomerListSearchStrategy
    Concrete implementation of the customer list search strategy for getting a list of b2b customers assigned to an employee through their common org unit association. The strategy will first query for the Sales Unit of which the employee is a member. Second step is to get the list of B2BUnits that are members of the same Sales Unit as the employee. In the end the strategy returns the list of all b2b customers that are members of the B2BUnits found in the previous step.
    • Constructor Detail

      • B2BCustomerListSearchStrategy

        public B2BCustomerListSearchStrategy()
    • Method Detail

      • getPagedCustomers

        public <T extends CustomerModelSearchPageData<T> getPagedCustomers​(java.lang.String customerListUid,
                                                                             java.lang.String employeeUid,
                                                                             PageableData pageableData,
                                                                             java.util.Map<java.lang.String,​java.lang.Object> parameterMap)
        Description copied from interface: CustomerListSearchStrategy
        Gets customer data list based on specific implementation
        Specified by:
        getPagedCustomers in interface CustomerListSearchStrategy
        Parameters:
        customerListUid - customer list Uid to fetch
        employeeUid - the employee Uid
        pageableData - paging information to return the data in a paginated fashion
        parameterMap - extra parameters supplied for this call
        Returns:
        list of customer data
      • getSearchTermParameter

        protected java.lang.String getSearchTermParameter​(java.util.Map<java.lang.String,​java.lang.Object> parameterMap)
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)
      • setB2bCommerceUserService

        public void setB2bCommerceUserService​(B2BCommerceUserService b2bCommerceUserService)
      • getOrgUnitDao

        protected OrgUnitDao getOrgUnitDao()
      • setOrgUnitDao

        public void setOrgUnitDao​(OrgUnitDao orgUnitDao)