Package io.keyko.nevermined.manager
Class ProvenanceManager
- java.lang.Object
-
- io.keyko.nevermined.manager.BaseManager
-
- io.keyko.nevermined.manager.ProvenanceManager
-
public class ProvenanceManager extends BaseManager
Manages the functionality related with Assets Provenance
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.keyko.nevermined.manager.BaseManager
BaseManager.ContractAddresses
-
-
Field Summary
-
Fields inherited from class io.keyko.nevermined.manager.BaseManager
accessSecretStoreCondition, agreementStoreManager, computeExecutionCondition, condition, conditionStoreManager, config, contractAddresses, didRegistry, dispenser, escrowAccessSecretStoreTemplate, escrowComputeExecutionTemplate, escrowReward, lockRewardCondition, log, mainAccount, providerAddress, templateStoreManager, tokenContract
-
-
Constructor Summary
Constructors Constructor Description ProvenanceManager(io.keyko.common.web3.KeeperService keeperService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactedOnBehalf(String provenanceId, DID did, String delegateAgentId, String responsibleAgentId, String activityId, String signature, String attributes)booleanaddDIDProvenanceDelegate(DID did, String delegate)List<ProvenanceEvent>getDIDProvenanceEvents(DID did)static ProvenanceManagergetInstance(io.keyko.common.web3.KeeperService keeperService)Gets an instance of ProvenanceManagerProvenanceEntrygetProvenanceEntry(String provenanceId)List<ProvenanceEvent>getProvenanceMethodEvents(ProvenanceEntry.ProvenanceMethod method, DID did)StringgetProvenanceOwner(String provenanceId)booleanisProvenanceDelegate(DID did, String delegate)booleanprovenanceSignatureIsCorrect(String delegateAgentId, String provenanceId, String signature)booleanremoveDIDProvenanceDelegate(DID did, String delegate)booleanused(String provenanceId, DID did, String agentId, String activityId, String signature, String attributes)booleanwasAssociatedWith(String provenanceId, DID did, String agentId, String activityId, String attributes)booleanwasDerivedFrom(String provenanceId, DID newEntityDid, DID usedEntityDid, String agentId, String activityId, String attributes)-
Methods inherited from class io.keyko.nevermined.manager.BaseManager
buildDDO, generateAccessGrantToken, generateComputeGrantToken, generateDownloadGrantToken, generateExecuteGrantToken, generateSignature, getAccessSecretStoreCondition, getComputeExecutionCondition, getContractAddresses, getDecriptedSecretStoreMetadataFiles, getDecriptedSecretStoreMetadataFiles, getEscrowComputeExecutionTemplate, getEscrowReward, getEvmDto, getKeeperService, getLockRewardCondition, getMainAccount, getMetadataApiService, getProviderAddress, getSecretStoreDto, getSecretStoreManager, getTemplateIdByName, resolveDID, resolveDIDFromEvent, setAccessSecretStoreCondition, setAgreementStoreManagerContract, setComputeExecutionCondition, setConditionStoreManagerContract, setDidRegistryContract, setDispenserContract, setEscrowAccessSecretStoreTemplate, setEscrowComputeExecutionTemplate, setEscrowReward, setEvmDto, setKeeperService, setLockRewardCondition, setMainAccount, setMetadataApiService, setProviderAddress, setSecretStoreDto, setSecretStoreManager, setTemplateStoreManagerContract, setTokenContract, tokenApprove, toString
-
-
-
-
Method Detail
-
getInstance
public static ProvenanceManager getInstance(io.keyko.common.web3.KeeperService keeperService)
Gets an instance of ProvenanceManager- Parameters:
keeperService- instance of keeperService- Returns:
- an initialized instance of ProvenanceManager
-
used
public boolean used(String provenanceId, DID did, String agentId, String activityId, String signature, String attributes) throws ProvenanceException
- Throws:
ProvenanceException
-
wasDerivedFrom
public boolean wasDerivedFrom(String provenanceId, DID newEntityDid, DID usedEntityDid, String agentId, String activityId, String attributes) throws ProvenanceException
- Throws:
ProvenanceException
-
wasAssociatedWith
public boolean wasAssociatedWith(String provenanceId, DID did, String agentId, String activityId, String attributes) throws ProvenanceException
- Throws:
ProvenanceException
-
actedOnBehalf
public boolean actedOnBehalf(String provenanceId, DID did, String delegateAgentId, String responsibleAgentId, String activityId, String signature, String attributes) throws ProvenanceException
- Throws:
ProvenanceException
-
provenanceSignatureIsCorrect
public boolean provenanceSignatureIsCorrect(String delegateAgentId, String provenanceId, String signature) throws ProvenanceException
- Throws:
ProvenanceException
-
isProvenanceDelegate
public boolean isProvenanceDelegate(DID did, String delegate) throws ProvenanceException
- Throws:
ProvenanceException
-
addDIDProvenanceDelegate
public boolean addDIDProvenanceDelegate(DID did, String delegate) throws ProvenanceException
- Throws:
ProvenanceException
-
removeDIDProvenanceDelegate
public boolean removeDIDProvenanceDelegate(DID did, String delegate) throws ProvenanceException
- Throws:
ProvenanceException
-
getProvenanceOwner
public String getProvenanceOwner(String provenanceId) throws ProvenanceException
- Throws:
ProvenanceException
-
getProvenanceEntry
public ProvenanceEntry getProvenanceEntry(String provenanceId) throws ProvenanceException
- Throws:
ProvenanceException
-
getDIDProvenanceEvents
public List<ProvenanceEvent> getDIDProvenanceEvents(DID did) throws ProvenanceException
- Throws:
ProvenanceException
-
getProvenanceMethodEvents
public List<ProvenanceEvent> getProvenanceMethodEvents(ProvenanceEntry.ProvenanceMethod method, DID did) throws ProvenanceException
- Throws:
ProvenanceException
-
-