Class AncestryRequest
java.lang.Object
com.persequor.extension.eventservice.AncestryRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddEpcs
(Collection<String> epcs) addQuantities
(QuantityElement... quantities) addQuantities
(Collection<QuantityElement> quantities) copy()
This will create a copy of the current request.int
getDepth()
getEpcs()
getFrom()
getTo()
includeEvents
(boolean includeEvents) boolean
static AncestryRequest
of
(QuantityElement... quantities) static AncestryRequest
static AncestryRequest
of
(Collection<String> epcs) setAt
(ZonedDateTime at) Deprecated.Use `from` and `to` instead, since `from` is required for search by quantity elements.setEpcs
(Collection<String> epcs) setFrom
(ZonedDateTime from) setTo
(ZonedDateTime to) This will set the expansion mode of the EPCs in the request.
-
Method Details
-
of
-
of
-
of
-
setEpcs
-
addEpcs
-
addEpcs
-
addQuantities
-
addQuantities
-
setDepth
-
includeEvents
-
setAt
Deprecated.Use `from` and `to` instead, since `from` is required for search by quantity elements. Search by EPCs is still using to/at only.- Parameters:
at
-- Returns:
-
setFrom
-
setTo
-
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:
-
getDepth
public int getDepth() -
getFrom
-
getTo
-
getEpcs
-
getQuantities
-
getEpcExpanderMode
-
isIncludeEvents
public boolean isIncludeEvents() -
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
-