Class GiaiMatcher

java.lang.Object
com.persequor.extension.eventservice.GiaiMatcher
All Implemented Interfaces:
IReusableAssetMatcher

public class GiaiMatcher extends Object implements 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 Details

    • GiaiMatcher

      public GiaiMatcher()
  • Method Details

    • isKnownToBeReusableAsset

      public boolean isKnownToBeReusableAsset(String epc)
      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 interface IReusableAssetMatcher
      Parameters:
      epc - the EPC to evaluate
      Returns:
      true if the given EPC is reusable (long-living), otherwise false