chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1086557 - in /chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/
Date Tue, 29 Mar 2011 11:51:12 GMT
Author: fmui
Date: Tue Mar 29 11:51:12 2011
New Revision: 1086557

URL: http://svn.apache.org/viewvc?rev=1086557&view=rev
Log:
CMIS-342: added Folder.getParentId()

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FolderProperties.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/FolderImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FolderProperties.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/api/FolderProperties.java?rev=1086557&r1=1086556&r2=1086557&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FolderProperties.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FolderProperties.java
Tue Mar 29 11:51:12 2011
@@ -26,11 +26,17 @@ import java.util.List;
  * @see CmisObjectProperties
  */
 public interface FolderProperties {
+
+    /**
+     * Returns the parent id or <code>null</code> if the folder is ther root
+     * folder (CMIS property <code>cmis:parentId</code>).
+     */
+    String getParentId();
+
     /**
      * Returns the list of the allowed object types in this folder (CMIS
-     * property
-     * <code>cmis:allowedChildObjectTypeIds</code>). If the list is empty or
<code>null</code>
-     * all object types are allowed.
+     * property <code>cmis:allowedChildObjectTypeIds</code>). If the list is
+     * empty or <code>null</code> all object types are allowed.
      */
     List<ObjectType> getAllowedChildObjectTypes();
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/FolderImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/FolderImpl.java?rev=1086557&r1=1086556&r2=1086557&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/FolderImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/FolderImpl.java
Tue Mar 29 11:51:12 2011
@@ -170,6 +170,10 @@ public class FolderImpl extends Abstract
         return failed.getIds();
     }
 
+    public String getParentId() {
+        return getPropertyValue(PropertyIds.PARENT_ID);
+    }
+
     public List<ObjectType> getAllowedChildObjectTypes() {
         List<ObjectType> result = new ArrayList<ObjectType>();
 
@@ -303,8 +307,8 @@ public class FolderImpl extends Abstract
     /**
      * Converts a binding container into an API container.
      */
-    private List<Tree<FileableCmisObject>> convertBindingContainer(
-            List<ObjectInFolderContainer> bindingContainerList, OperationContext context)
{
+    private List<Tree<FileableCmisObject>> convertBindingContainer(List<ObjectInFolderContainer>
bindingContainerList,
+            OperationContext context) {
         if (bindingContainerList == null) {
             return null;
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java?rev=1086557&r1=1086556&r2=1086557&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java
Tue Mar 29 11:51:12 2011
@@ -153,6 +153,10 @@ public class TransientFolderImpl extends
         return ((Folder) getCmisObject()).getCheckedOutDocs();
     }
 
+    public String getParentId() {
+        return getPropertyValue(PropertyIds.PARENT_ID);
+    }
+
     public List<ObjectType> getAllowedChildObjectTypes() {
         List<ObjectType> result = new ArrayList<ObjectType>();
 



Mime
View raw message