Class DefaultRootItemSearchService
java.lang.Object
de.hybris.platform.integrationservices.search.impl.DefaultRootItemSearchService
- All Implemented Interfaces:
RootItemSearchService
Default implementation of
RootItemSearchService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRootItemSearchService(@NotNull DescriptorFactory descriptorFactory) Instantiate theDefaultItemSearchService -
Method Summary
Modifier and TypeMethodDescription@NotNull RootItemSearchResultfindRoots(ItemModel item, IntegrationObjectModel io) Searches for a root item within the providedItemModelusing theIntegrationObjectModeldefinition.@NotNull RootItemSearchResultfindRoots(ItemModel item, TypeDescriptor typeDescriptor) Searches for a root item within the providedItemModelusing theTypeDescriptordefinition.
-
Constructor Details
-
DefaultRootItemSearchService
Instantiate theDefaultItemSearchService- Parameters:
descriptorFactory- the descriptor factory to create type descriptor
-
-
Method Details
-
findRoots
Description copied from interface:RootItemSearchServiceSearches for a root item within the providedItemModelusing theIntegrationObjectModeldefinition. Root item may be the itself.- Specified by:
findRootsin interfaceRootItemSearchService- Parameters:
item- the item to navigate to the root item fromio- integration object definition- Returns:
RootItemSearchResultresult of the search
-
findRoots
@NotNull public @NotNull RootItemSearchResult findRoots(ItemModel item, TypeDescriptor typeDescriptor) Description copied from interface:RootItemSearchServiceSearches for a root item within the providedItemModelusing theTypeDescriptordefinition. Root item may be the itself.- Specified by:
findRootsin interfaceRootItemSearchService- Parameters:
item- the item to navigate to the root item fromtypeDescriptor- integration object item descriptor- Returns:
RootItemSearchResultresult of the search
-