Owner

Defines ownership policies for aggregate operations in multi-tenant scenarios.

Parameters

owned

Whether this policy requires ownership context for operations.

Entries

Link copied to clipboard

No ownership required. Operations can be performed without owner context. Suitable for public aggregates or system-wide resources.

Link copied to clipboard

Ownership always required. All operations must specify an owner context. Used when aggregates are strictly isolated by owner.

Link copied to clipboard

Owner ID is the same as aggregate ID. The aggregate instance itself serves as the ownership boundary. Common for user-specific aggregates.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.