Class ScopeClause.Builder
- Enclosing class:
ScopeClause
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedActions(List<String> allowedActions) addAllowedActions(String allowedActions) additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowedActions(List<String> allowedActions) Verbs this clause grants.build()Attribute filters narrowing data this clause applies to.from(ScopeClause other)
-
Method Details
-
from
-
allowedActions
Verbs this clause grants. Custom verbs are allowed, but a standard catalog is defined: '*' (wildcard), 'read', 'write', 'delete', 'admin:keys', 'admin:profiles', 'logs:r', 'create_own_scoped_key'. Entries may also use the compact 'resource:cruds[:qualifier]' form, e.g. 'documents:cru' or 'records:rs:patient'. The 's' letter in that form grants sensitive-field REVEAL (PHI un-masking) for the given record-type — fail-safe: absent 's', sensitive fields are masked at the response boundary.
-
addAllowedActions
-
addAllAllowedActions
-
dataScope
Attribute filters narrowing data this clause applies to. Empty object = applies to ALL data within the tenant. Specific values narrow; include null in an allowed-value list (e.g. {"orgId": ["orgX", null]}) to ALSO grant access to tenant-level records that have no value set for that attribute. Any scopable attribute name is valid as a key.
-
dataScope
-
build
-
additionalProperty
-
additionalProperties
-