Constructor and Description |
---|
JacksonBasedAssetLedger(TamperEvidentAssetLedger ledger) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Asset<com.fasterxml.jackson.databind.JsonNode>> |
get(java.lang.String assetId)
Retrieves the latest
Asset entry (an asset entry with the largest age) from the ledger
with the specified asset ID. |
void |
put(java.lang.String assetId,
com.fasterxml.jackson.databind.JsonNode data)
Creates/Appends an
Asset entry to the ledger. |
java.util.List<Asset<com.fasterxml.jackson.databind.JsonNode>> |
scan(AssetFilter filter)
Retrieves a list of
Asset entries from the ledger with the specified AssetFilter . |
public JacksonBasedAssetLedger(TamperEvidentAssetLedger ledger)
public java.util.Optional<Asset<com.fasterxml.jackson.databind.JsonNode>> get(java.lang.String assetId)
Ledger
Asset
entry (an asset entry with the largest age) from the ledger
with the specified asset ID.public java.util.List<Asset<com.fasterxml.jackson.databind.JsonNode>> scan(AssetFilter filter)
Ledger
Asset
entries from the ledger with the specified AssetFilter
.