chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1001896 - in /incubator/chemistry/opencmis-swingclient/trunk/src/main: java/org/apache/chemistry/opencmis/swingclient/ java/org/apache/chemistry/opencmis/swingclient/model/ resources/META-INF/
Date Mon, 27 Sep 2010 20:06:35 GMT
Author: fmui
Date: Mon Sep 27 20:06:35 2010
New Revision: 1001896

URL: http://svn.apache.org/viewvc?rev=1001896&view=rev
Log:
- added more configuration options (some repositories need special treatment)

Added:
    incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java
  (with props)
Modified:
    incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/InfoDialog.java
    incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientModel.java
    incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientSession.java
    incubator/chemistry/opencmis-swingclient/trunk/src/main/resources/META-INF/README

Modified: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/InfoDialog.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/InfoDialog.java?rev=1001896&r1=1001895&r2=1001896&view=diff
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/InfoDialog.java
(original)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/InfoDialog.java
Mon Sep 27 20:06:35 2010
@@ -22,16 +22,18 @@ import java.awt.Dimension;
 import java.awt.FlowLayout;
 import java.awt.Font;
 import java.awt.Frame;
-import java.awt.TextArea;
 import java.io.BufferedReader;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 
+import javax.swing.BorderFactory;
 import javax.swing.BoxLayout;
 import javax.swing.JDialog;
 import javax.swing.JFrame;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
 import javax.swing.UIManager;
 
 public class InfoDialog extends JDialog {
@@ -44,13 +46,12 @@ public class InfoDialog extends JDialog 
     }
 
     private void createGUI() {
-        setPreferredSize(new Dimension(600, 400));
-        setMinimumSize(new Dimension(200, 60));
+        setPreferredSize(new Dimension(800, 500));
+        setMinimumSize(new Dimension(600, 400));
 
         setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS));
 
         JPanel topPanel = new JPanel(new FlowLayout());
-        // topPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
 
         JLabel cmisLogo = new JLabel(ClientHelper.getIcon("icon.png"));
         topPanel.add(cmisLogo);
@@ -67,12 +68,16 @@ public class InfoDialog extends JDialog 
         StringBuilder readme = new StringBuilder();
 
         readme.append(loadText("/META-INF/README", "OpenCMIS Swing Client"));
-        readme.append("\n\n");
+        readme.append("\n---------------------------------------------------------\n");
         readme.append(loadText("/META-INF/build-timestamp.txt", ""));
 
-        TextArea ta = new TextArea(readme.toString());
+        JTextArea ta = new JTextArea(readme.toString());
         ta.setEditable(false);
-        add(ta);
+        ta.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
+        JScrollPane readmePane = new JScrollPane(ta);
+        readmePane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
+        
+        add(readmePane);
 
         setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
         pack();

Modified: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientModel.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientModel.java?rev=1001896&r1=1001895&r2=1001896&view=diff
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientModel.java
(original)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientModel.java
Mon Sep 27 20:06:35 2010
@@ -25,10 +25,8 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
 
 import javax.swing.event.EventListenerList;
 
@@ -45,38 +43,17 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.data.ContentStream;
 import org.apache.chemistry.opencmis.commons.data.RepositoryCapabilities;
 import org.apache.chemistry.opencmis.commons.data.RepositoryInfo;
-import org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition;
-import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;
 import org.apache.chemistry.opencmis.commons.enums.CapabilityQuery;
 import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
 import org.apache.chemistry.opencmis.commons.enums.VersioningState;
 
 public class ClientModel {
 
-    private static final Set<String> PROPERTY_SET = new HashSet<String>();
-    static {
-        PROPERTY_SET.add(PropertyIds.OBJECT_ID);
-        PROPERTY_SET.add(PropertyIds.OBJECT_TYPE_ID);
-        PROPERTY_SET.add(PropertyIds.NAME);
-        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_MIME_TYPE);
-        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_LENGTH);
-        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_FILE_NAME);
-        PROPERTY_SET.add(PropertyIds.CREATED_BY);
-        PROPERTY_SET.add(PropertyIds.CREATION_DATE);
-        PROPERTY_SET.add(PropertyIds.LAST_MODIFIED_BY);
-        PROPERTY_SET.add(PropertyIds.LAST_MODIFICATION_DATE);
-    }
-
-    private static final OperationContext OBJECT_OC = new OperationContextImpl(Collections.singleton("*"),
true, true,
-            true, IncludeRelationships.BOTH, Collections.singleton("*"), false, null, true,
1000);
-
     // object details must not be older than 60 seconds
     private static final long OLD = 60 * 1000;
 
     private ClientSession clientSession;
 
-    private OperationContext folderOC = null;
-
     private Folder currentFolder = null;
     private List<CmisObject> currentChildren = Collections.emptyList();
     private CmisObject currentObject = null;
@@ -84,7 +61,6 @@ public class ClientModel {
     private EventListenerList listenerList = new EventListenerList();
 
     public ClientModel() {
-
     }
 
     public void addFolderListener(FolderListener listener) {
@@ -105,7 +81,6 @@ public class ClientModel {
 
     public synchronized void setClientSession(ClientSession clientSession) {
         this.clientSession = clientSession;
-        folderOC = createFolderOperationContext();
     }
 
     public synchronized ClientSession getClientSession() {
@@ -154,7 +129,8 @@ public class ClientModel {
             }
 
             List<CmisObject> children = new ArrayList<CmisObject>();
-            ItemIterable<CmisObject> iter = ((Folder) folderObject).getChildren(folderOC);
+            ItemIterable<CmisObject> iter = ((Folder) folderObject).getChildren(clientSession
+                    .getFolderOperationContext());
             for (CmisObject child : iter) {
                 children.add(child);
             }
@@ -173,7 +149,8 @@ public class ClientModel {
     public synchronized void loadObject(String objectId) throws Exception {
         try {
             Session session = clientSession.getSession();
-            CmisObject object = session.getObject(session.createObjectId(objectId), OBJECT_OC);
+            CmisObject object = session.getObject(session.createObjectId(objectId),
+                    clientSession.getObjectOperationContext());
             object.refreshIfOld(OLD);
 
             setCurrentObject(object);
@@ -190,7 +167,7 @@ public class ClientModel {
 
         try {
             Session session = clientSession.getSession();
-            CmisObject object = session.getObject(currentObject, OBJECT_OC);
+            CmisObject object = session.getObject(currentObject, clientSession.getObjectOperationContext());
             object.refresh();
 
             setCurrentObject(object);
@@ -324,19 +301,4 @@ public class ClientModel {
             ol.objectLoaded(new ClientModelEvent(this));
         }
     }
-
-    private synchronized OperationContext createFolderOperationContext() {
-        ObjectType type = clientSession.getSession().getTypeDefinition(BaseTypeId.CMIS_DOCUMENT.value());
-
-        Set<String> filter = new HashSet<String>();
-        for (String propId : PROPERTY_SET) {
-            PropertyDefinition<?> propDef = type.getPropertyDefinitions().get(propId);
-            if (propDef != null) {
-                filter.add(propDef.getQueryName());
-            }
-        }
-
-        return new OperationContextImpl(filter, false, true, false, IncludeRelationships.NONE,
null, false, null,
-                false, 1000);
-    }
 }

Added: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java?rev=1001896&view=auto
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java
(added)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java
Mon Sep 27 20:06:35 2010
@@ -0,0 +1,84 @@
+/*
+ * 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.
+ */
+package org.apache.chemistry.opencmis.swingclient.model;
+
+import java.util.Map;
+
+import org.apache.chemistry.opencmis.client.runtime.OperationContextImpl;
+import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
+
+public class ClientOperationContext extends OperationContextImpl {
+
+    private static final long serialVersionUID = 1L;
+
+    public static final String FILTER = "filter";
+    public static final String INCLUDE_ACLS = "includeAcls";
+    public static final String INCLUDE_ALLOWABLE_ACTIONS = "includeAllowableActions";
+    public static final String INCLUDE_POLICIES = "includePolicies";
+    public static final String INCLUDE_RELATIONSHIPS = "includeRelationships";
+    public static final String RENDITION_FILTER = "renditionFilter";
+    public static final String ORDER_BY = "orderBy";
+    public static final String MAX_ITEMS_PER_PAGE = "maxItemsPerPage";
+
+    public ClientOperationContext(String prefix, Map<String, String> map) {
+        loadContext(prefix, map);
+        setIncludePathSegments(false);
+        setCacheEnabled(true);
+    }
+
+    public void loadContext(String prefix, Map<String, String> map) {
+        setFilterString(map.get(prefix + FILTER));
+        setIncludeAcls(parseBoolean(map.get(prefix + INCLUDE_ACLS), false));
+        setIncludeAllowableActions(parseBoolean(map.get(prefix + INCLUDE_ALLOWABLE_ACTIONS),
false));
+        setIncludePolicies(parseBoolean(map.get(prefix + INCLUDE_POLICIES), false));
+        setIncludeRelationships(parseIncludeRelationships(map.get(prefix + INCLUDE_RELATIONSHIPS),
+                IncludeRelationships.NONE));
+        setRenditionFilterString(map.get(prefix + RENDITION_FILTER));
+        setOrderBy(map.get(prefix + ORDER_BY));
+        setMaxItemsPerPage(parseInteger(map.get(prefix + MAX_ITEMS_PER_PAGE), 1000));
+    }
+
+    private boolean parseBoolean(String s, boolean defaultValue) {
+        return (s == null ? defaultValue : Boolean.parseBoolean(s));
+    }
+
+    private IncludeRelationships parseIncludeRelationships(String s, IncludeRelationships
defaultValue) {
+        if (s == null) {
+            return defaultValue;
+        }
+
+        try {
+            return IncludeRelationships.fromValue(s);
+        } catch (Exception e) {
+            return defaultValue;
+        }
+    }
+
+    private int parseInteger(String s, int defaultValue) {
+        if (s == null) {
+            return defaultValue;
+        }
+
+        try {
+            return Integer.parseInt(s);
+        } catch (NumberFormatException e) {
+            return defaultValue;
+        }
+    }
+}

Propchange: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientOperationContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientSession.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientSession.java?rev=1001896&r1=1001895&r2=1001896&view=diff
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientSession.java
(original)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/model/ClientSession.java
Mon Sep 27 20:06:35 2010
@@ -19,25 +19,62 @@
 package org.apache.chemistry.opencmis.swingclient.model;
 
 import java.net.Authenticator;
+import java.security.cert.X509Certificate;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
 
+import javax.net.ssl.HttpsURLConnection;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.TrustManager;
+import javax.net.ssl.X509TrustManager;
+
+import org.apache.chemistry.opencmis.client.api.ObjectType;
+import org.apache.chemistry.opencmis.client.api.OperationContext;
 import org.apache.chemistry.opencmis.client.api.Repository;
 import org.apache.chemistry.opencmis.client.api.Session;
 import org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory;
 import org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl;
+import org.apache.chemistry.opencmis.commons.PropertyIds;
 import org.apache.chemistry.opencmis.commons.SessionParameter;
+import org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition;
+import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;
 import org.apache.chemistry.opencmis.commons.enums.BindingType;
+import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
 
 public class ClientSession {
 
+    public static final String SWINGCLIENT_PREFIX = "swingclient.";
+    public static final String OBJECT_PREFIX = SWINGCLIENT_PREFIX + "object.";
+    public static final String FOLDER_PREFIX = SWINGCLIENT_PREFIX + "folder.";
+    public static final String ACCEPT_SELF_SIGNED_CERTIFICATES = "swingclient.acceptSelfSignedCertificates";
+
     public enum Authentication {
         NONE, STANDARD, NTLM
     }
 
+    private static final Set<String> PROPERTY_SET = new HashSet<String>();
+    static {
+        PROPERTY_SET.add(PropertyIds.OBJECT_ID);
+        PROPERTY_SET.add(PropertyIds.OBJECT_TYPE_ID);
+        PROPERTY_SET.add(PropertyIds.NAME);
+        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_MIME_TYPE);
+        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_LENGTH);
+        PROPERTY_SET.add(PropertyIds.CONTENT_STREAM_FILE_NAME);
+        PROPERTY_SET.add(PropertyIds.CREATED_BY);
+        PROPERTY_SET.add(PropertyIds.CREATION_DATE);
+        PROPERTY_SET.add(PropertyIds.LAST_MODIFIED_BY);
+        PROPERTY_SET.add(PropertyIds.LAST_MODIFICATION_DATE);
+    }
+
+    private Map<String, String> sessionParameters;
     private List<Repository> repositories;
     private Session session;
+    private OperationContext objectOperationContext;
+    private OperationContext folderOperationContext;
 
     public ClientSession(String url, BindingType binding, String username, String password,
Authentication authenticaion) {
         Map<String, String> parameters = new HashMap<String, String>();
@@ -71,6 +108,14 @@ public class ClientSession {
             break;
         }
 
+        // get additional swing client properties from system properties
+        Properties sysProps = System.getProperties();
+        for (String key : sysProps.stringPropertyNames()) {
+            if (key.startsWith(SWINGCLIENT_PREFIX)) {
+                parameters.put(key, sysProps.getProperty(key));
+            }
+        }
+
         connect(parameters);
     }
 
@@ -83,11 +128,17 @@ public class ClientSession {
     }
 
     private void connect(Map<String, String> sessionParameters) {
+        this.sessionParameters = sessionParameters;
+
         // set a new dummy authenticator
         // don't send previous credentials to another server
         Authenticator.setDefault(new Authenticator() {
         });
 
+        if (Boolean.parseBoolean(sessionParameters.get(ACCEPT_SELF_SIGNED_CERTIFICATES)))
{
+            acceptSelfSignedCertificates();
+        }
+
         repositories = SessionFactoryImpl.newInstance().getRepositories(sessionParameters);
     }
 
@@ -97,10 +148,90 @@ public class ClientSession {
 
     public Session createSession(int index) {
         session = repositories.get(index).createSession();
+        createOperationContexts();
         return getSession();
     }
 
     public Session getSession() {
         return session;
     }
+
+    public OperationContext getObjectOperationContext() {
+        return objectOperationContext;
+    }
+
+    public OperationContext getFolderOperationContext() {
+        return folderOperationContext;
+    }
+
+    private void createOperationContexts() {
+        // object operation context
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.FILTER, "*");
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_ACLS,
"true");
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_ALLOWABLE_ACTIONS,
"true");
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_POLICIES,
"true");
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_RELATIONSHIPS,
+                IncludeRelationships.BOTH.value());
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.RENDITION_FILTER,
"*");
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.ORDER_BY, null);
+        setDefault(OBJECT_PREFIX, sessionParameters, ClientOperationContext.MAX_ITEMS_PER_PAGE,
"1000");
+
+        objectOperationContext = new ClientOperationContext(OBJECT_PREFIX, sessionParameters);
+
+        // folder operation context
+        if (!sessionParameters.containsKey(FOLDER_PREFIX + ClientOperationContext.FILTER))
{
+            ObjectType type = session.getTypeDefinition(BaseTypeId.CMIS_DOCUMENT.value());
+
+            StringBuilder filter = new StringBuilder();
+            for (String propId : PROPERTY_SET) {
+                PropertyDefinition<?> propDef = type.getPropertyDefinitions().get(propId);
+                if (propDef != null) {
+                    if (filter.length() > 0) {
+                        filter.append(",");
+                    }
+                    filter.append(propDef.getQueryName());
+                }
+            }
+
+            sessionParameters.put(FOLDER_PREFIX + ClientOperationContext.FILTER, filter.toString());
+        }
+
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_ACLS,
"false");
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_ALLOWABLE_ACTIONS,
"false");
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_POLICIES,
"false");
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.INCLUDE_RELATIONSHIPS,
+                IncludeRelationships.NONE.value());
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.RENDITION_FILTER,
"cmis:none");
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.ORDER_BY, null);
+        setDefault(FOLDER_PREFIX, sessionParameters, ClientOperationContext.MAX_ITEMS_PER_PAGE,
"1000");
+
+        folderOperationContext = new ClientOperationContext(FOLDER_PREFIX, sessionParameters);
+    }
+
+    private void setDefault(String prefix, Map<String, String> map, String key, String
value) {
+        if (!map.containsKey(prefix + key)) {
+            map.put(prefix + key, value);
+        }
+    }
+
+    private void acceptSelfSignedCertificates() {
+        TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
+            public X509Certificate[] getAcceptedIssuers() {
+                return null;
+            }
+
+            public void checkClientTrusted(X509Certificate[] certs, String authType) {
+            }
+
+            public void checkServerTrusted(X509Certificate[] certs, String authType) {
+            }
+        } };
+
+        try {
+            SSLContext sc = SSLContext.getInstance("SSL");
+            sc.init(null, trustAllCerts, new java.security.SecureRandom());
+            HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
+        } catch (Exception e) {
+        }
+    }
 }

Modified: incubator/chemistry/opencmis-swingclient/trunk/src/main/resources/META-INF/README
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/resources/META-INF/README?rev=1001896&r1=1001895&r2=1001896&view=diff
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/resources/META-INF/README (original)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/resources/META-INF/README Mon
Sep 27 20:06:35 2010
@@ -1,7 +1,47 @@
 OpenCMIS Swing Client
 
-This is a simple Content Management Interoperability Services (CMIS) client based on Swing

-and Apache Chemistry OpenCMIS (http://incubator.apache.org/chemistry/opencmis.html).
+This is a simple Content Management Interoperability Services (CMIS) client based on Swing
and 
+Apache Chemistry OpenCMIS (http://incubator.apache.org/chemistry/opencmis.html).
 
 This CMIS client is distributed under the Apache License, version 2.0.
 Please see the NOTICE and LICENSE files for details.
+
+
+
+System properties reference
+---------------------------
+
+Login dialog:
+
+swingclient.url            - preset URL
+swingclient.user           - preset user name
+swingclient.password       - preset password
+swingclient.binding        - preset binding (atompub/webservices)
+swingclient.authentication - preset authentication method (none/standard/ntlm)
+
+
+Folder operation context:
+
+swingclient.folder.filter
+swingclient.folder.includeAcls
+swingclient.folder.includeAllowableActions
+swingclient.folder.includePolicies
+swingclient.folder.includeRelationships
+swingclient.folder.renditionFilter
+swingclient.folder.orderBy
+swingclient.folder.maxItemsPerPage
+
+
+Object operation context:
+
+swingclient.object.filter
+swingclient.object.includeAcls
+swingclient.object.includeAllowableActions
+swingclient.object.includePolicies
+swingclient.object.includeRelationships
+swingclient.object.renditionFilter
+
+
+Others:
+
+swingclient.acceptSelfSignedCertificates - disable SSL certificate check (true/false)
\ No newline at end of file



Mime
View raw message