RM-489 (Import Data Set Site Dashlet)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@43116 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2012-10-25 20:46:43 +00:00
parent ae13acef5e
commit 96ecde4b01
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<description>WebScript to get the list of available RM test data</description> <description>WebScript to get the list of available RM test data</description>
<url>/api/rma/datasets?site={site?}&amp;unloadedonly={unloadedonly?}</url> <url>/api/rma/datasets?site={site?}&amp;unloadedonly={unloadedonly?}</url>
<format default="json">argument</format> <format default="json">argument</format>
<authentication>admin</authentication> <authentication>user</authentication>
<transaction>required</transaction> <transaction>required</transaction>
<lifecycle>internal</lifecycle> <lifecycle>internal</lifecycle>
</webscript> </webscript>

View File

@@ -86,11 +86,11 @@ public class DataSetsGet extends DeclarativeWebScript
// Data set details // Data set details
String dataSetId = value.getId(); String dataSetId = value.getId();
Boolean isLoaded = new Boolean(dataSetService.isLoadedDataSet(filePlan, dataSetId)); String isLoaded = String.valueOf(dataSetService.isLoadedDataSet(filePlan, dataSetId));
dataSet.put("label", value.getLabel()); dataSet.put("label", value.getLabel());
dataSet.put("id", dataSetId); dataSet.put("id", dataSetId);
dataSet.put("isLoaded", isLoaded.toString()); dataSet.put("isLoaded", isLoaded);
// Add data set to the list // Add data set to the list
dataSetList.add(dataSet); dataSetList.add(dataSet);