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.5 createPolicy<br />

Description: Creates a policy object of the specified type.<br />

2.2.4.5.1 Inputs<br />

Required:<br />

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

• Property properties:<br />

policy 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 />

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

optional "unfiling" capability.<br />

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

• ACE addACEs: A list of ACEs that MUST be added to the newly-created policy 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 policy<br />

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

2.2.4.5.2 Outputs<br />

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

2.2.4.5.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:policy.<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 160 of 331

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

Saved successfully!

Ooh no, something went wrong!