Class GiaiMatcher
java.lang.Object
com.persequor.extension.eventservice.GiaiMatcher
- All Implemented Interfaces:
IReusableAssetMatcher
Recognizes EPC as a reusable asset if it is a Global Individual Asset Identifier.
Based on EPC Tag Data Standard v1.13, chapter 6.3.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the given EPC is reusable (long-living).
-
Constructor Details
-
GiaiMatcher
public GiaiMatcher()
-
-
Method Details
-
isKnownToBeReusableAsset
Description copied from interface:IReusableAssetMatcher
Returns true if the given EPC is reusable (long-living). Be careful when changing/removing an implementation of this interface, you might have to reindex all events. For more information consult documentation on PSQR Portal.If your implementation throws an exception, Saga will log this and assume you returned false.
- Specified by:
isKnownToBeReusableAsset
in interfaceIReusableAssetMatcher
- Parameters:
epc
- the EPC to evaluate- Returns:
- true if the given EPC is reusable (long-living), otherwise false
-