Interface RelatedItemsCollector
- All Known Implementing Classes:
DefaultRelatedItemsCollector
public interface RelatedItemsCollector
An interface represents collector that gathers relevant items for a given
theSource.
Note:
Please see ItemVisitorRegistry ItemVisitor for more information
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncollect(T theSource, ItemVisitor<T> theStrategy, Map<String, Object> ctx) Travers giventheSourceitem against givenItemVisitorand returns all collected relatives.Travers giventheSourceitem against best matchingItemVisitorand returns all collected relatives.
-
Field Details
-
MAX_RECURSION_DEPTH
- See Also:
-
-
Method Details
-
collect
Travers giventheSourceitem against best matchingItemVisitorand returns all collected relatives. Note:- Type Parameters:
T- specific model class derived from ItemModel- Parameters:
theSource- given itemctx- ctx given context- Returns:
- all relatives for a given
theSourceitem
-
collect
<T extends ItemModel> List<ItemModel> collect(T theSource, ItemVisitor<T> theStrategy, Map<String, Object> ctx) Travers giventheSourceitem against givenItemVisitorand returns all collected relatives.- Type Parameters:
T-specific model class derived from ItemModel - Parameters:
theSource- given itemtheStrategy- givenItemVisitorctx- given context- Returns:
- all relatives for a given
theSourceitem and giventheStrategy
-