Opened 7 years ago

Closed 7 years ago

#923 closed improvement (fixed)

Ability to update document properties via CMIS during checkin

Reported by: Alex Owned by:
Priority: minor Milestone: 8.2.1
Component: CMIS Version: 8.2
Keywords: Cc:

Description

Perform a document update that changes both the properties and the content with only one version increment.
At least the method should allow to change a basic property like filename

See ticket 5114
https://logicaldoc.freshdesk.com/a/tickets/5114

Change History (1)

comment:1 by car031, 7 years ago

Resolution: fixed
Status: newclosed

Now you can use a 0.10.0 client and fill the properties map:

Document pwc = (Document) object;
ObjectId oid = pwc.checkOut();

FileInputStream fis = new FileInputStream(myFile);
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("cmis:name","test-doc.txt");
pwc.checkIn(false, properties, contentStream, "minor version");

Note: See TracTickets for help on using tickets.