Loading TOC...

MarkLogic 10 Product Documentation
sec:amp-exists

sec:amp-exists(
   $namespace as xs:string,
   $local-name as xs:string,
   $document-uri as xs:string,
   $database as xs:unsignedLong
) as xs: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


  xquery version "1.0-ml"; 

  import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

   sec:amp-exists("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.