Class DefaultInStoreCustomerListSearchStrategy
java.lang.Object
de.hybris.platform.assistedserviceservices.strategy.DefaultInStoreCustomerListSearchStrategy
- All Implemented Interfaces:
CustomerListSearchStrategy
public class DefaultInStoreCustomerListSearchStrategy
extends 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomerGroupDao<T extends CustomerModel>
SearchPageData<T>getPagedCustomers(String customerListUid, String employeeUid, PageableData pageableData, Map<String, Object> parameterMap) Gets customer data list based on specific implementationprotected UserServicevoidsetCustomerGroupDao(CustomerGroupDao customerGroupDao) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultInStoreCustomerListSearchStrategy
public DefaultInStoreCustomerListSearchStrategy()
-
-
Method Details
-
getPagedCustomers
public <T extends CustomerModel> SearchPageData<T> getPagedCustomers(String customerListUid, String employeeUid, PageableData pageableData, Map<String, Object> parameterMap) Description copied from interface:CustomerListSearchStrategyGets customer data list based on specific implementation- Specified by:
getPagedCustomersin interfaceCustomerListSearchStrategy- Parameters:
customerListUid- customer list Uid to fetchemployeeUid- the employee UidpageableData- paging information to return the data in a paginated fashionparameterMap- extra parameters supplied for this call- Returns:
- list of customer data
-
getUserService
-
setUserService
-
getCustomerGroupDao
-
setCustomerGroupDao
-