Class DefaultInStoreCustomerListSearchStrategy
- java.lang.Object
-
- de.hybris.platform.assistedserviceservices.strategy.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 Summary
Constructors Constructor Description DefaultInStoreCustomerListSearchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CustomerGroupDaogetCustomerGroupDao()<T extends CustomerModel>
SearchPageData<T>getPagedCustomers(java.lang.String customerListUid, java.lang.String employeeUid, PageableData pageableData, java.util.Map<java.lang.String,java.lang.Object> parameterMap)Gets customer data list based on specific implementationprotected UserServicegetUserService()voidsetCustomerGroupDao(CustomerGroupDao customerGroupDao)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
getPagedCustomers
public <T extends CustomerModel> SearchPageData<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: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
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCustomerGroupDao
protected CustomerGroupDao getCustomerGroupDao()
-
setCustomerGroupDao
public void setCustomerGroupDao(CustomerGroupDao customerGroupDao)
-
-