public static interface DocumentMetadataHandle.DocumentPermissions extends java.util.Map<java.lang.String,java.util.Set<DocumentMetadataHandle.Capability>>
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String role,
DocumentMetadataHandle.Capability... capabilities)
Adds a role with one or more capabilities to the
metadata that can be written for the document.
|
void |
addFromDelimitedString(java.lang.String commaDelimitedRolesAndCapabilities)
Adds one or more permissions based on the given
comma-delimited string.
|
void add(java.lang.String role, DocumentMetadataHandle.Capability... capabilities)
role
- the role for users permitted to access the
documentcapabilities
- the permissions to be granted to
users with the rolevoid addFromDelimitedString(java.lang.String commaDelimitedRolesAndCapabilities)
add
, this method adds permissions and can thus add
capabilities to roles already present in this object. For example,
the following string would add two permissions - a "read"
permission for "rest-reader" and an "update" permission for
"rest-writer": rest-reader,read,rest-writer,update.commaDelimitedRolesAndCapabilities
-
comma-delimited string of the pattern:
role1,capability1,role2,capability2,etc.Copyright © 2024 MarkLogic Corporation. All Rights Reserved.