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.2 createDocumentFromSource<br />

Description: Creates a document object as a copy of the given source document in the (optionally) specified<br />

location.<br />

2.2.4.2.1 Inputs<br />

Required:<br />

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

• Id sourceId: The identifier for the source document.<br />

Optional:<br />

• Property properties: The property values that MUST be applied to the object. This list<br />

of properties SHOULD only contain properties whose values differ from the source document.<br />

• Id folderId: If specified, the identifier for the folder that MUST be the parent folder for the newlycreated<br />

document object. This parameter MUST be specified if the repository does NOT support the<br />

optional "unfiling" capability.<br />

• Enum versioningState: An enumeration specifying what the versioning state of the newlycreated<br />

object MUST be. Valid values are:<br />

none (default, if the object-type is not versionable) The document MUST be created as a non-versionable<br />

document.<br />

checkedout The document MUST be created in the checked-out state. The checked-out document<br />

MAY be visible to other users.<br />

major (default, if the object-type is versionable) The document MUST be created as a major version.<br />

minor The document MUST be created as a minor version.<br />

• Id policies:<br />

object.<br />

A list of policy ids that MUST be applied to the newly-created document<br />

• ACE addACEs: A list of ACEs that MUST be added to the newly-created document object,<br />

either using the ACL from folderId if specified, or being applied if no folderId is specified.<br />

• ACE removeACEs: A list of ACEs that MUST be removed from the newly-created document<br />

object, either using the ACL from folderId if specified, or being ignored if no folderId is specified.<br />

2.2.4.2.2 Outputs<br />

• Id objectId: The id of the newly-created document.<br />

2.2.4.2.3 Exceptions Thrown & Conditions<br />

• See section 2.2.1.4.1 General Exceptions.<br />

• constraint If the sourceId is not an object whose baseType is cmis:document.<br />

• constraint If the cmis:objectTypeId property value is NOT in the list of AllowedChildObjectTypeIds<br />

of the parent-folder specified by folderId.<br />

• constraint If the value of any of the properties violates the constraints (min/max/required/length<br />

etc.) specified in the property definition in the object-type.<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 156 of 331

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

Saved successfully!

Ooh no, something went wrong!