java.util.Map<java.lang.String,java.util.Set<DocumentMetadataHandle.Capability>>
public static interface DocumentMetadataHandle.DocumentPermissions extends java.util.Map<java.lang.String,java.util.Set<DocumentMetadataHandle.Capability>>
Modifier and Type | Method | 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.
|
clear, compute, computeIfAbsent, computeIfPresent,
containsKey, containsValue, entry, entrySet, equals, forEach, get,
getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of,
of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent,
remove, remove, replace, replace, replaceAll, size,
values
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 © 2022 MarkLogic Corporation