Package de.hybris.platform.b2b.dao.impl
Class DefaultPagedB2BCustomerDao
java.lang.Object
de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao<B2BCustomerModel>
de.hybris.platform.b2b.dao.impl.DefaultPagedB2BCustomerDao
- All Implemented Interfaces:
PagedB2BCustomerDao<B2BCustomerModel>,PagedGenericDao<B2BCustomerModel>
public class DefaultPagedB2BCustomerDao
extends DefaultPagedGenericDao<B2BCustomerModel>
implements PagedB2BCustomerDao<B2BCustomerModel>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(PageableData pageableData) Searches for all instances of model given as a generic type.findPagedApproversForUnitByGroupMembership(PageableData pageableData, String unit, String... userGroupid) Paged search to findB2BCustomerModelby B2BUnit or User Groups.findPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupid) Paged search to findB2BCustomerModelby User Group.findPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupid) Paged search to findB2BCustomerModelby User Group.findPagedCustomersForUnit(PageableData pageableData, String unit) aged search to findB2BCustomerModelby B2BUnit.findPagedCustomersForUnitByGroupMembership(PageableData pageableData, String unit, String... userGroupid) Paged search to findB2BCustomerModelby B2BUnit and User Groups.Methods inherited from class de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao
appendOrderByClausesToBuilder, appendWhereClausesToBuilder, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createQueryString, createSortQueryData, createSortQueryData, createSortQueryData, find, find, find, getPagedFlexibleSearchService, setPagedFlexibleSearchServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.search.dao.PagedGenericDao
find, find, find
-
Field Details
-
LOG
public static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
DefaultPagedB2BCustomerDao
-
-
Method Details
-
find
Description copied from interface:PagedGenericDaoSearches for all instances of model given as a generic type.- Specified by:
findin interfacePagedGenericDao<B2BCustomerModel>- Overrides:
findin classDefaultPagedGenericDao<B2BCustomerModel>- Parameters:
pageableData- the page of results to return- Returns:
- The matching page of search results
-
findPagedCustomersByGroupMembership
public SearchPageData<B2BCustomerModel> findPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupid) Description copied from interface:PagedB2BCustomerDaoPaged search to findB2BCustomerModelby User Group.- Specified by:
findPagedCustomersByGroupMembershipin interfacePagedB2BCustomerDao<B2BCustomerModel>- Parameters:
pageableData- The page data to be filled with the results.userGroupid- The uid of the desired user group.- Returns:
- Customers found in search.
-
findPagedApproversForUnitByGroupMembership
public SearchPageData<B2BCustomerModel> findPagedApproversForUnitByGroupMembership(PageableData pageableData, String unit, String... userGroupid) Description copied from interface:PagedB2BCustomerDaoPaged search to findB2BCustomerModelby B2BUnit or User Groups.- Specified by:
findPagedApproversForUnitByGroupMembershipin interfacePagedB2BCustomerDao<B2BCustomerModel>- Parameters:
pageableData- The page data to be filled with the results.unit- The uid of the desired B2BUnit.userGroupid- The uids of the desired user groups.- Returns:
- Customers found in search.
-
findPagedCustomersForUnitByGroupMembership
public SearchPageData<B2BCustomerModel> findPagedCustomersForUnitByGroupMembership(PageableData pageableData, String unit, String... userGroupid) Description copied from interface:PagedB2BCustomerDaoPaged search to findB2BCustomerModelby B2BUnit and User Groups.- Specified by:
findPagedCustomersForUnitByGroupMembershipin interfacePagedB2BCustomerDao<B2BCustomerModel>- Parameters:
pageableData- The page data to be filled with the results.unit- The uid of the desired B2BUnit.userGroupid- The uids of the desired user groups.- Returns:
- Customers found in search.
-
findPagedCustomersBySearchTermAndGroupMembership
public SearchPageData<B2BCustomerModel> findPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupid) Description copied from interface:PagedB2BCustomerDaoPaged search to findB2BCustomerModelby User Group.- Specified by:
findPagedCustomersBySearchTermAndGroupMembershipin interfacePagedB2BCustomerDao<B2BCustomerModel>- Parameters:
pageableData- The page data to be filled with the results.searchTerm- Search string that is used to filter the results using the customer name or his unit name. A match can occur in either the customer name or his unit name for the customer to be returned in the results.userGroupid- The uid of the desired user group.- Returns:
- Customers found in search.
-
findPagedCustomersForUnit
public SearchPageData<B2BCustomerModel> findPagedCustomersForUnit(PageableData pageableData, String unit) Description copied from interface:PagedB2BCustomerDaoaged search to findB2BCustomerModelby B2BUnit.- Specified by:
findPagedCustomersForUnitin interfacePagedB2BCustomerDao<B2BCustomerModel>- Parameters:
pageableData- The page data to be filled with the results.unit- The uid of the desired B2BUnit.- Returns:
- Customers found in search.
-