Package com.persequor.extension.document
Interface IDocumentService
public interface IDocumentService
- 
Method SummaryModifier 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 document
- enriched- specifies whether the the enriched or the original version of the document should be retrieved
- type- expected type of the document:- EpcisDocument,- EpcisMasterDataDocument,- QueryDocument
- Returns:
- optional of the EPCIS document
 
- 
getDocumentRetrieve an enriched EPCIS document stored in Saga- Parameters:
- instanceId- ID of the document
- Returns:
- optional of the EPCIS document
 
- 
getEpcisDocumentRetrieve an enriched EPCIS event document stored in Saga- Parameters:
- instanceId- ID of the document
- Returns:
- optional of the EPCIS document
 
- 
getMasterDataDocumentRetrieve an enriched EPCIS master data document stored in Saga- Parameters:
- instanceId- ID of the document
- Returns:
- optional of the EPCIS document
 
 
-