Skip to main content

Class: OdrlPolicy

Class describing an ODRL policy for entity storage.

Constructors

Constructor

new OdrlPolicy(): OdrlPolicy

Returns

OdrlPolicy

Properties

id

id: string

The unique identifier for the policy.


type

type: OdrlPolicyType

The type of policy.


profile?

optional profile?: ObjectOrArray<string>

The profile(s) this policy conforms to.


assigner?

optional assigner?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>

The assigner of the policy.


assignee?

optional assignee?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>

The assignee of the policy.


target?

optional target?: ObjectOrArray<string | IOdrlAsset | IOdrlAssetCollection>

The target asset for the rule.


action?

optional action?: ObjectOrArray<string | IOdrlAction>

The action associated with the rule.


inheritFrom?

optional inheritFrom?: ObjectOrArray<string>

The parent policy(ies) this policy inherits from.


conflict?

optional conflict?: OdrlConflictStrategyType

The conflict resolution strategy.


permission?

optional permission?: ObjectOrArray<IOdrlPermission>

The permissions in the policy.


prohibition?

optional prohibition?: ObjectOrArray<IOdrlProhibition>

The prohibitions in the policy.


obligation?

optional obligation?: ObjectOrArray<IOdrlDuty>

The obligations in the policy.


assignerIndex

assignerIndex: string

The assignerIndex.


assigneeIndex

assigneeIndex: string

The assigneeIndex.


targetIndex

targetIndex: string

The targetIndex.


actionIndex

actionIndex: string

The actionIndex.