Class DppDataService
java.lang.Object
com.persequor.saga.modules.dpp.service.DppDataService
- All Implemented Interfaces:
IDppDataService
-
Constructor Summary
ConstructorsConstructorDescriptionDppDataService
(com.persequor.extension.api.IEpcClassRetrieverService epcClassRetriever, com.persequor.extension.vocabulary.IVocabularyRepository vocabularyRepository, com.persequor.extension.eventservice.IEventService eventService, DppConfig dppConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetItemData
(String epc, boolean withTrace, boolean withCommissioningData) Get item data by epcboolean
hasItemData
(String epc)
-
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
Description copied from interface:IDppDataService
Get item data by epc- Specified by:
getItemData
in interfaceIDppDataService
- Parameters:
epc
- The epc of the itemwithTrace
- 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
- Specified by:
hasItemData
in interfaceIDppDataService
- Parameters:
epc
- The epc of the item- Returns:
- True if the item data exists, false otherwise.
-