Return-Path: Delivered-To: apmail-incubator-chemistry-commits-archive@minotaur.apache.org Received: (qmail 18143 invoked from network); 31 Oct 2010 14:04:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Oct 2010 14:04:26 -0000 Received: (qmail 87309 invoked by uid 500); 31 Oct 2010 14:04:26 -0000 Delivered-To: apmail-incubator-chemistry-commits-archive@incubator.apache.org Received: (qmail 87252 invoked by uid 500); 31 Oct 2010 14:04:24 -0000 Mailing-List: contact chemistry-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-commits@incubator.apache.org Received: (qmail 87235 invoked by uid 99); 31 Oct 2010 14:04:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 14:04:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 14:04:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2259C23888C2; Sun, 31 Oct 2010 14:03:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: chemistry-commits@incubator.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101031140323.2259C23888C2@eris.apache.org> 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 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 readScriptLibrary() { + List 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 result = new ArrayList(); - 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 { - 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 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 result = new ArrayList(); + 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 { + 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 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 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:///alfresco/service/cmis +org.apache.chemistry.opencmis.user= +org.apache.chemistry.opencmis.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:///alfresco/cmis/RepositoryService?wsdl +org.apache.chemistry.opencmis.binding.webservices.NavigationService=http:///alfresco/cmis/NavigationService?wsdl +org.apache.chemistry.opencmis.binding.webservices.ObjectService=http:///alfresco/cmis/ObjectService?wsdl +org.apache.chemistry.opencmis.binding.webservices.VersioningService=http:///alfresco/cmis/VersioningService?wsdl +org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=http:///alfresco/cmis/DiscoveryService?wsdl +org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=http:///alfresco/cmis/MultiFilingService?wsdl +org.apache.chemistry.opencmis.binding.webservices.RelationshipService=http:///alfresco/cmis/RelationshipService?wsdl +org.apache.chemistry.opencmis.binding.webservices.ACLService=http:///alfresco/cmis/ACLService?wsdl +org.apache.chemistry.opencmis.binding.webservices.PolicyService=http:///alfresco/cmis/PolicyService?wsdl +org.apache.chemistry.opencmis.user= +org.apache.chemistry.opencmis.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:///alfresco/opencmis-atom +org.apache.chemistry.opencmis.user= +org.apache.chemistry.opencmis.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:///alfresco/opencmis-ws/RepositoryService?wsdl +org.apache.chemistry.opencmis.binding.webservices.NavigationService=http:///alfresco/opencmis-ws/NavigationService?wsdl +org.apache.chemistry.opencmis.binding.webservices.ObjectService=http:///alfresco/opencmis-ws/ObjectService?wsdl +org.apache.chemistry.opencmis.binding.webservices.VersioningService=http:///alfresco/opencmis-ws/VersioningService?wsdl +org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=http:///alfresco/opencmis-ws/DiscoveryService?wsdl +org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=http:///alfresco/opencmis-ws/MultiFilingService?wsdl +org.apache.chemistry.opencmis.binding.webservices.RelationshipService=http:///alfresco/opencmis-ws/RelationshipService?wsdl +org.apache.chemistry.opencmis.binding.webservices.ACLService=http:///alfresco/opencmis-ws/ACLService?wsdl +org.apache.chemistry.opencmis.binding.webservices.PolicyService=http:///alfresco/opencmis-ws/PolicyService?wsdl +org.apache.chemistry.opencmis.user= +org.apache.chemistry.opencmis.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:///_vti_bin/cmis/rest/?getrepositoryinfo +org.apache.chemistry.opencmis.user=\ +org.apache.chemistry.opencmis.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:///_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:/// +org.apache.chemistry.opencmis.binding.webservices.NavigationService=file:/// +org.apache.chemistry.opencmis.binding.webservices.ObjectService=file:/// +org.apache.chemistry.opencmis.binding.webservices.VersioningService=file:/// +org.apache.chemistry.opencmis.binding.webservices.DiscoveryService=file:/// +org.apache.chemistry.opencmis.binding.webservices.MultiFilingService=file:/// +org.apache.chemistry.opencmis.binding.webservices.RelationshipService=file:/// +org.apache.chemistry.opencmis.binding.webservices.ACLService=file:/// +org.apache.chemistry.opencmis.binding.webservices.PolicyService=file:/// +org.apache.chemistry.opencmis.binding.auth.classname=org.apache.chemistry.opencmis.client.bindings.spi.NTLMAuthenticationProvider +org.apache.chemistry.opencmis.user=\ +org.apache.chemistry.opencmis.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