Class ConstituentsSearchRequest
java.lang.Object
com.persequor.extension.eventservice.ConstituentsSearchRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddEpcs
(Collection<String> epcs) copy()
This will create a copy of the current request.int
getDepth()
getEpcs()
static ConstituentsSearchRequest
of
(QuantityElement... quantityElements) static ConstituentsSearchRequest
static ConstituentsSearchRequest
of
(Collection<String> epcs) static ConstituentsSearchRequest
of
(List<QuantityElement> quantityElements) setDepth
(int depth) setFilter
(Predicate<Constituent> filter) Sets filter predicate which decides if a constituent should be included in the resulting constituent tree.setFromDate
(ZonedDateTime fromDate) setToDate
(ZonedDateTime toDate) This will set the expansion mode of the EPCs in the request.
-
Method Details
-
of
-
of
-
of
-
of
-
getEpcs
-
getDepth
public int getDepth() -
getFromDate
-
getQuantityElements
-
getToDate
-
setFromDate
-
setDepth
-
setToDate
-
addEpcs
-
withEpcExpansion
This will set the expansion mode of the EPCs in the request. This will not affect EPC in the recursive lookups only the ones in the Request will be expanded. The default is DISABLED.- Parameters:
mode
- the mode of EPC Expansion to use.- Returns:
- a search request for further chaining
- See Also:
-
getFilter
- See Also:
-
setFilter
Sets filter predicate which decides if a constituent should be included in the resulting constituent tree.- Parameters:
filter
- A predicate implementation. Can be used for filtering and pruning. The lambda/method passed should return true if the constituent is needed to be included and false if not.- Returns:
- ConstituentsSearchRequest this request
-
getEpcExpanderMode
-
copy
This will create a copy of the current request. This is useful if you want to modify the request without affecting the original request.- Returns:
- a copy of the current request
-