A root level utils object is provided as a library of helper
      methods that are missing from generic JavaScript.
    
  - createPaging The createPaging methods are used to build a ScriptPagingDetails object from the parameters supplied.
 - disableRulesdisableRules disables rule execution for the current thread.
 - displayPathdisplayPath(node) returns the cm:name display path for a node with minimum performance overhead.
 - enableRulesenableRules enables rule execution for the current thread.
 - fromISO8601fromISO8601(string) parses a date from an ISO8601 formatted string.
 - getLocalegetLocale returns the locale string for the current thread.
 - getNodeFromStringgetNodeFromString(noderef) returns a ScriptNode object representing the supplied NodeRef string. The node is not confirmed to exist in the repository.
 - longQNamelongQName(string) returns the long version of a short prefixed QName.
 - moduleInstalledmoduleInstalled(moduleName) checks if a module is installed.
 - padpad(string, length) pads a string with leading zeros to the specified length.
 - setLocalesetLocale sets the locale for the current thread.
 - setServiceRegistrysetServiceRegistry(services) sets the service registry.
 - setNodeServicesetNodeService(nodeService) sets the node service.
 - shortQNameshortQName(string) returns the short, or prefix, version of a long QName.
 - toBooleantoBoolean(string) returns a Boolean object from a string value.
 - toISO8601(Date)toISO8601(Date) formats a date to an ISO8601 formatted string.
 - toISO8601(long)toISO8601(long) formats a time in milliseconds to an ISO8601 formatted string.
 
Parent topic: Scripting API