Author: fmui
Date: Mon Jan 26 11:30:28 2015
New Revision: 1654769

URL: http://svn.apache.org/r1654769
Log:
added latest accessible state extension

Modified:
    
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/ExtensionFeatures.java
    
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java

Modified: 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/ExtensionFeatures.java
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/ExtensionFeatures.java?rev=1654769&r1=1654768&r2=1654769&view=diff
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/ExtensionFeatures.java
 (original)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/ExtensionFeatures.java
 Mon Jan 26 11:30:28 2015
@@ -111,4 +111,48 @@ public final class ExtensionFeatures {
             return null;
         }
     };
+
+    public static final ExtensionFeature LATEST_ACCESSIBLE_STATE = new 
ExtensionFeature() {
+        private static final long serialVersionUID = 1L;
+
+        @Override
+        public String getId() {
+            return 
"http://docs.oasis-open.org/ns/cmis/extension/latestAccessibleState/1.1";;
+        }
+
+        @Override
+        public String getUrl() {
+            return 
"https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=cmis";;
+        }
+
+        @Override
+        public String getCommonName() {
+            return "Latest Accessible State";
+        }
+
+        @Override
+        public String getVersionLabel() {
+            return "1.1";
+        }
+
+        @Override
+        public String getDescription() {
+            return "This extension provides for an identifier of each 
cmis:document that retrieves "
+                    + "the latest accessible state of the document whether the 
document is versioned or not.";
+        }
+
+        @Override
+        public Map<String, String> getFeatureData() {
+            return null;
+        }
+
+        @Override
+        public void setExtensions(List<CmisExtensionElement> extensions) {
+        }
+
+        @Override
+        public List<CmisExtensionElement> getExtensions() {
+            return null;
+        }
+    };
 }

Modified: 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java?rev=1654769&r1=1654768&r2=1654769&view=diff
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java
 (original)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java
 Mon Jan 26 11:30:28 2015
@@ -394,4 +394,15 @@ public final class PropertyIds {
      * @cmis Extension
      */
     public static final String CONTENT_STREAM_HASH = "cmis:contentStreamHash";
+
+    /**
+     * Latest accessible state property {@code cmis:latestAccessibleStateId}: 
ID
+     * of the latest accessible version of a document
+     * <p>
+     * CMIS data type: id<br>
+     * Java type: String
+     * 
+     * @cmis Extension
+     */
+    public static final String LATEST_ACCESSIBLE_STATE_ID = 
"cmis:latestAccessibleStateId";
 }


Reply via email to