MarkLogic 9 Product Documentation
dom:set-permissionsdom:set-permissions(
$domain-name as xs:string,
$permissions as item()*
) as empty-sequence()
Summary
Set the permissions of the domain. An error is raised if
the domain cannot be found. If the triggers associated with the domain
will be modified also.
Parameters |
domain-name |
The name of the domain to be changed.
|
permissions |
New permissions for the domain.
When run in an XQuery context, the permissions are a sequence of
XML elements (sec:permission). When importing this module into
a Server-Side JavaScript context, the permissions are an array
of Objects.
|
Example
xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains"
at "/MarkLogic/cpf/domains.xqy";
dom:set-permissions( "Incoming", xdmp:default-permissions() )
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.