You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fg...@apache.org on 2009/08/02 15:16:48 UTC

svn commit: r800063 - in /incubator/chemistry/trunk/chemistry: chemistry-api/src/main/java/org/apache/chemistry/ chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/ chemistry-commons/src/main/java/org/apache/chemistry/impl/simpl...

Author: fguillaume
Date: Sun Aug  2 13:16:48 2009
New Revision: 800063

URL: http://svn.apache.org/viewvc?rev=800063&view=rev
Log:
CMIS-44: moveObject can return an updated object ID

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-api/src/main/java/org/apache/chemistry/SPI.java
    incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPConnection.java
    incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/impl/simple/SimpleConnection.java
    incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-api/src/main/java/org/apache/chemistry/SPI.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-api/src/main/java/org/apache/chemistry/SPI.java?rev=800063&r1=800062&r2=800063&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-api/src/main/java/org/apache/chemistry/SPI.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-api/src/main/java/org/apache/chemistry/SPI.java Sun Aug  2 13:16:48 2009
@@ -456,8 +456,10 @@
      * @param object the object to move
      * @param targetFolder the target folder
      * @param sourceFolder the source folder, or {@code null}
+     * @return the resulting object, which may differ from the one passed as
+     *         input
      */
-    void moveObject(ObjectId object, ObjectId targetFolder,
+    ObjectId moveObject(ObjectId object, ObjectId targetFolder,
             ObjectId sourceFolder);
 
     /**

Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPConnection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPConnection.java?rev=800063&r1=800062&r2=800063&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPConnection.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPConnection.java Sun Aug  2 13:16:48 2009
@@ -456,7 +456,7 @@
         throw new UnsupportedOperationException();
     }
 
-    public void moveObject(ObjectId object, ObjectId targetFolder,
+    public ObjectId moveObject(ObjectId object, ObjectId targetFolder,
             ObjectId sourceFolder) {
         // TODO Auto-generated method stub
         throw new UnsupportedOperationException();

Modified: incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/impl/simple/SimpleConnection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/impl/simple/SimpleConnection.java?rev=800063&r1=800062&r2=800063&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/impl/simple/SimpleConnection.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/impl/simple/SimpleConnection.java Sun Aug  2 13:16:48 2009
@@ -516,7 +516,7 @@
         throw new UnsupportedOperationException();
     }
 
-    public void moveObject(ObjectId object, ObjectId targetFolder,
+    public ObjectId moveObject(ObjectId object, ObjectId targetFolder,
             ObjectId sourceFolder) {
         // TODO Auto-generated method stub
         throw new UnsupportedOperationException();

Modified: incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java?rev=800063&r1=800062&r2=800063&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java Sun Aug  2 13:16:48 2009
@@ -109,18 +109,22 @@
     }
 
     public Document newDocument(String typeId, Folder folder) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Folder newFolder(String typeId, Folder folder) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Policy newPolicy(String typeId, Folder folder) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Relationship newRelationship(String typeId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
@@ -151,24 +155,29 @@
     // SPI
 
     public void addObjectToFolder(ObjectId objectId, ObjectId folderId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public void applyPolicy(ObjectId policyId, ObjectId objectId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public void cancelCheckOut(ObjectId documentId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId checkIn(ObjectId documentId, boolean major,
             Map<String, Serializable> properties, ContentStream contentStream,
             String comment) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId checkOut(ObjectId documentId, boolean[] contentCopied) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
@@ -197,45 +206,54 @@
 
     public ObjectId createFolder(String typeId,
             Map<String, Serializable> properties, ObjectId folderId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId createPolicy(String typeId,
             Map<String, Serializable> properties, ObjectId folderId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId createRelationship(String typeId,
             Map<String, Serializable> properties, ObjectId sourceId,
             ObjectId targetId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId deleteContentStream(ObjectId documentId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public void deleteObject(ObjectId objectId, boolean allVersions) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Collection<ObjectId> deleteTree(ObjectId folderId,
             Unfiling unfiling, boolean continueOnFailure) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Collection<ObjectEntry> getAllVersions(String versionSeriesId,
             String filter) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Collection<String> getAllowableActions(ObjectId objectId,
             String asUser) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public Collection<ObjectEntry> getAppliedPolicies(ObjectId objectId,
             String filter) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
@@ -243,6 +261,7 @@
             String filter, boolean includeAllowableActions,
             boolean includeRelationships, int maxItems, int skipCount,
             boolean[] hasMoreItems) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
@@ -386,9 +405,9 @@
         throw new UnsupportedOperationException();
     }
 
-    public void moveObject(ObjectId objectId, ObjectId targetFolderId,
+    public ObjectId moveObject(ObjectId objectId, ObjectId targetFolderId,
             ObjectId sourceFolderId) {
-
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
@@ -424,20 +443,24 @@
     }
 
     public void removeObjectFromFolder(ObjectId objectId, ObjectId folderId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public void removePolicy(ObjectId policyId, ObjectId objectId) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId setContentStream(ObjectId documentId, boolean overwrite,
             ContentStream contentStream) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }
 
     public ObjectId updateProperties(ObjectId objectId, String changeToken,
             Map<String, Serializable> properties) {
+        // TODO Auto-generated method stub
         throw new UnsupportedOperationException();
     }