Loading TOC...

temporal.collectionSetOptions

temporal.collectionSetOptions(
   $temporal-collection as String,
   $options as String[]
) as null

Summary

This function sets the options on the temporal collection.

Parameters
$temporal-collection The name of the temporal collection.
$options Options to control access to the temporal collection:
updates-admin-override
Specifies that users with the admin role can change or delete temporal documents using non-temporal functions, such as xdmp:document-insert and xdmp:document-delete.
updates-safe
Specifies that no users, including those with the admin role, can change or delete temporal documents in a non-temporal manner. This is the default.

Example

var temporal = require("/MarkLogic/temporal.xqy");

temporal.collectionSetOptions("kool", ["updates-admin-override"]) ;
 
// Sets the "updates-admin-override" option on the "kool" collection. 

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy