ResourcePolicy

data class ResourcePolicy(val resourceName: String, val roleFieldPolicies: Map<String, List<FieldPolicy>>? = null)

The static masking rules for a single resource, consumed by RoleBasedResourcePolicyResolver.

Constructors

Link copied to clipboard
constructor(resourceName: String, roleFieldPolicies: Map<String, List<FieldPolicy>>? = null)

Properties

Link copied to clipboard

The resource key these rules apply to, matched against the resolved resource name.

Link copied to clipboard

The per-role FieldPolicy lists, keyed by role name. null (the default) means no role-specific rules are configured for the resource, so resolution yields an empty list.