07-03-2014 08:43 AM
DocumentImpl.copy()
I get the below exception,org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: createDocumentFromSource is not supported by the AtomPub binding!
Cannot close source stream!
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Internal Server Error
07-03-2014 10:25 AM
copy(ObjectId targetFolderId, Map<String, ?> properties, VersioningState versioningState,
List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs, OperationContext context);
07-07-2014 03:40 AM
public void copyDocument(String alfrescoId) {
Folder destinationFolder = (Folder) session.getObjectByPath("/Test1");
Document document = (Document) session.getObject(alfrescoId);
Map<String, Object> documentProperties = new HashMap<String, Object>(1);
documentProperties.put(PropertyIds.NAME, document.getName());
document.copy(destinationFolder, documentProperties, null, null, null, null, null);
}
07-07-2014 03:54 AM
Document document = (Document)session.getObjectByPath( "/TESTFOLDER1/20130822.doc") ;
Folder root = session.getRootFolder();
ObjectId rootid = session.createObjectId(root.getId());
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document,P:cm:titled,P:cm:author");
document.copy(rootid, properties, VersioningState.MAJOR, null, null, null, null);
09-18-2015 12:36 AM
10-11-2015 06:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.