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.6 createItem<br />

Description: Creates an item object of the specified type.<br />

2.2.4.6.1 Inputs<br />

Required:<br />

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

• Property properties:<br />

item object.<br />

Optional:<br />

The property values that MUST be applied to the newly-created<br />

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

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

"unfiling" capability.<br />

• Id policies: A list of policy ids that MUST be applied to the newly-created item object.<br />

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

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 item<br />

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

2.2.4.6.2 Outputs<br />

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

2.2.4.6.3 Exceptions Thrown & Conditions<br />

• See section 2.2.1.4.1 General Exceptions.<br />

• constraint If the cmis:objectTypeId property value is not an object-type whose base type is<br />

cmis:item.<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 />

• 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 controllablePolicy attribute of the object-type definition specified by the<br />

cmis:objectTypeId property value is set to FALSE and at least one policy is provided.<br />

• constraint If the controllableACL attribute of the object-type definition specified by the<br />

cmis:objectTypeId property value is set to FALSE and at least one ACE is provided.<br />

• constraint If at least one of the specified values for permission in ANY of the ACEs does not match<br />

ANY of the permission names returned by the ACL Capabilities in the Repository Info (see section<br />

2.<strong>1.1</strong>2.3.1 Supported Permissions) and is not a <strong>CMIS</strong> basic permission.<br />

• nameConstraintViolation If the repository detects a violation with the given cmis:name property<br />

value, the repository MAY throw this exception or chose a name which does not conflict.<br />

• storage See section 2.2.1.4.2 Specific Exceptions.<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 161 of 331

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

Saved successfully!

Ooh no, something went wrong!