Class B2BCustomerListSearchStrategy
- java.lang.Object
-
- de.hybris.platform.b2b.strategies.impl.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringQUERY
-
Constructor Summary
Constructors Constructor Description B2BCustomerListSearchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected B2BCommerceUserServicegetB2bCommerceUserService()protected OrgUnitDaogetOrgUnitDao()<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 java.lang.StringgetSearchTermParameter(java.util.Map<java.lang.String,java.lang.Object> parameterMap)protected UserServicegetUserService()voidsetB2bCommerceUserService(B2BCommerceUserService b2bCommerceUserService)voidsetOrgUnitDao(OrgUnitDao orgUnitDao)voidsetUserService(UserService userService)
-
-
-
Field Detail
-
QUERY
protected static final java.lang.String QUERY
- See Also:
- Constant Field Values
-
-
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
-
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)
-
getB2bCommerceUserService
protected B2BCommerceUserService getB2bCommerceUserService()
-
setB2bCommerceUserService
public void setB2bCommerceUserService(B2BCommerceUserService b2bCommerceUserService)
-
getOrgUnitDao
protected OrgUnitDao getOrgUnitDao()
-
setOrgUnitDao
public void setOrgUnitDao(OrgUnitDao orgUnitDao)
-
-