Class LgtinMatcher

java.lang.Object
com.persequor.extension.eventservice.LgtinMatcher
All Implemented Interfaces:
IBatchMatcher

public class LgtinMatcher extends Object implements IBatchMatcher
Recognizes EPC class as a batch if it follows the GTIN + Batch/Lot scheme. Based on EPC Tag Data Standard v1.13, chapter 6.4.1
  • Constructor Details

    • LgtinMatcher

      public LgtinMatcher()
  • Method Details

    • isKnownToBeBatch

      public boolean isKnownToBeBatch(String epcClass)
      Description copied from interface: IBatchMatcher
      Returns true if the given EPC class is a batch, e.g. it is used limited number of times. Be careful when implementing this interface, you probably will 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:
      isKnownToBeBatch in interface IBatchMatcher
      Parameters:
      epcClass - the EPC class to evaluate
      Returns:
      true if the given EPC class is a batch, otherwise false