Loading TOC...

alert.ruleUserIdQuery

alert.ruleUserIdQuery(
   $user-ids as String[]
) as cts.query

Summary

This function creates a query to find rules with any of the specified user IDs. Returns a query to be passed to alert.getMyRules or alert.getAllRules.

Parameters
$user-idsA list of user IDs for the rules to be retrieved.

Example

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

  alert.getAllRules(
        "http://acme.com/alert/message-board", 
        alert.ruleUserIdQuery(["7071164303237443533"]))

  =>Returns the rules with user ID ID7071164303237443533.
  

Comments

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