ODCinterfacesdataIndex

IAccessManager

Interface defines functions used to manage access control of DataManagers to DataObjects data related to specified DataPoint

DataPointDOApprovalChanged

event DataPointDOApprovalChanged(DataPoint dp, address dobj, bool approved)

Event emitted when DataObject is approved for DataPoint

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
dobjaddressAddress of DataObject
approvedboolif DataObject is approved

approvedDataManager

function approvedDataManager(DataPoint dp, address dm) external view returns (bool)

Verifies if DataManager is allowed to write in specific DataPoint

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
dmaddressAddress of DataManager

Return Values

NameTypeDescription
[0]boolif write access is allowed

approveDataManager

function approveDataManager(DataPoint dp, address dm, bool approved) external

Defines if DataManager is allowed to write in specific DataPoint

Function SHOULD be restricted to DataPoint maintainer only

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
dmaddressAddress of DataManager
approvedboolif DataManager should be approved for the DataPoint

On this page