Package com.persequor.extension.document
Interface IDocumentService
public interface IDocumentService
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<BaseEpcisDocument>
getDocument
(String instanceId) Retrieve an enriched EPCIS document stored in Saga<T extends BaseEpcisDocument>
Optional<T>getDocument
(String instanceId, boolean enriched, Class<T> type) Retrieve an EPCIS document stored in Sagadefault Optional<EpcisDocument>
getEpcisDocument
(String instanceId) Retrieve an enriched EPCIS event document stored in Sagadefault Optional<EpcisMasterDataDocument>
getMasterDataDocument
(String instanceId) Retrieve an enriched EPCIS master data document stored in Saga
-
Method Details
-
getDocument
<T extends BaseEpcisDocument> Optional<T> getDocument(String instanceId, boolean enriched, Class<T> type) Retrieve an EPCIS document stored in Saga- Parameters:
instanceId
- ID of the documentenriched
- specifies whether the the enriched or the original version of the document should be retrievedtype
- expected type of the document:EpcisDocument
,EpcisMasterDataDocument
,QueryDocument
- Returns:
- optional of the EPCIS document
-
getDocument
Retrieve an enriched EPCIS document stored in Saga- Parameters:
instanceId
- ID of the document- Returns:
- optional of the EPCIS document
-
getEpcisDocument
Retrieve an enriched EPCIS event document stored in Saga- Parameters:
instanceId
- ID of the document- Returns:
- optional of the EPCIS document
-
getMasterDataDocument
Retrieve an enriched EPCIS master data document stored in Saga- Parameters:
instanceId
- ID of the document- Returns:
- optional of the EPCIS document
-