chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r915878 - in /incubator/chemistry/trunk/opencmis: opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/ opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/ opencmis-client/openc...
Date Wed, 24 Feb 2010 17:16:33 GMT
Author: sklevenz
Date: Wed Feb 24 17:16:32 2010
New Revision: 915878

URL: http://svn.apache.org/viewvc?rev=915878&view=rev
Log:
client runtime implementation
- path in client policy api
- minor enum fixes
https://issues.apache.org/jira/browse/CMIS-124

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Policy.java
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/test/java/org/apache/opencmis/client/runtime/suite/otx/OtxAtomPubCmisTestSuite.java
    incubator/chemistry/trunk/opencmis/opencmis-commons/opencmis-commons-api/src/main/java/org/apache/opencmis/commons/enums/BindingType.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Policy.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Policy.java?rev=915878&r1=915877&r2=915878&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Policy.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Policy.java
Wed Feb 24 17:16:32 2010
@@ -18,14 +18,15 @@
  */
 package org.apache.opencmis.client.api;
 
+import java.util.List;
 
 /**
  * Domain Model 2.7
  */
 public interface Policy extends CmisObject {
 
-	String getPath();
+	List<String> getPaths();
 
-  public String getPolicyText(); // cmis:policyText
+	public String getPolicyText(); // cmis:policyText
 
 }

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java?rev=915878&r1=915877&r2=915878&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
Wed Feb 24 17:16:32 2010
@@ -358,10 +358,10 @@
 				.get(SessionParameter.BINDING_TYPE));
 
 		switch (bt) {
-		case ATOM:
+		case ATOMPUB:
 			this.provider = this.createAtomPubProvider(this.parameters);
 			break;
-		case WEBSERVICE:
+		case WEBSERVICES:
 			this.provider = this.createWebServiceProvider(this.parameters);
 			break;
 		case UNSPECIFIC:

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/test/java/org/apache/opencmis/client/runtime/suite/otx/OtxAtomPubCmisTestSuite.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/test/java/org/apache/opencmis/client/runtime/suite/otx/OtxAtomPubCmisTestSuite.java?rev=915878&r1=915877&r2=915878&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/test/java/org/apache/opencmis/client/runtime/suite/otx/OtxAtomPubCmisTestSuite.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/test/java/org/apache/opencmis/client/runtime/suite/otx/OtxAtomPubCmisTestSuite.java
Wed Feb 24 17:16:32 2010
@@ -56,7 +56,7 @@
     parameter.put(SessionParameter.SESSION_TYPE, SessionType.PERSISTENT.value());
     parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, Locale.GERMANY.getISO3Country());
     parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, Locale.GERMANY.getISO3Language());
-    parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOM.value());
+    parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
     parameter.put(SessionParameter.ATOMPUB_URL, "http://pwdf6227:8080/cmis/atom");
     parameter.put(SessionParameter.REPOSITORY_ID, "testApp");
     

Modified: incubator/chemistry/trunk/opencmis/opencmis-commons/opencmis-commons-api/src/main/java/org/apache/opencmis/commons/enums/BindingType.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-commons/opencmis-commons-api/src/main/java/org/apache/opencmis/commons/enums/BindingType.java?rev=915878&r1=915877&r2=915878&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-commons/opencmis-commons-api/src/main/java/org/apache/opencmis/commons/enums/BindingType.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-commons/opencmis-commons-api/src/main/java/org/apache/opencmis/commons/enums/BindingType.java
Wed Feb 24 17:16:32 2010
@@ -20,29 +20,28 @@
 
 /**
  * Binding Type Enum.
- * 
- * 
  */
 public enum BindingType {
 
-  WEBSERVICE("webservice"), ATOM("atom"), UNSPECIFIC("unspecific");
-  private final String value;
+	WEBSERVICES("webservices"), ATOMPUB("atompub"), UNSPECIFIC("unspecific");
 
-  BindingType(String v) {
-    value = v;
-  }
-
-  public String value() {
-    return value;
-  }
-
-  public static BindingType fromValue(String v) {
-    for (BindingType c : BindingType.values()) {
-      if (c.value.equals(v)) {
-        return c;
-      }
-    }
-    throw new IllegalArgumentException(v);
-  }
+	private final String value;
+
+	BindingType(String v) {
+		value = v;
+	}
+
+	public String value() {
+		return value;
+	}
+
+	public static BindingType fromValue(String v) {
+		for (BindingType c : BindingType.values()) {
+			if (c.value.equals(v)) {
+				return c;
+			}
+		}
+		throw new IllegalArgumentException(v);
+	}
 
 }



Mime
View raw message