Workbench: updated SAP configuration + small fixes

git-svn-id: https://svn.apache.org/repos/asf/chemistry/opencmis/trunk@1754242 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
index 0622f8e..351e68e 100644
--- a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
+++ b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
@@ -124,8 +124,7 @@
                 SessionParameter.CONNECT_TIMEOUT, SessionParameter.READ_TIMEOUT));
 
         popup.add(createMenuGroup("OAuth", SessionParameter.OAUTH_CLIENT_ID, SessionParameter.OAUTH_CLIENT_SECRET,
-                SessionParameter.OAUTH_CLIENT_SECRET, SessionParameter.OAUTH_CODE,
-                SessionParameter.OAUTH_TOKEN_ENDPOINT, SessionParameter.OAUTH_REDIRECT_URI));
+                SessionParameter.OAUTH_CODE, SessionParameter.OAUTH_TOKEN_ENDPOINT, SessionParameter.OAUTH_REDIRECT_URI));
 
         popup.add(createMenuGroup("HTTP Invoker",
                 SessionParameter.HTTP_INVOKER_CLASS + "=" + DefaultHttpInvoker.class.getName(),
diff --git a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
index 5832ad0..6a9ea8a 100644
--- a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
+++ b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
@@ -61,4 +61,5 @@
 sap-hana-cloud-atompub.properties=SAP HANA Cloud Document Service AtomPub
 sap-hana-cloud-browser.properties=SAP HANA Cloud Document Service Browser
 
-sap-mobile-documents-browser.properties=SAP Mobile Documents
\ No newline at end of file
+sap-mobile-documents-browser.properties=SAP Mobile Documents
+sap-document-center-browser.properties=SAP Document Center
\ No newline at end of file
diff --git a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/opencmis-fileshare-browser.properties b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/opencmis-fileshare-browser.properties
new file mode 100644
index 0000000..b98b8d4
--- /dev/null
+++ b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/opencmis-fileshare-browser.properties
@@ -0,0 +1,27 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+# OpenCMIS FileShare Browser
+
+org.apache.chemistry.opencmis.binding.spi.type=browser
+org.apache.chemistry.opencmis.binding.atompub.url=http://<host>/fileshare/browser
+org.apache.chemistry.opencmis.user=test
+org.apache.chemistry.opencmis.password=test
\ No newline at end of file
diff --git a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-document-center-browser.properties b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-document-center-browser.properties
new file mode 100644
index 0000000..f1c2279
--- /dev/null
+++ b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-document-center-browser.properties
@@ -0,0 +1,45 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+# SAP Document Center
+
+org.apache.chemistry.opencmis.binding.spi.type=browser
+org.apache.chemistry.opencmis.binding.browser.url=https://smd-<account>.<data-center>.hana.ondemand.com/mcm/b/json
+org.apache.chemistry.opencmis.user=<user>
+org.apache.chemistry.opencmis.password=<password>
+
+org.apache.chemistry.opencmis.binding.cookies=true
+org.apache.chemistry.opencmis.binding.compression=true
+org.apache.chemistry.opencmis.binding.csrfheader=X-CSRF-Token
+
+org.apache.chemistry.opencmis.binding.connecttimeout=30000
+org.apache.chemistry.opencmis.binding.readtimeout=600000
+
+# OAuth configuration (see SAP HANA Cloud Platform Cockpit -> OAuth)
+#
+# org.apache.chemistry.opencmis.oauth.clientId=
+# org.apache.chemistry.opencmis.oauth.clientSecret=
+# org.apache.chemistry.opencmis.oauth.code=
+# org.apache.chemistry.opencmis.oauth.tokenEndpoint=https://oauthasservices-<account>.<data-center>.hana.ondemand.com/oauth2/api/v1/token
+# org.apache.chemistry.opencmis.oauth.redirectUri=https://smd-<account>.<data-center>.hana.ondemand.com
+
+
+folder.maxChildren=1000
\ No newline at end of file
diff --git a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-mobile-documents-browser.properties b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-mobile-documents-browser.properties
index bb321d9..7220b5f 100644
--- a/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-mobile-documents-browser.properties
+++ b/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sap-mobile-documents-browser.properties
@@ -19,13 +19,18 @@
 #
 #
 
-# SAP Mobile Documents
+# SAP Mobile Documents (on-premise)
 
 org.apache.chemistry.opencmis.binding.spi.type=browser
-org.apache.chemistry.opencmis.binding.browser.url=https://<name>.ondemand.com/mcm/b/json
+org.apache.chemistry.opencmis.binding.browser.url=https://<host>:50000/mcm/b/json
 org.apache.chemistry.opencmis.user=<user>
 org.apache.chemistry.opencmis.password=<password>
 
 org.apache.chemistry.opencmis.binding.cookies=true
 org.apache.chemistry.opencmis.binding.compression=true
-org.apache.chemistry.opencmis.binding.csrfheader=X-CSRF-Token
\ No newline at end of file
+org.apache.chemistry.opencmis.binding.csrfheader=X-CSRF-Token
+
+org.apache.chemistry.opencmis.binding.connecttimeout=30000
+org.apache.chemistry.opencmis.binding.readtimeout=600000
+
+folder.maxChildren=1000
\ No newline at end of file