Created channels.get Rest Api webscript. Tested in PublishingRestApiTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-06-17 12:46:17 +00:00
parent 88f762622b
commit fdeeab3397
4 changed files with 16 additions and 6 deletions

View File

@@ -218,15 +218,14 @@ public abstract class AbstractWorkflowWebscript extends DeclarativeWebScript
/**
* Builds the results model, applying pagination to the results if necessary.
*
* @param modelBuilder WorkflowModelBuilder instance to use
* @param req The WebScript request
* @param dataPropertyName The name of the property to use in the model
* @param results The full set of results
*
* @return List of results to return to the callee
*/
protected Map<String, Object> createResultModel(WorkflowModelBuilder modelBuilder, WebScriptRequest req,
String dataPropertyName, List<Map<String, Object>> results)
protected Map<String, Object> createResultModel(WebScriptRequest req, String dataPropertyName,
List<Map<String, Object>> results)
{
int totalItems = results.size();
int maxItems = getIntParameter(req, PARAM_MAX_ITEMS, DEFAULT_MAX_ITEMS);

View File

@@ -170,7 +170,7 @@ public class TaskInstancesGet extends AbstractWorkflowWebscript
}
// create and return results, paginated if necessary
return createResultModel(modelBuilder, req, "taskInstances", results);
return createResultModel(req, "taskInstances", results);
}
/**

View File

@@ -148,7 +148,7 @@ public class WorkflowInstancesGet extends AbstractWorkflowWebscript
}
// create and return results, paginated if necessary
return createResultModel(modelBuilder, req, "workflowInstances", results);
return createResultModel(req, "workflowInstances", results);
}
/**