Class DefaultInStoreCustomerListSearchStrategy

  • All Implemented Interfaces:
    CustomerListSearchStrategy

    public class DefaultInStoreCustomerListSearchStrategy
    extends java.lang.Object
    implements CustomerListSearchStrategy
    Concrete implementation of the customer list search strategy for getting current customers in store The strategy will first query for groups for the supplied employee Uid which would result in list of store employees groups that this agent belongs to Second step will be making sure that these groups have stores associated to them, then loop over these groups and get the customers who are member of these stores finding customers belonging to store will be done based on a naming convention which would be like appending the prefix "POS_" before the store upper case name and then retrieving customers that are members of these groups
    • Constructor Detail

      • DefaultInStoreCustomerListSearchStrategy

        public DefaultInStoreCustomerListSearchStrategy()
    • 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
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)
      • setCustomerGroupDao

        public void setCustomerGroupDao​(CustomerGroupDao customerGroupDao)