PolicyResource class

The protected Resource of a ditto policy group.

This defines to which part of a ditto entry the corresponding PolicySubject has which permissions granted/revoked. For more information see: https://www.eclipse.org/ditto/basic-policy.html#which-resources-can-be-controlled

Constructors

PolicyResource(String path, {Set<PermissionType>? grants, Set<PermissionType>? revokes})
Creates a new PolicyResource with the path and the optional grants and revokes.
PolicyResource.fromJson(String path, Map<String, dynamic> json)
Returns a PolicyResource with the path and enriches it with the given information in json.
factory

Properties

grant Set<PermissionType>
The allowed actions on this resource.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
path String
The path to the resource.
final
revoke Set<PermissionType>
The permitted actions on this resource.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the stored information about this PolicyResource in a Map which could be directly used to creates a json entry.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited