From aa6a35dc79f8590e301678d99f39b502569d6210 Mon Sep 17 00:00:00 2001 From: Lorenzo Boccaccia Date: Wed, 10 Dec 2014 16:48:43 +0000 Subject: [PATCH] fixed case of parameter values --- .../connections/files/model/FileCreationParameters.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java index 410872130c..a5f36b081f 100644 --- a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java +++ b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java @@ -121,9 +121,12 @@ public Map buildParameters() { if (propagate!=null) { ret.put("propagate", propagate.toString()); } - if (sharePermission!=null) { - ret.put("sharePermission", sharePermission.toString().toLowerCase()); - } + if (sharePermission == Permission.VIEW) + ret.put("sharePermission", "View"); + + if (sharePermission == Permission.EDIT) + ret.put("sharePermission", "Edit"); + if (shareSummary!=null) { ret.put("shareSummary", shareSummary.toString()); }