|
|
dom:configuration-create(
|
|
$restart-user as xs:string,
|
|
$evaluation-context as element(dom:evaluation-context),
|
|
$default-domain as xs:unsignedLong,
|
|
$permissions as element(sec:permission)*
|
| ) as xs:unsignedLong |
|
 |
Summary:
Create a new CPF configuration.
|
Parameters:
$restart-user
:
The username for the user who runs the restart trigger.
|
$evaluation-context
:
The evaluation-context element (for example, from the output of
dom:evaluation-context for the domain.
|
$default-domain
:
The ID of the default domain.
|
$permissions
:
Zero or more permissions elements.
|
|
Example:
xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains"
at "/MarkLogic/cpf/domains.xqy";
dom:configuration-create( "admin",
dom:evaluation-context( xdmp:database("Modules"), "/" ),
fn:data(dom:get("my-domain")/dom:domain-id),
(xdmp:permission('my-role', 'read'),
xdmp:permission('my-role', 'execute') )
)
|
|
|
|
dom:create(
|
|
$name as xs:string,
|
|
$description as xs:string,
|
|
$scope as element(dom:domain-scope),
|
|
$context as element(dom:evaluation-context),
|
|
$pipelines as xs:unsignedLong*,
|
|
$permissions as element(sec:permission)*
|
| ) as xs:unsignedLong |
|
 |
Summary:
Create a new content processing domain, along with the
triggers that perform work in that domain.
|
Parameters:
$name
:
The name of the domain. It must be unique.
|
$description
:
A description of the domain.
|
$scope
:
The scope of the domain. Create using dom:domain-scope.
|
$context
:
The evaluation context for processing actions. Create using
dom:evaluation-context.
|
$pipelines
:
The unique identifiers of the pipelines to bind to this domain. The same
pipeline can be bound to different domains. Until at least one pipeline is
bound to the domain, no processing is defined for that domain.
|
$permissions
:
Permissions.
|
|
Example:
xquery version "0.9-ml"
import module namespace dom = "http://marklogic.com/cpf/domains"
at "/MarkLogic/cpf/domains.xqy"
dom:create( "Incoming", "Handling incoming documents",
dom:domain-scope( "directory",
"/incoming/",
"infinity" ),
dom:evaluation-context( xdmp:database("Modules"),
"/" ),
(), () )
|
|
|