Class B2BCustomerListSearchStrategy
java.lang.Object
de.hybris.platform.b2b.strategies.impl.B2BCustomerListSearchStrategy
- All Implemented Interfaces:
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B2BCommerceUserServiceprotected OrgUnitDao<T extends CustomerModel>
SearchPageData<T>getPagedCustomers(String customerListUid, String employeeUid, PageableData pageableData, Map<String, Object> parameterMap) Gets customer data list based on specific implementationprotected StringgetSearchTermParameter(Map<String, Object> parameterMap) protected UserServicevoidsetB2bCommerceUserService(B2BCommerceUserService b2bCommerceUserService) voidsetOrgUnitDao(OrgUnitDao orgUnitDao) voidsetUserService(UserService userService)
-
Field Details
-
QUERY
- See Also:
-
-
Constructor Details
-
B2BCustomerListSearchStrategy
public B2BCustomerListSearchStrategy()
-
-
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
-
getSearchTermParameter
-
getUserService
-
setUserService
-
getB2bCommerceUserService
-
setB2bCommerceUserService
-
getOrgUnitDao
-
setOrgUnitDao
-