diff --git a/source/java/org/alfresco/repo/jscript/ScriptUtils.java b/source/java/org/alfresco/repo/jscript/ScriptUtils.java index 586f1c5142..8b889be46f 100644 --- a/source/java/org/alfresco/repo/jscript/ScriptUtils.java +++ b/source/java/org/alfresco/repo/jscript/ScriptUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Alfresco Software Limited. + * Copyright (C) 2005-2014 Alfresco Software Limited. * * This file is part of Alfresco * @@ -120,20 +120,20 @@ public class ScriptUtils extends BaseScopableProcessorExtension } /** - * Use the Node Locator Service to find the given root node from a number of possible locator types. + * Use the Node Locator Service to find the a node reference from a number of possible locator types. * This method is responsible for determining the locator type and then calling the Service as the * Service does not know how to guess which locator to use. *
* This service supports 'virtual' nodes including the following: *
- * alfresco://company/home The Company Home root node
- * alfresco://user/home The User Home node under Company Home
- * alfresco://company/shared The Shared node under Company Home
- * alfresco://sites/home The Sites home node under Company Home
- * workspace://.../... Any standard NodeRef
- * /app:company_home/cm:... XPath QName style node reference
+ * alfresco://company/home The Company Home root node
+ * alfresco://user/home The User Home node under Company Home
+ * alfresco://company/shared The Shared node under Company Home
+ * alfresco://sites/home The Sites home node under Company Home
+ * workspace://.../... Any standard NodeRef
+ * /app:company_home/cm:... XPath QName style node reference
*
- * @param rootNode
+ * @param reference The node reference - See above for list of possible node references supported.
*
* @return ScriptNode representing the node or null if not found
*/
@@ -292,6 +292,13 @@ public class ScriptUtils extends BaseScopableProcessorExtension
* Builds a paging object, from the supplied Args object.
* Requires that the parameters have their standard names,
* i.e. "maxItems" and "skipCount"
+ *
+ * @param args Mandatory hash of paging arguments
+ * Possible arguments include:
+ * maxItems - max count of items to return, default -1 (all)
+ * skipCount - number of items to skip, default -1 (none)
+ * queryId
+ * queryExecutionId
*/
public ScriptPagingDetails createPaging(Map