18.01.2015 Views

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.2.4.14 bulkUpdateProperties<br />

Description: Updates properties and secondary types of one or more objects.<br />

Notes:<br />

• A repository MAY automatically create new document versions as part of an update properties operation.<br />

Therefore, the objectId output NEED NOT be identical to the objectId input.<br />

• Only properties whose values are different than the original value of the object SHOULD be provided.<br />

• This service is not atomic. If the update fails, some objects might have been updated and others might<br />

not have been updated.<br />

• This service MUST NOT throw an exception if the update of an object fails. If an update fails, the<br />

object id of this particular object MUST be omitted from the result.<br />

2.2.4.14.1 Inputs<br />

Required:<br />

• Id repositoryId: The identifier for the repository.<br />

• objectIdAndChangeToken: The identifiers of the objects to be updated and<br />

their change tokens. Invalid object ids, for example ids of objects that don't exist, MUST be ignored.<br />

Optional:<br />

Change tokens are optional. See section 2.2.1.3 Change Tokens.<br />

The updated property values that MUST be applied to the ob-<br />

• Properties properties:<br />

jects.<br />

• Id addSecondaryTypeIds:<br />

objects.<br />

A list of secondary type ids that SHOULD be added to the<br />

• Id removeSecondaryTypeIds: A list of secondary type ids that SHOULD be removed from<br />

the objects. Secondary type ids in this list that are not attached to an object SHOULD be ignored.<br />

2.2.4.14.2 Outputs<br />

• objectIdAndChangeToken:<br />

of:<br />

A triple for each updated object composed<br />

1. The original object id. MUST always be set.<br />

2. The new object id if the update triggered a new version. MUST NOT be set if no new version has<br />

been created.<br />

3. The new change token of the object. MUST be set if the repository supports change tokens.<br />

Objects that have not been updated MUST NOT be returned. This service does not disclose why<br />

updates failed. Clients may call updateProperties for each failed object to retrieve individual exceptions.<br />

2.2.4.14.3 Exceptions Thrown & Conditions<br />

• See section 2.2.1.4.1 General Exceptions.<br />

• invalidArgument If the input list of object ids is empty.<br />

• invalidArgument If secondary type ids are provided that don't exist in the repository.<br />

• constraint If the number of objects is too high for the repository.<br />

<strong>CMIS</strong>-v<strong>1.1</strong>-csprd01<br />

Standards Track Work Product<br />

Copyright © OASIS Open 2012. All Rights Reserved.<br />

18 August 2012<br />

Page 169 of 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!