AccessPolicyBuilder

Builds an AccessPolicy. Nothing is granted by omission: a policy gives what may be read and what may be changed, read and write, or readWrite for both at once; one without a write predicate is refused, and write { denyAll() } makes a read-only aggregate explicit.

Functions

Link copied to clipboard
fun read(predicate: AccessScope<S>.(Caller) -> AccessPredicate)

What a caller may read of the aggregates.

Link copied to clipboard

What a caller may read and change of the aggregates alike.

Link copied to clipboard
fun write(predicate: AccessScope<S>.(Caller) -> AccessPredicate)

What a caller may change of the aggregates; write { denyAll() } for none.