Loading TOC...

sec.ampExists

sec.ampExists(
   $namespace as String,
   $local-name as String,
   $document-uri as String,
   $database as (Number|String)
) as Boolean

Summary

This function returns true if the specified amp exists in the security database.

Parameters
$namespace The namespace for the amped function.
$local-name The local-name of the amped function.
$document-uri The URI of the module containing the amped function.
$database The database ID of the module containing the amped function.

Usage Notes

This function must be executed against the security database.

Example



  const sec = require('/MarkLogic/security.xqy');

   sec.ampExists("my/namespace/uri", "my-function", "/my/module.xqy",
      xdmp.database("my-database"))
      

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.