Asset cloning using automation client.

Hi, Is there anyway to clone asset along with their blob content. We use the nuxeo automation client to upload assets in our java project. We have a requirement that we need to replicate (or clone) an existing asset along with the blob attachment to different path. Is there anyway we can do this using the Nuxeo automation Client ?

Thanks.

0 votes

1 answers

1616 views

ANSWER



Sorted. Document.copy can do this. session.newRequest(“Document.Copy”).setInput(document_to_copy).set(“target”, path_to_copy_at).execute();

0 votes