Interface OrgUnitDao<T extends OrgUnitModel>
- All Superinterfaces:
PagedGenericDao<T>
- All Known Implementing Classes:
DefaultB2BOrgUnitDao,DefaultOrgUnitDao
Interface for
OrgUnitModel related paged data access.-
Method Summary
Modifier and TypeMethodDescription<U extends OrgUnitModel>
SearchPageData<U>findAllUnits(List<U> units, PageableData pageableData) Find all units in the branches.<U extends PrincipalModel>
SearchPageData<U>findMembersOfType(OrgUnitModel unit, Class<U> memberType, PageableData pageableData) Find all unit members of a given type.<U extends PrincipalModel>
SearchPageData<U>findMembersOfType(Class<U> memberType, PageableData pageableData, String... orgUnitUids) Find all units members of a given type.findQuotesForEmployee(EmployeeModel employee, Set<QuoteState> states, PageableData pageableData) Returns allQuoteModelinstances associated with at least one of the given employee's units.<U extends OrgUnitModel>
List<U>findRootUnits(Class<U> type, PageableData pageableData) Find all root units of the given type, i.e.Methods inherited from interface de.hybris.platform.commerceservices.search.dao.PagedGenericDao
find, find, find, find
-
Method Details
-
findRootUnits
Find all root units of the given type, i.e. the ones that don't have a parent unit of the same type.- Parameters:
type- the type to find root units forpageableData- paging information- Returns:
- paged search results
-
findMembersOfType
<U extends PrincipalModel> SearchPageData<U> findMembersOfType(OrgUnitModel unit, Class<U> memberType, PageableData pageableData) Find all unit members of a given type.- Parameters:
unit- the unit to find all members formemberType- the model type of the members to findpageableData- paging information- Returns:
- paged search results
-
findMembersOfType
<U extends PrincipalModel> SearchPageData<U> findMembersOfType(Class<U> memberType, PageableData pageableData, String... orgUnitUids) Find all units members of a given type.- Type Parameters:
U- the generic type- Parameters:
memberType- the model type of the members to findpageableData- paging informationorgUnitUids- the orgUnit uids to find all members for- Returns:
SearchPageDatathe search page data
-
findQuotesForEmployee
SearchPageData<QuoteModel> findQuotesForEmployee(EmployeeModel employee, Set<QuoteState> states, PageableData pageableData) Returns allQuoteModelinstances associated with at least one of the given employee's units.- Parameters:
employee- an employee who is a member of an organizational unitpageableData- paging information- Returns:
SearchPageDatacontaining the paged search result
-
findAllUnits
Find all units in the branches.- Type Parameters:
U- the generic type- Parameters:
units- the start point units to find their branches unitspageableData- paging information- Returns:
SearchPageDatathe search page data
-