Opened 5 years ago

Closed 5 years ago

#923 closed improvement (fixed)

Ability to update document properties via CMIS during checkin

Reported by: Blucecio 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 Changed 5 years ago by car031

  • Resolution set to fixed
  • Status changed from new to closed

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.