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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.2.4.18 set<strong>Content</strong>Stream<br />

Description: Sets the content stream for the specified document object.<br />

Notes: A repository MAY automatically create new document versions as part of this service operations .<br />

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

2.2.4.18.1 Inputs<br />

Required:<br />

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

• Id objectId: The identifier for the document object.<br />

• <strong>Content</strong>Stream contentStream: The content stream.<br />

Optional:<br />

• Boolean overwriteFlag: If TRUE (default), then the repository MUST replace the existing content<br />

stream for the object (if any) with the input contentStream.<br />

If FALSE, then the repository MUST only set the input contentStream for the object if the object currently<br />

does not have a content stream.<br />

• String changeToken: See section 2.2.1.3 Change Tokens.<br />

2.2.4.18.2 Outputs<br />

• Id objectId: The identifier for the object.<br />

• String changeToken: See section 2.2.1.3 Change Tokens.<br />

2.2.4.18.3 Exceptions Thrown & Conditions<br />

• See section 2.2.1.4.1 General Exceptions.<br />

• contentAlreadyExists If the input parameter overwriteFlag is FALSE and the object already has<br />

a content stream.<br />

• storage See section 2.2.1.4.2 Specific Exceptions.<br />

• streamNotSupported See section 2.2.1.4.2 Specific Exceptions.<br />

• updateConflict See section 2.2.1.4.2 Specific Exceptions.<br />

• versioning The repository MAY throw this exception if the object is a non-current document version.<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 173 of 331

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

Saved successfully!

Ooh no, something went wrong!