chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1029346 - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main: java/org/apache/chemistry/opencmis/workbench/ resources/configs/
Date Sun, 31 Oct 2010 14:03:22 GMT
Author: fmui
Date: Sun Oct 31 14:03:22 2010
New Revision: 1029346

URL: http://svn.apache.org/viewvc?rev=1029346&view=rev
Log:
- added session parameters templates to CMIS Workbench expert login

Added:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties
  (with props)
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties
  (with props)
Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java?rev=1029346&r1=1029345&r2=1029346&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
Sun Oct 31 14:03:22 2010
@@ -31,15 +31,10 @@ import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.awt.event.WindowEvent;
 import java.awt.event.WindowListener;
-import java.io.BufferedReader;
 import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
 import java.net.URI;
-import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
-import java.util.Properties;
 import java.util.prefs.Preferences;
 
 import javax.swing.ImageIcon;
@@ -52,6 +47,7 @@ import javax.swing.JScrollPane;
 import javax.swing.JSplitPane;
 import javax.swing.JToolBar;
 
+import org.apache.chemistry.opencmis.workbench.ClientHelper.FileEntry;
 import org.apache.chemistry.opencmis.workbench.details.DetailsTabs;
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 import org.apache.chemistry.opencmis.workbench.model.ClientSession;
@@ -191,13 +187,13 @@ public class ClientFrame extends JFrame 
         toolBar.add(toolbarButton[BUTTON_CONSOLE]);
 
         toolbarConsolePopup = new JPopupMenu();
-        for (CmisScript s : readScriptLibrary()) {
-            JMenuItem menuItem = new JMenuItem(s.getName());
-            final String path = s.getPath();
+        for (FileEntry fe : readScriptLibrary()) {
+            JMenuItem menuItem = new JMenuItem(fe.getName());
+            final String file = fe.getFile();
             menuItem.addActionListener(new ActionListener() {
                 @Override
                 public void actionPerformed(ActionEvent e) {
-                    openConsole(path);
+                    openConsole(file);
                 }
             });
             toolbarConsolePopup.add(menuItem);
@@ -325,7 +321,7 @@ public class ClientFrame extends JFrame 
         }
     }
 
-    private void openConsole(String path) {
+    private void openConsole(String file) {
         try {
             setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
 
@@ -348,7 +344,7 @@ public class ClientFrame extends JFrame 
                     new URI(
                             "http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/client/api/package-summary.html"));
 
-            console.getInputArea().setText(readScript(path));
+            console.getInputArea().setText(ClientHelper.readFileAndRemoveHeader(file));
         } catch (Exception ex) {
             ClientHelper.showError(null, ex);
         } finally {
@@ -375,94 +371,14 @@ public class ClientFrame extends JFrame 
         menu.add(menuItem);
     }
 
-    private List<CmisScript> readScriptLibrary() {
-        InputStream stream = this.getClass().getResourceAsStream(GROOVY_SCRIPT_FOLDER + GROOVY_SCRIPT_LIBRARY);
-        if (stream == null) {
-            return Collections.singletonList(new CmisScript("Groovy Console", null));
+    private List<FileEntry> readScriptLibrary() {
+        List<FileEntry> result = ClientHelper.readFileProperties(GROOVY_SCRIPT_FOLDER
+ GROOVY_SCRIPT_LIBRARY,
+                GROOVY_SCRIPT_FOLDER);
+        if (result == null) {
+            result = Collections.singletonList(new FileEntry("Groovy Console", null));
         }
 
-        try {
-            Properties properties = new Properties();
-            properties.load(stream);
-            stream.close();
-
-            List<CmisScript> result = new ArrayList<CmisScript>();
-            for (String script : properties.stringPropertyNames()) {
-                result.add(new CmisScript(properties.getProperty(script), GROOVY_SCRIPT_FOLDER
+ script));
-            }
-            Collections.sort(result);
-
-            return result;
-        } catch (IOException e) {
-            return Collections.singletonList(new CmisScript("Groovy Console", null));
-        }
-    }
-
-    private String readScript(String path) throws Exception {
-        if (path == null) {
-            return "";
-        }
-
-        InputStream stream = this.getClass().getResourceAsStream(path);
-        if (stream == null) {
-            throw new Exception("Groovy script is missing!");
-        } else {
-            BufferedReader reader = new BufferedReader(new InputStreamReader(stream, "UTF-8"));
-            StringBuilder sb = new StringBuilder();
-            String s;
-            boolean header = true;
-
-            while ((s = reader.readLine()) != null) {
-                // remove header
-                if (header) {
-                    String st = s.trim();
-                    if (st.length() == 0) {
-                        continue;
-                    }
-
-                    char c = st.charAt(0);
-                    header = (c == '/') || (c == '*');
-                    if (header) {
-                        continue;
-                    }
-                }
-
-                sb.append(s);
-                sb.append("\n");
-            }
-
-            reader.close();
-
-            return sb.toString();
-        }
-    }
-
-    static class CmisScript implements Comparable<CmisScript> {
-        private String name;
-        private String path;
-
-        public CmisScript(String name, String path) {
-            this.name = name;
-            this.path = path;
-        }
-
-        public String getName() {
-            return name;
-        }
-
-        public String getPath() {
-            return path;
-        }
-
-        @Override
-        public String toString() {
-            return name;
-        }
-
-        @Override
-        public int compareTo(CmisScript o) {
-            return name.compareToIgnoreCase(o.getName());
-        }
+        return result;
     }
 
     public void windowOpened(WindowEvent e) {

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java?rev=1029346&r1=1029345&r2=1029346&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java
Sun Oct 31 14:03:22 2010
@@ -21,15 +21,21 @@ package org.apache.chemistry.opencmis.wo
 import java.awt.Component;
 import java.awt.Desktop;
 import java.io.BufferedOutputStream;
+import java.io.BufferedReader;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.InputStreamReader;
 import java.io.OutputStream;
 import java.net.URL;
 import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Collections;
 import java.util.GregorianCalendar;
+import java.util.List;
+import java.util.Properties;
 
 import javax.swing.ImageIcon;
 import javax.swing.JFileChooser;
@@ -229,4 +235,99 @@ public class ClientHelper {
             }
         }
     }
+
+    public static String readFileAndRemoveHeader(String file) {
+        if (file == null) {
+            return "";
+        }
+
+        InputStream stream = file.getClass().getResourceAsStream(file);
+        if (stream == null) {
+            return "";
+        } else {
+            try {
+                BufferedReader reader = new BufferedReader(new InputStreamReader(stream,
"UTF-8"));
+                StringBuilder sb = new StringBuilder();
+                String s;
+                boolean header = true;
+
+                while ((s = reader.readLine()) != null) {
+                    // remove header
+                    if (header) {
+                        String st = s.trim();
+                        if (st.length() == 0) {
+                            header = false;
+                            continue;
+                        }
+
+                        char c = st.charAt(0);
+                        header = (c == '/') || (c == '*') || (c == '#');
+                        if (header) {
+                            continue;
+                        }
+                    }
+
+                    sb.append(s);
+                    sb.append("\n");
+                }
+
+                reader.close();
+
+                return sb.toString();
+            } catch (Exception e) {
+                return "";
+            }
+        }
+    }
+
+    public static List<FileEntry> readFileProperties(String propertiesFile, String
path) {
+        InputStream stream = propertiesFile.getClass().getResourceAsStream(propertiesFile);
+        if (stream == null) {
+            return null;
+        }
+
+        try {
+            Properties properties = new Properties();
+            properties.load(stream);
+            stream.close();
+
+            List<FileEntry> result = new ArrayList<FileEntry>();
+            for (String file : properties.stringPropertyNames()) {
+                result.add(new FileEntry(properties.getProperty(file), path + file));
+            }
+            Collections.sort(result);
+
+            return result;
+        } catch (IOException e) {
+            return null;
+        }
+    }
+
+    public static class FileEntry implements Comparable<FileEntry> {
+        private String name;
+        private String file;
+
+        public FileEntry(String name, String file) {
+            this.name = name;
+            this.file = file;
+        }
+
+        public String getName() {
+            return name;
+        }
+
+        public String getFile() {
+            return file;
+        }
+
+        @Override
+        public String toString() {
+            return name;
+        }
+
+        @Override
+        public int compareTo(FileEntry o) {
+            return name.compareToIgnoreCase(o.getName());
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java?rev=1029346&r1=1029345&r2=1029346&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
Sun Oct 31 14:03:22 2010
@@ -27,6 +27,8 @@ import java.awt.Font;
 import java.awt.Frame;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -57,6 +59,7 @@ import javax.swing.event.ChangeListener;
 
 import org.apache.chemistry.opencmis.client.api.Repository;
 import org.apache.chemistry.opencmis.commons.enums.BindingType;
+import org.apache.chemistry.opencmis.workbench.ClientHelper.FileEntry;
 import org.apache.chemistry.opencmis.workbench.model.ClientSession;
 
 public class LoginDialog extends JDialog {
@@ -67,6 +70,9 @@ public class LoginDialog extends JDialog
     public static final String SYSPROP_USER = ClientSession.WORKBENCH_PREFIX + "user";
     public static final String SYSPROP_PASSWORD = ClientSession.WORKBENCH_PREFIX + "password";
 
+    private static final String CONFIGS_FOLDER = "/configs/";
+    private static final String CONFIGS_LIBRARY = "config-library.properties";
+
     private static final long serialVersionUID = 1L;
 
     private JTabbedPane loginTabs;
@@ -83,6 +89,8 @@ public class LoginDialog extends JDialog
     private JButton loginButton;
     private JComboBox repositoryBox;
 
+    private List<FileEntry> sessionConfigurations;
+
     private boolean expertLogin = false;
 
     private boolean canceled = true;
@@ -95,8 +103,8 @@ public class LoginDialog extends JDialog
     }
 
     private void createGUI() {
-        setMinimumSize(new Dimension(600, 350));
-        setPreferredSize(new Dimension(600, 350));
+        setMinimumSize(new Dimension(700, 500));
+        setPreferredSize(new Dimension(700, 500));
 
         Container pane = getContentPane();
         pane.setLayout(new BorderLayout());
@@ -128,6 +136,18 @@ public class LoginDialog extends JDialog
         final JPanel expertPanel = new JPanel(new BorderLayout());
         expertPanel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
 
+        sessionConfigurations = ClientHelper.readFileProperties(CONFIGS_FOLDER + CONFIGS_LIBRARY,
CONFIGS_FOLDER);
+
+        final JComboBox configs = new JComboBox();
+
+        configs.addItem(new FileEntry("", null));
+        if (sessionConfigurations != null) {
+            for (FileEntry fe : sessionConfigurations) {
+                configs.addItem(fe);
+            }
+        }
+        expertPanel.add(configs, BorderLayout.PAGE_START);
+
         sessionParameterTextArea = new JTextArea();
         sessionParameterTextArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
         expertPanel.add(new JScrollPane(sessionParameterTextArea), BorderLayout.CENTER);
@@ -207,6 +227,8 @@ public class LoginDialog extends JDialog
                 expertLogin = (loginTabs.getSelectedComponent() == expertPanel);
 
                 if (expertLogin) {
+                    configs.setSelectedIndex(0);
+                    
                     StringBuilder sb = new StringBuilder();
                     for (Map.Entry<String, String> parameter : createBasicSessionParameters().entrySet())
{
                         sb.append(parameter.getKey());
@@ -221,6 +243,15 @@ public class LoginDialog extends JDialog
             }
         });
 
+        configs.addItemListener(new ItemListener() {
+            public void itemStateChanged(ItemEvent e) {
+                FileEntry fe = (FileEntry) e.getItem();
+
+                sessionParameterTextArea.setText(ClientHelper.readFileAndRemoveHeader(fe.getFile()));
+                sessionParameterTextArea.setCaretPosition(0);
+            }
+        });
+
         setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
         pack();
         setLocationRelativeTo(null);

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties
Sun Oct 31 14:03:22 2010
@@ -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.
+#
+#
+
+# Alfresco 3.4 AtomPub
+
+org.apache.chemistry.opencmis.binding.spi.type=atompub
+org.apache.chemistry.opencmis.binding.atompub.url=http://<host>/alfresco/service/cmis
+org.apache.chemistry.opencmis.user=<user>
+org.apache.chemistry.opencmis.password=<password>
\ No newline at end of file

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-atompub.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties
Sun Oct 31 14:03:22 2010
@@ -0,0 +1,37 @@
+#
+#
+# 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.
+#
+#
+
+# Alfresco 3.4 Web Services
+
+org.apache.chemistry.opencmis.binding.spi.type=webservices
+org.apache.chemistry.opencmis.binding.webservices.RepositoryService=http://<host>/alfresco/cmis/RepositoryService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.NavigationService=http://<host>/alfresco/cmis/NavigationService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.ObjectService=http://<host>/alfresco/cmis/ObjectService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.VersioningService=http://<host>/alfresco/cmis/VersioningService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=http://<host>/alfresco/cmis/DiscoveryService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=http://<host>/alfresco/cmis/MultiFilingService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.RelationshipService=http://<host>/alfresco/cmis/RelationshipService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.ACLService=http://<host>/alfresco/cmis/ACLService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.PolicyService=http://<host>/alfresco/cmis/PolicyService?wsdl
+org.apache.chemistry.opencmis.user=<user>
+org.apache.chemistry.opencmis.password=<password>
+
+cmis.workbench.folder.filter=*

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-3.4-webservices.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties
Sun Oct 31 14:03:22 2010
@@ -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.
+#
+#
+
+# Alfresco OpenCMIS Preview AtomPub
+
+org.apache.chemistry.opencmis.binding.spi.type=atompub
+org.apache.chemistry.opencmis.binding.atompub.url=http://<host>/alfresco/opencmis-atom
+org.apache.chemistry.opencmis.user=<user>
+org.apache.chemistry.opencmis.password=<password>
\ No newline at end of file

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-atompub.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties
Sun Oct 31 14:03:22 2010
@@ -0,0 +1,35 @@
+#
+#
+# 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.
+#
+#
+
+# Alfresco OpenCMIS Web Services
+
+org.apache.chemistry.opencmis.binding.spi.type=webservices
+org.apache.chemistry.opencmis.binding.webservices.RepositoryService=http://<host>/alfresco/opencmis-ws/RepositoryService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.NavigationService=http://<host>/alfresco/opencmis-ws/NavigationService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.ObjectService=http://<host>/alfresco/opencmis-ws/ObjectService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.VersioningService=http://<host>/alfresco/opencmis-ws/VersioningService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=http://<host>/alfresco/opencmis-ws/DiscoveryService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=http://<host>/alfresco/opencmis-ws/MultiFilingService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.RelationshipService=http://<host>/alfresco/opencmis-ws/RelationshipService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.ACLService=http://<host>/alfresco/opencmis-ws/ACLService?wsdl
+org.apache.chemistry.opencmis.binding.webservices.PolicyService=http://<host>/alfresco/opencmis-ws/PolicyService?wsdl
+org.apache.chemistry.opencmis.user=<user>
+org.apache.chemistry.opencmis.password=<password>

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/alfresco-preview-webservices.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
Sun Oct 31 14:03:22 2010
@@ -0,0 +1,33 @@
+#
+#
+# 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.
+#
+#
+
+#
+# Add more configurations here.
+# key = config file, value = title
+#
+
+alfresco-3.4-atompub.properties=Alfresco 3.4 AtomPub
+alfresco-3.4-webservices.properties=Alfresco 3.4 Web Services
+alfresco-preview-atompub.properties=Alfresco OpenCMIS preview AtomPub
+alfresco-preview-webservices.properties=Alfresco OpenCMIS preview Web Services
+
+sharepoint-2010-atompub.properties=SharePoint 2010 AtomPub
+sharepoint-2010-webservices.properties=SharePoint 2010 Web Services

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/config-library.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties
Sun Oct 31 14:03:22 2010
@@ -0,0 +1,29 @@
+#
+#
+# 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.
+#
+#
+
+# SharePoint 2010 AtomPub
+
+org.apache.chemistry.opencmis.binding.spi.type=atompub
+org.apache.chemistry.opencmis.binding.atompub.url=http://<host>/_vti_bin/cmis/rest/<SPList>?getrepositoryinfo
+org.apache.chemistry.opencmis.user=<domain>\<user>
+org.apache.chemistry.opencmis.password=<password>
+
+cmis.workbench.folder.filter=*
\ No newline at end of file

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-atompub.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties?rev=1029346&view=auto
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties
(added)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties
Sun Oct 31 14:03:22 2010
@@ -0,0 +1,41 @@
+#
+#
+# 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.
+#
+#
+
+# SharePoint 2010 Web Services
+
+# In order to connect, download the WSDL (http://<host>/_vti_bin/cmissoapwsdl.aspx?wsdl)

+# to your local disk and refer to this file in the configuration.
+
+org.apache.chemistry.opencmis.binding.spi.type=webservices
+org.apache.chemistry.opencmis.binding.webservices.RepositoryService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.NavigationService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.ObjectService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.VersioningService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.RelationshipService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.ACLService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.webservices.PolicyService=file:///<path/to/wsdl>
+org.apache.chemistry.opencmis.binding.auth.classname=org.apache.chemistry.opencmis.client.bindings.spi.NTLMAuthenticationProvider
+org.apache.chemistry.opencmis.user=<domain>\<user>
+org.apache.chemistry.opencmis.password=<password>
+
+cmis.workbench.folder.filter=*

Propchange: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/configs/sharepoint-2010-webservices.properties
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message