You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Daniel Lichtenberger (JIRA)" <ji...@apache.org> on 2009/09/29 12:20:16 UTC

[jira] Created: (CMIS-54) Creating copies of a Document/Folder

Creating copies of a Document/Folder 
-------------------------------------

                 Key: CMIS-54
                 URL: https://issues.apache.org/jira/browse/CMIS-54
             Project: Chemistry
          Issue Type: New Feature
          Components: api
            Reporter: Daniel Lichtenberger


I'm implementing a Milton-based WebDAV adapter on top of Chemistry. One common operation that I haven't been able to map to Chemistry APIs is the copying of documents (files). In theory, I could create a new document and set all the values and content streams of the old one, but in our case (http://www.flexive.org) the repository doesn't expose all relevant data via Chemistry. However, copying documents is a trivial operation when performed using native repository methods (and it's probably faster too).

For now, I created an extension that allows me to perform the copy operation:
{code}public interface CopyDocumentExtension {
    CMISObject copy(Connection conn, ObjectId id);
}{code}

I think this method would be useful on all Chemistry documents (e.g. CMISObject or Document), similar to the "move" method that is also available for all objects. A "copyTo" method that accepts a target folder ID would also be nice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CMIS-54) Creating copies of a Document/Folder

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florent Guillaume reassigned CMIS-54:
-------------------------------------

    Assignee: Florent Guillaume

> Creating copies of a Document/Folder 
> -------------------------------------
>
>                 Key: CMIS-54
>                 URL: https://issues.apache.org/jira/browse/CMIS-54
>             Project: Chemistry
>          Issue Type: New Feature
>          Components: chemistry-api
>            Reporter: Daniel Lichtenberger
>            Assignee: Florent Guillaume
>
> I'm implementing a Milton-based WebDAV adapter on top of Chemistry. One common operation that I haven't been able to map to Chemistry APIs is the copying of documents (files). In theory, I could create a new document and set all the values and content streams of the old one, but in our case (http://www.flexive.org) the repository doesn't expose all relevant data via Chemistry. However, copying documents is a trivial operation when performed using native repository methods (and it's probably faster too).
> For now, I created an extension that allows me to perform the copy operation:
> {code}public interface CopyDocumentExtension {
>     CMISObject copy(Connection conn, ObjectId id);
> }{code}
> I think this method would be useful on all Chemistry documents (e.g. CMISObject or Document), similar to the "move" method that is also available for all objects. A "copyTo" method that accepts a target folder ID would also be nice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CMIS-54) Creating copies of a Document/Folder

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760570#action_12760570 ] 

Florent Guillaume commented on CMIS-54:
---------------------------------------

Up until 0.62 there was no way in the CMIS protocol to do a document copy.
This was finally added in 0.63 under the name createDocumentFromSource. But I haven't had time yet to update the Chemistry APIs to 0.63 (or 0.70 even). As soon as I get the time I'll be adding this. I definitely agree that having a way to copy documents is important.


> Creating copies of a Document/Folder 
> -------------------------------------
>
>                 Key: CMIS-54
>                 URL: https://issues.apache.org/jira/browse/CMIS-54
>             Project: Chemistry
>          Issue Type: New Feature
>          Components: api
>            Reporter: Daniel Lichtenberger
>
> I'm implementing a Milton-based WebDAV adapter on top of Chemistry. One common operation that I haven't been able to map to Chemistry APIs is the copying of documents (files). In theory, I could create a new document and set all the values and content streams of the old one, but in our case (http://www.flexive.org) the repository doesn't expose all relevant data via Chemistry. However, copying documents is a trivial operation when performed using native repository methods (and it's probably faster too).
> For now, I created an extension that allows me to perform the copy operation:
> {code}public interface CopyDocumentExtension {
>     CMISObject copy(Connection conn, ObjectId id);
> }{code}
> I think this method would be useful on all Chemistry documents (e.g. CMISObject or Document), similar to the "move" method that is also available for all objects. A "copyTo" method that accepts a target folder ID would also be nice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CMIS-54) Creating copies of a Document/Folder

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florent Guillaume resolved CMIS-54.
-----------------------------------

    Resolution: Fixed

r914996
Implemented in the APIs and the "Simple" in-memory code.
Note that native AtomPub doesn't implement these bindings.


> Creating copies of a Document/Folder 
> -------------------------------------
>
>                 Key: CMIS-54
>                 URL: https://issues.apache.org/jira/browse/CMIS-54
>             Project: Chemistry
>          Issue Type: New Feature
>          Components: chemistry-api
>            Reporter: Daniel Lichtenberger
>            Assignee: Florent Guillaume
>
> I'm implementing a Milton-based WebDAV adapter on top of Chemistry. One common operation that I haven't been able to map to Chemistry APIs is the copying of documents (files). In theory, I could create a new document and set all the values and content streams of the old one, but in our case (http://www.flexive.org) the repository doesn't expose all relevant data via Chemistry. However, copying documents is a trivial operation when performed using native repository methods (and it's probably faster too).
> For now, I created an extension that allows me to perform the copy operation:
> {code}public interface CopyDocumentExtension {
>     CMISObject copy(Connection conn, ObjectId id);
> }{code}
> I think this method would be useful on all Chemistry documents (e.g. CMISObject or Document), similar to the "move" method that is also available for all objects. A "copyTo" method that accepts a target folder ID would also be nice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.