Class DppDataService

java.lang.Object
com.persequor.saga.modules.dpp.service.DppDataService
All Implemented Interfaces:
IDppDataService

public class DppDataService extends Object implements IDppDataService
  • Constructor Details

    • DppDataService

      @Inject public DppDataService(com.persequor.extension.api.IEpcClassRetrieverService epcClassRetriever, com.persequor.extension.vocabulary.IVocabularyRepository vocabularyRepository, com.persequor.extension.eventservice.IEventService eventService, DppConfig dppConfig)
  • Method Details

    • getItemData

      public ItemData getItemData(String epc, boolean withTrace, boolean withCommissioningData)
      Description copied from interface: IDppDataService
      Get item data by epc
      Specified by:
      getItemData in interface IDppDataService
      Parameters:
      epc - The epc of the item
      withTrace - If true, the trace of the item will be included. If false, the trace will be null.
      withCommissioningData - If true, commissioning data will be included. If false, it will be null.
      Returns:
      The item data
    • hasItemData

      public boolean hasItemData(String epc)
      Specified by:
      hasItemData in interface IDppDataService
      Parameters:
      epc - The epc of the item
      Returns:
      True if the item data exists, false otherwise.