chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r920866 - in /incubator/chemistry/trunk/opencmis/opencmis-client: opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
Date Tue, 09 Mar 2010 13:29:12 GMT
Author: dcaruana
Date: Tue Mar  9 13:29:12 2010
New Revision: 920866

URL: http://svn.apache.org/viewvc?rev=920866&view=rev
Log:
Add contentStream related property getters to OpenCMIS Document.

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java?rev=920866&r1=920865&r2=920866&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-api/src/main/java/org/apache/opencmis/client/api/Document.java
Tue Mar  9 13:29:12 2010
@@ -18,6 +18,7 @@
  */
 package org.apache.opencmis.client.api;
 
+import java.math.BigInteger;
 import java.util.List;
 
 import org.apache.opencmis.commons.enums.VersioningState;
@@ -76,6 +77,15 @@ public interface Document extends Fileab
 
   String getCheckinComment(); // cmis:checkinComment
 
+  long getContentStreamLength(); // cmis:contentStreamLength
+  
+  String getContentStreamMimeType(); // cmis:contentStreamMimeType
+  
+  String getContentStreamFileName(); // cmis:contentStreamFileName
+  
+  String getContentStreamId(); // cmis:contentStreamId
+  
+  
   /**
    * Shortcut for ObjectFactory.createDocumentFromSource(this, ...).
    * 

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java?rev=920866&r1=920865&r2=920866&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
Tue Mar  9 13:29:12 2010
@@ -18,6 +18,7 @@
  */
 package org.apache.opencmis.client.runtime;
 
+import java.math.BigInteger;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -88,6 +89,23 @@ public class PersistentDocumentImpl exte
     return getPropertyValue(PropertyIds.CMIS_IS_VERSION_SERIES_CHECKED_OUT);
   }
 
+  public long getContentStreamLength() {
+    BigInteger bigInt = getPropertyValue(PropertyIds.CMIS_CONTENT_STREAM_LENGTH);
+    return (bigInt == null) ? (long)-1 : bigInt.longValue();
+  }
+  
+  public String getContentStreamMimeType() {
+    return getPropertyValue(PropertyIds.CMIS_CONTENT_STREAM_MIME_TYPE);
+  }
+  
+  public String getContentStreamFileName() {
+    return getPropertyValue(PropertyIds.CMIS_CONTENT_STREAM_FILE_NAME);
+  }
+  
+  public String getContentStreamId() {
+    return getPropertyValue(PropertyIds.CMIS_CONTENT_STREAM_ID);
+  }
+
   // operations
 
   public Document copy(List<Property<?>> properties, VersioningState versioningState,



Mime
View raw message