Interface OrgUnitDao<T extends OrgUnitModel>
-
- All Superinterfaces:
PagedGenericDao<T>
- All Known Implementing Classes:
DefaultB2BOrgUnitDao
,DefaultOrgUnitDao
public interface OrgUnitDao<T extends OrgUnitModel> extends PagedGenericDao<T>
Interface forOrgUnitModel
related paged data access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U extends OrgUnitModel>
SearchPageData<U>findAllUnits(java.util.List<U> units, PageableData pageableData)
Find all units in the branches.<U extends PrincipalModel>
SearchPageData<U>findMembersOfType(OrgUnitModel unit, java.lang.Class<U> memberType, PageableData pageableData)
Find all unit members of a given type.<U extends PrincipalModel>
SearchPageData<U>findMembersOfType(java.lang.Class<U> memberType, PageableData pageableData, java.lang.String... orgUnitUids)
Find all units members of a given type.SearchPageData<QuoteModel>
findQuotesForEmployee(EmployeeModel employee, java.util.Set<QuoteState> states, PageableData pageableData)
Returns allQuoteModel
instances associated with at least one of the given employee's units.<U extends OrgUnitModel>
java.util.List<U>findRootUnits(java.lang.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 Detail
-
findRootUnits
<U extends OrgUnitModel> java.util.List<U> findRootUnits(java.lang.Class<U> type, PageableData pageableData)
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, java.lang.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(java.lang.Class<U> memberType, PageableData pageableData, java.lang.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:
SearchPageData
the search page data
-
findQuotesForEmployee
SearchPageData<QuoteModel> findQuotesForEmployee(EmployeeModel employee, java.util.Set<QuoteState> states, PageableData pageableData)
Returns allQuoteModel
instances 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:
SearchPageData
containing the paged search result
-
findAllUnits
<U extends OrgUnitModel> SearchPageData<U> findAllUnits(java.util.List<U> units, PageableData pageableData)
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:
SearchPageData
the search page data
-
-