chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1595779 - in /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src: main/java/org/apache/chemistry/opencmis/client/ test/java/org/apache/chemistry/opencmis/client/
Date Mon, 19 May 2014 08:27:46 GMT
Author: fmui
Date: Mon May 19 08:27:46 2014
New Revision: 1595779

URL: http://svn.apache.org/r1595779
Log:
fixed a bug in SessionParameterMap

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionParameterMap.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/test/java/org/apache/chemistry/opencmis/client/SessionParameterMapTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionParameterMap.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionParameterMap.java?rev=1595779&r1=1595778&r2=1595779&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionParameterMap.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionParameterMap.java
Mon May 19 08:27:46 2014
@@ -39,6 +39,7 @@ import org.apache.chemistry.opencmis.cli
 import org.apache.chemistry.opencmis.client.api.SessionFactory;
 import org.apache.chemistry.opencmis.commons.SessionParameter;
 import org.apache.chemistry.opencmis.commons.enums.BindingType;
+import org.apache.chemistry.opencmis.commons.server.CmisServiceFactory;
 import org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider;
 
 /**
@@ -204,7 +205,7 @@ public class SessionParameterMap extends
      * @param serviceFactoryClass
      *            the local service factory class
      */
-    public void setLocalBindingClass(Class<? extends SessionFactory> serviceFactoryClass)
{
+    public void setLocalBindingClass(Class<? extends CmisServiceFactory> serviceFactoryClass)
{
         if (serviceFactoryClass == null) {
             remove(SessionParameter.BINDING_TYPE);
             remove(SessionParameter.LOCAL_FACTORY);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/test/java/org/apache/chemistry/opencmis/client/SessionParameterMapTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/test/java/org/apache/chemistry/opencmis/client/SessionParameterMapTest.java?rev=1595779&r1=1595778&r2=1595779&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/test/java/org/apache/chemistry/opencmis/client/SessionParameterMapTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/test/java/org/apache/chemistry/opencmis/client/SessionParameterMapTest.java
Mon May 19 08:27:46 2014
@@ -33,11 +33,11 @@ import javax.net.ssl.HostnameVerifier;
 import javax.net.ssl.SSLSocketFactory;
 import javax.xml.ws.handler.HandlerResolver;
 
-import org.apache.chemistry.opencmis.client.api.Repository;
-import org.apache.chemistry.opencmis.client.api.Session;
-import org.apache.chemistry.opencmis.client.api.SessionFactory;
 import org.apache.chemistry.opencmis.commons.SessionParameter;
 import org.apache.chemistry.opencmis.commons.enums.BindingType;
+import org.apache.chemistry.opencmis.commons.server.CallContext;
+import org.apache.chemistry.opencmis.commons.server.CmisService;
+import org.apache.chemistry.opencmis.commons.server.CmisServiceFactory;
 import org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider;
 import org.junit.Test;
 import org.w3c.dom.Element;
@@ -215,14 +215,39 @@ public class SessionParameterMapTest {
         }
     }
 
-    private class TestLocalSessionFactory implements SessionFactory {
+    private class TestLocalSessionFactory implements CmisServiceFactory {
 
-        public Session createSession(Map<String, String> parameters) {
+        @Override
+        public void init(Map<String, String> parameters) {
+        }
+
+        @Override
+        public void destroy() {
+        }
+
+        @Override
+        public CmisService getService(CallContext context) {
             return null;
         }
 
-        public List<Repository> getRepositories(Map<String, String> parameters)
{
+        @Override
+        public File getTempDirectory() {
             return null;
         }
+
+        @Override
+        public boolean encryptTempFiles() {
+            return false;
+        }
+
+        @Override
+        public int getMemoryThreshold() {
+            return 0;
+        }
+
+        @Override
+        public long getMaxContentSize() {
+            return 0;
+        }
     }
 }



Mime
View raw message