![]() | ![]() |
The CMIS interface is designed to be layered on top of existing Content Management systems and their existing programmatic interfaces. It is not intended to prescribe how specific features should be implemented within those CM systems, nor to exhaustively expose all of the CM system’s capabilities through the CMIS interfaces. Rather, it is intended to define a generic/universal set of capabilities provided by a CM system and a set of services for working with those capabilities.
Technical Committee members should send comments on this specification to the Technical Committee’s email list. Others should send comments to the Technical Committee by using the "Send A Comment" button on the Technical Committee’s web page at http://www.oasis-open.org/committees/cmis/.
For information on whether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the Technical Committee web page (http://www.oasis-open.org/committees/cmis/ipr.php).
[CMIS-v1.1]
Content Management Interoperability Services (CMIS) Version 1.1. 23 May
2013.
OASIS Standard. http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.html.
Copyright © OASIS Open 2013. All Rights Reserved.
All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English.
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
OASIS requests that any OASIS Party or any other party that believes it has patent claims that would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification.
OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may include such claims on its website, but disclaims any obligation to do so.
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS’ procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights will at any time be complete, or that any claims in such list are, in fact, Essential Claims.
The name "OASIS" is a trademark of OASIS, the owner and developer of this
specification, and should be used only to refer to the organization and its official
outputs. OASIS welcomes reference to, and implementation and use of, specifications,
while reserving the right to enforce its marks against misleading uses. Please see
http://www.oasis-open.org/policies-guidelines/trademark for above guidance.
__________________________________________________________________
The CMIS interface is designed to be layered on top of existing Content Management systems and their existing programmatic interfaces. It is not intended to prescribe how specific features should be implemented within those CM systems, nor to exhaustively expose all of the CM system’s capabilities through the CMIS interfaces. Rather, it is intended to define a generic/universal set of capabilities provided by a CM system and a set of services for working with those capabilities.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
[RFC1867] |
E. Nebel, L. Masinter, Form-based File Upload in HTML, |
[RFC2045] |
N. Freed, N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part One:
Format of Internet Message Bodies, |
[RFC2046] |
N. Freed, N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part Two:
Media Types, |
[RFC2119] |
S. Bradner, Key words for use in RFCs to Indicate Requirement Levels, |
[RFC2388] |
L. Masinter, Returning Values from Forms: multipart/form-data |
[RFC2616] |
R. Fielding, J. Gettys, J. Mogul, H. Frystyk, L. Masinter, P. Leach, T. Berners-Lee,
Hypertext Transfer Protocol – HTTP/1.1, |
[RFC2617] |
J. Franks, P. Hallam-Baker, J. Hostetler, S. Lawrence, P. Leach, A. Luotonen, L.
Stewart, HTTP Authentication: Basic and Digest Access Authentication, |
[RFC2818] |
Rescorla, E., HTTP Over TLS, |
[RFC3023] |
M. Murata, S. St.Laurent, D. Kohn, XML Media Types, |
[RFC3986] |
T. Berners-Lee, R. Fielding, L. Masinter, Unified Resource Identifier, |
[RFC4287] |
M. Nottingham, R. Sayre, Atom Syndication Format, |
[RFC4288] |
N. Freed, J. Klensin, Media Type Specifications and Registration Procedures, |
[RFC4627] |
D. Crockford, The application/json Media Type for JavaScript Object Notation
(JSON), |
[RFC4918] |
L. Dusseault, HTTP Extensions for Web Distributed Authoring and Versioning
(WebDAV), |
[RFC5023] |
J. Gregorio, B. de hOra, Atom Publishing Protocol, |
[RFC6234] |
D. Eastlake 3rd, T. Hansen, US Secure Hash Algorithms (SHA and SHA-based
HMAC and HKDF), |
[RFC6266] |
J. Reschke, Use of the Content-Disposition Header Field in the Hypertext Transfer
Protocol (HTTP), |
[XMLSchema] |
W3C, XML Schema Part 2: Datatypes Second Edition, |
[SameOriginPolicy] |
W3C, Same Origin Policy, |
[ID-Brown] |
J. Reschke Editor, A. Brown, G. Clemm, Link Relation Types for Simple Version
Navigation between Web Resources, |
[ID-WebLinking] |
M. Nottingham, Web Linking, |
A set of request and response examples is attached to this specification document. These examples are non-normative and their sole purpose is to illustrate the data structures and bindings that are defined in this specification.
Boxes like the following point to appropriate example files throughout this document. There is usually a request file describing the request sent from a CMIS client to a CMIS repository and a matching response file that contains the content returned from the CMIS repository.
This section provides a very brief description of each major new CMIS 1.1 feature along with links to the sections of this document for complete descriptions.
Defines the services and protocol binding extensions that allow CMIS clients to create, modify and delete Type Definitions and Property Definitions for a given repository.
Please see section 2.1.10 Object-Type Creation, Modification and Deletion for a detailed discussion of this feature.
Defines additional schema for the getRepositoryInfo service that allows CMIS clients to discover any extensions or additional CMIS based standards supported on each repository.
Please see section 2.1.1.3 Repository Features for a detailed discussion of this feature.
Defines named sets of properties that can be dynamically added and removed from CMIS objects.
Please see section 2.1.9 Secondary Object-Types for a detailed discussion of this feature.
Defines secondary types for formally representing Retentions and Holds on CMIS objects. These in turn can be used by the repository to protect objects from being deleted or modified. A Retention describes a period of time that a document must not be deleted, while a Hold marks the document as protected as long as the Hold is applied.
Please see section 2.1.16 Retentions and Holds for a detailed discussion of these features.
A new optional binding specifically designed to support applications running in a web browser or other client without the need for any additional client libraries. Notable among the differences in this binding are the use of JSON (Java Script Object Notation, [RFC4627]) instead of XML and the exclusive use of HTTP GET and POST for all operations.
Please see section 5 Browser Binding for a detailed discussion of this feature.
A new top level data model type that is an extension point for repositories that need to expose any other object types via CMIS that do not fit the model’s definition for document, folder, relationship or policy.
Please see section 2.1.8 Item Object for a detailed discussion of this feature.
A method for supporting bulk property updates on a set of objects within a single service call.
Please see section 2.2.4.14 bulkUpdateProperties for a detailed discussion of this feature.
Support for appending to a content stream. Enables clients to break very large uploads of document content into numerous smaller calls.
Please see section 2.2.4.19 appendContentStream for a detailed discussion of this feature.
CMIS provides an interface for an application to access a repository. To do so, CMIS specifies a core data model that defines the persistent information entities that are managed by the repository, and specifies a set of basic services that an application can use to access and manipulate these entities. In accordance with the CMIS objectives, this data model does not cover all the concepts that a full-function ECM repository typically supports. Specifically, transient entities (such as programming interface objects), administrative entities (such as user profiles), and extended concepts (such as compound or virtual document, work flow and business process, event and subscription) are not included.
However, when an application connects to a CMIS service endpoint, the same endpoint MAY provide access to more than one CMIS repository. (How an application obtains a CMIS service endpoint is outside the scope of CMIS. How the application connects to the endpoint is a part of the protocol that the application uses.) An application MUST use the CMIS getRepositories service to obtain a list of repositories that are available at that endpoint. The repository id MUST uniquely identify an available repository at this service endpoint. Both the repository name and the repository id are opaque to CMIS. Aside from the getRepositories service, all other CMIS services are single-repository-scoped, and require a repository id as an input parameter. In other words, except for the getRepositories service, multi-repository and inter-repository operations are not supported by CMIS.
The repository itself is described by the CMIS "Get Repository Information" service. The service output is fully described in section 2.2.2.2 getRepositoryInfo.
Commercial ECM repositories vary in their designs. Moreover, some repositories are designed for a specific application domain and may not provide certain capabilities that are not needed for their targeted domain. Thus, a repository implementation may not necessarily be able to support all CMIS capabilities. A few CMIS capabilities are therefore "optional" for a repository to be compliant. A repository’s support for each of these optional capabilities is discoverable using the getRepositoryInfo service. The following is the list of these optional capabilities. All capabilities are "boolean" (i.e. the repository either supports the capability entirely or not at all) unless otherwise noted.
See section 2.2.1.2.7 Object Order.
See section 2.1.4.1 Content Stream.
See section 2.1.15 Change Log.
See section 2.1.4.2 Renditions.
The repository MUST set the object-type attributes that cannot be set by
a client or are not set by a client.
See section 2.1.10 Object-Type Creation, Modification and Deletion.
See section 2.1.12 Access Control.
The getRepositoryInfo service MUST also return implementation information including vendor name, product name, product version, version of CMIS that it supports, the root folder id (see section 2.1.5.2 Folder Hierarchy), and MAY include other implementation-specific information. The version of CMIS that the repository supports MUST be expressed as a String that matches the specification version. For this version it is the string "1.1".
Repositories MAY provide information about additional features that are supported by the repository but that are outside the CMIS specification. This information is returned by the getRepositoryInfo service.
Clients that don’t understand this information SHOULD ignore it.
The repository MUST provide a unique id for each feature. This id SHOULD take the form of a URI (see [RFC3986]). The repository MAY also provide a version label as well as a human-readable common name and description for each feature.
Furthermore, each feature MAY supply an arbitrary number of key-value pairs. The semantics and rules for these key-value pairs are not defined by CMIS but MAY be constrained by other specifications.
The entities managed by CMIS are modeled as typed objects. There are five primary base types of objects: document objects, folder objects, relationship objects, policy objects, and item objects.
Additional object-types MAY be defined in a repository as subtypes of these base types. CMIS services are provided for the discovery of object-types that are defined in a repository. Furthermore, object-type management services are provided to create, modify and delete object-types if that is supported by the repository.
Every CMIS object has an opaque and immutable object id, which is assigned by the repository when the object is created. An id uniquely identifies an object within a repository regardless of the type of the object. Repositories SHOULD assign ids that are "permanent" – that is, they remain unchanged during the lifespan of the identified objects, and they are never reused or reassigned after the objects are deleted from the repository.
Every CMIS object has a set of named, but not explicitly ordered, properties. (However, a repository SHOULD always return object properties in a consistent order.) Within an object, each property is uniquely identified by its property definition id. The object properties are defined by the object-type.
An object must have one and only one primary object-type, which cannot be changed. An object’s primary object-type may be simply called its object-type. The primary object-type of an object classifies the object and defines the properties that the object must have.
An object MAY have zero or more secondary object types applied to it. A secondary type is a named marking that may add extra properties to an object in addition to the properties defined by the object’s primary type. That is, applying a secondary type to an object adds the properties defined by this type to the object. Removing a secondary type removes the properties. Secondary object-types can only be defined as subtypes or descendant types of the cmis:secondary base type. All other base object types and their descendant types are primary object-types.
Consequently, each instance of a primary object-type corresponds to a distinct object, whereas each instance of a secondary object type does not. Therefore, the "creatable", "fileable", "controllablePolicy", and "controllableACL" object type attributes are not applicable to a secondary object type and must be set to FALSE.
The support for secondary types is optional, and may be discovered via the getTypeChildren service. See section 2.1.9 Secondary Object-Types.
In addition, a document object MAY have a content stream, which may be used to hold a raw digital asset such as an image or a word-processing document. A repository MUST specify, in each object-type definition, whether document objects of that type MAY, MUST, or MUST NOT have a content stream. A document MAY also have one or more renditions associated with it. A rendition can be a thumbnail or an alternate representation of the content stream.
Objects MAY have one Access Control List (ACL), which controls access to the object. A set of policy objects may also control access to the object. An ACL represents a list of Access Control Entries (ACEs). An ACE in turn represents one or more permissions being granted to a principal (a user, group, role, or something similar).
The notion of localization of the objects in the data model is entirely repository specific.
CMIS objects MAY expose additional information, such as vendor-specific workflow data, beyond the attributes described above. In this respect, the data model can be extended as desired. This specification does not standardize such extensions.
A property MAY hold zero, one, or more typed data value(s). Each property MAY be single-valued or multi-valued. A single-valued property contains a single data value, whereas a multi-valued property contains an ordered list of data values of the same type. The ordering of values in a multi-valued property SHOULD be preserved by the repository.
A property, either single-valued or multi-valued, MAY be in a "not set" state. CMIS does not support "null" property value. If a multi-valued property is not in a "not set" state, its property value MUST be a non-empty list of individual values. Each individual value in the list MUST NOT be in a "not set" state and MUST conform to the property’s property-type.
A multi-valued property is either set or not set in its entirety. An individual value of a multi-valued property MUST NOT be in an individual "value not set" state and hold a position in the list of values. An empty list of values MUST NOT be allowed.
Every property is typed. The property-type defines the data type of the data value(s) held by the property. CMIS specifies the following property-types. They include the following data types defined by "XML Schema Part 2: Datatypes Second Edition" (see [XMLSchema]):
In addition, the following property-types are also specified by CMIS:
Individual protocol bindings MAY override or re-specify these property-types.
For single valued String, Id and HTML properties, a repository MAY support the distinction between a set value with an empty string (length = 0), and a "not set" value. In this case an empty value element (e.g. <cmis:value/>) inside of a property element will indicate a "set but empty" string property. A property element without a <cmis:value/> will indicate a property in a "not set" state. For repositories that do not support this distinction the latter example (absence of the <cmis:value> element) should be used for all cases.
While all CMIS identities share the same property-type, they do not necessarily share the same address space. Unless explicitly specified, id properties NEED NOT maintain a referential integrity constraint. Therefore, storing the id of one object in another object NEED NOT constrain the behavior of either object. A repository MAY, however, support referential constraint underneath CMIS if the effect on CMIS services remains consistent with an allowable behavior of the CMIS model. For example, a repository MAY return a constraint exception when a CMIS service call violates an underlying referential constraint maintained by the repository. In that case, an error message SHOULD be returned to the application to describe the cause of the exception and suggest a remedial action. The content of such messages is outside the scope of CMIS.
An object-type defines a fixed and non-hierarchical set of properties ("schema") that all objects of that type have. This schema is used by a repository to validate objects and enforce constraints, and is also used by a user to compose object-type-based (structured) queries.
All CMIS objects are strongly typed. If a property not specified in an object’s object-type definition is supplied by an application, an exception SHOULD be thrown.
Each object-type is uniquely identified within a repository by a system-assigned and immutable object-type identifier, which is of type Id.
A CMIS repository MUST expose exactly one collection of object-types via the "repository" services (getTypeChildren, getTypeDescendants, getTypeDefinition).
While a repository MAY define additional object-types beyond the CMIS base object-types, these object-types MUST NOT extend or alter the behavior or semantics of a CMIS service (for example, by adding new services). A repository MAY attach additional constraints to an object-type underneath CMIS, provided that the effect visible through the CMIS interface is consistent with the allowable behavior of CMIS.
Hierarchy and Inheritance for object-types are supported by CMIS in the following manner:
This opaque attribute identifies this object-type in the repository. | |
This attribute represents the underlying repository’s name for the object-type. This field is opaque and has no uniqueness constraint imposed by this specification. | |
This attribute allows repositories to represent the internal namespace of the underlying repository’s name for the object-type. | |
Used for query and filter operations on object-types. This is an opaque string with limitations. See 2.1.2.1.3 Query Names for details. | |
Used for presentation by application. | |
A value that indicates whether the base type for this object-type is the document, folder, relationship, policy, item, or secondary base type. | |
The id of the object-type’s immediate parent type. It MUST be "not set" for a base type. Depending on the binding this means it might not exist on the base type object-type definition. | |
Description of this object-type, such as the nature of content, or its intended use. Used for presentation by application. | |
Indicates whether new objects of this type MAY be created. If the value of this attribute is FALSE, the repository MAY contain objects of this type already, but MUST NOT allow new objects of this type to be created. | |
Indicates whether or not objects of this type are file-able. | |
Indicates whether or not this object-type can appear in the FROM clause of a query statement. A non-queryable object-type is not visible through the relational view that is used for query, and CAN NOT appear in the FROM clause of a query statement. | |
Indicates whether or not objects of this type are controllable via policies. Policy objects can only be applied to controllablePolicy objects. | |
This attribute indicates whether or not objects of this type are controllable by ACL’s. Only objects that are controllableACL can have an ACL. | |
Indicates whether objects of this type are indexed for full-text search for querying via the CONTAINS() query predicate. If the value of this attribute is TRUE, the full-text index MUST cover the content and MAY cover the metadata. | |
Indicates whether this type and its subtypes appear in a query of this type’s ancestor types. For example: if Invoice is a sub-type of cmis:document, if this is TRUE on Invoice then for a query on cmis:document, instances of Invoice will be returned if they match. If this attribute is FALSE, no instances of Invoice will be returned even if they match the query. | |
Indicates whether new child types may be created with this type as the parent. | |
Indicates whether clients may make changes to this type per the constraints defined in this specification. | |
Indicates whether clients may delete this type if there are no instances of it in the repository. | |
Besides these object-type attributes, an object-type definition SHOULD contain inherited property definitions and zero or more additional property definitions. All the properties of an object, including inherited properties, MUST be retrievable through the "get" services, and MAY appear in the SELECT clause of a query.
This opaque attribute uniquely identifies the property in the repository. If two object-types each contain property definitions with the same id, the basic property definitions (property type, query name, cardinality) MUST be the same. Other attributes MAY be different for each type. | |
This attribute represents the underlying repository’s name for the property. This field is opaque and has no uniqueness constraint imposed by this specification. | |
This attribute allows repositories to represent the internal namespace of the underlying repository’s name for the property. | |
Used for query operations on properties. This is an opaque string with limitations. See 2.1.2.1.3 Query Names for details. | |
Used for presentation by application. | |
This is an optional attribute containing a description of the property. | |
This attribute indicates the type of this property. It MUST be one of the allowed property types. (See section 2.1.2.1 Property.) | |
Indicates whether the property can have "zero or
one" or "zero or more" values. Values:
Repositories SHOULD preserve the ordering of values in a multi-valued property. That is, the order in which the values of a multi-valued property are returned in "get" services operations SHOULD be the same as the order in which they were supplied during previous create/update operation. |
|
Indicates under what circumstances the value of
this property MAY be updated. Values:
|
|
Indicates whether the property definition is inherited from the parent type when TRUE or it is explicitly defined for this object-type when FALSE. | |
This attribute is only applicable to non-system
properties, i.e. properties whose value is
provided by the application.
If TRUE, then the value of this property MUST never be set to the "not set" state when an object of this type is created/updated. If not provided during a create or update operation, the repository MUST provide a value for this property. If a value is not provided, then the default value defined for the property MUST be set. If no default value is provided and no default value is defined, the repository MUST throw a constraint exception. This attribute is not applicable when the "updatability" attribute is "readonly". In that case, "required" SHOULD be set to FALSE. Note: For CMIS-defined object-types, the value of a system property (such as cmis:objectId, cmis:createdBy) MUST be set by the repository. However, the property’s "required" attribute SHOULD be FALSE because it is read-only to applications. |
|
Indicates whether or not the property MAY
appear in the WHERE clause of a CMIS query
statement.
This attribute MUST have a value of FALSE if the object-type’s attribute for "queryable" is set to FALSE. |
|
Indicates whether the property can appear
in the ORDER BY clause of a CMIS query
statement or an orderBy parameter of
getChildren or getCheckedOutDocs.
This property MUST be FALSE for any property whose cardinality is "multi". |
|
Indicates an explicit ordered set of single
values allowed for this property.
If the cardinatity of the property definition is "single" and the "openChoice" attribute is FALSE, then the property value MUST be at most one of the values listed in this attribute. If the cardinatity of the property definition is "single" and the "openChoice" attribute is TRUE, then the property value MAY be one of the values listed in this attribute. If the cardinatity of the property definition is "multi" and the "openChoice" attribute is FALSE, then the property value MUST be zero, one or more than one of the values listed in this attribute. If the cardinatity of the property definition is "multi" and the "openChoice" attribute is TRUE, then the property value MAY be zero, one, or more than one of the values listed in this attribute. If this attribute is "not set", then any valid value for this property based on its type may be used. Each choice includes a displayName and a value. The displayName is used for presentation purpose. The value will be stored in the property when selected. Choices MAY be hierarchically presented. For example: a value of "choices" for a geographic location would be represented as follows:
|
|
This attribute is only applicable to properties
that provide a value for the "Choices"
attribute.
If FALSE, then the data value for the property MUST only be one of the values specified in the "Choices" attribute. If TRUE, then values other than those included in the "Choices" attribute may be set for the property. |
|
The value that the repository MUST set for
the property if a value is not provided by an
application when the object is created.
If no default value is specified and an application creates an object of this type without setting a value for the property, the repository MUST attempt to store a "not set" property value. If this occurs for a property that is defined to be required, then the creation attempt MUST throw an exception. The attributes on the default value element are the same as the attributes on the property definition. |
|
The minimum value allowed for this property.
If an application tries to set the value of this property to a value lower than minValue, the repository MUST throw a constraint exception. |
|
The maximum value allowed for this property.
If an application tries to set the value of this property to a value higher than maxValue, the repository MUST throw a constraint exception. |
|
This is the resolution supported for values of
this property. Valid values for this attribute
are:
|
|
This is the precision in bits supported for values
of this property. Valid values for this attribute
are:
|
|
The minimum value allowed for this property.
If an application tries to set the value of this property to a value lower than minValue, the repository MUST throw a constraint exception. |
|
The maximum value allowed for this property.
If an application tries to set the value of this property to a value higher than maxValue, the repository MUST throw a constraint exception. |
|
The maximum length (in characters) allowed
for a value of this property.
If an application attempts to set the value of this property to a string longer than the specified maximum length, the repository MUST throw a constraint exception. |
|
Document objects are the elementary information entities managed by the repository.
Depending on its object-type definition, a document object may be:
Additionally, whether a document object MUST, MAY or MUST NOT have a content stream is specified in its object-type definition. A document object MAY be associated with zero or more renditions.
Note: When a document is versioned, each version of the document is a separate document object. Thus, for document objects, an object id actually identifies a specific version of a document.
A content stream is a binary stream. Its maximum length is repository specific. Each content stream has a MIME Media Type, as defined by [RFC2045] and [RFC2046]. A content stream’s attributes are represented as properties of the content stream’s containing document object. There is no MIME type specific attribute or name directly associated with the content stream outside of the document object.
CMIS provides basic CRUD1 services for content stream, using the id of a content stream’s containing document object for identification. A content stream also has a contentStreamId which is used for access to the stream. The setContentStream service either creates a new content stream for a document object or replaces an existing content stream. The appendContentStream service either creates a new content stream or appends content to an existing content stream. The getContentStream service retrieves a content stream. The deleteContentStream service deletes a content stream from a document object. In addition, the createDocument and checkIn services MAY also take a content stream as an optional input. A content stream MUST be specified if required by the object-type definition. These are the only services that operate on content stream. The getObject and query services, for example, do not return a content stream.
setContentStream, appendContentStream and deleteContentStream services are considered modifications to a content stream’s containing document object, and SHOULD therefore change the object’s last modification date property upon successful completion.
The ability to set or delete a content stream is controlled by the capabilityContentStreamUpdatability capability.
Some ECM repositories provide a facility to retrieve alternative representations of a document. These alternative representations are known as renditions. This could apply to a preview case which would enable the client to preview the content of a document without needing to download the full content. Previews are generally reduced fidelity representations such as thumbnails. Renditions can take on any general form, such as a PDF version of a word processing document.
A CMIS repository MAY expose zero or more renditions for a document or folder in addition to a document’s content stream. CMIS provides no capability to create or update renditions accessed through the rendition services. Renditions are specific to the version of the document or folder and may differ between document versions. Each rendition consists of a set of rendition attributes and a rendition stream. Rendition attributes are not object properties, and are not queryable. They can be retrieved using the getRenditions service. A rendition stream can be retrieved using the getContentStream service with the rendition’s streamId parameter.
Identifies the rendition stream. | |
The MIME type of the rendition stream. | |
The length of the rendition stream in bytes. | |
Human readable information about the rendition. | |
A categorization String associated with the rendition. See section 2.1.4.2.2 Rendition Kind. | |
Typically used for ’image’ renditions
(expressed as pixels). SHOULD be present if kind = cmis:thumbnail. |
|
Typically used for ’image’ renditions
(expressed as pixels). SHOULD be present if kind = cmis:thumbnail. |
|
If specified, then the rendition can also be accessed as a document object in the CMIS services. If not set, then the rendition can only be accessed via the rendition services. Referential integrity of this id is repository specific. | |
CMIS defines the following kind:
This section describes the definition of the document object-type’s attribute values and property definitions which must be present on document instance objects. All attributes and property definitions are listed by their id.
Indicates whether or not objects of this type are version-able. (See section 2.1.13 Versioning.) If this attribute is set to TRUE, then documents of this type MUST be versionable. If this attribute is set to FALSE, then documents of this type MUST NOT be versionable. | |
A value that indicates whether a content stream
MAY, MUST, or MUST NOT be included in
objects of this type. Values:
|
|
Notes:
id
Value: cmis:document
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:document
displayName
Value: <repository-specific>
baseId
Value: cmis:document
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: <repository-specific>
fileable
Value: SHOULD be TRUE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: <repository-specific>
controllableACL
Value: <repository-specific>
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
versionable
Value: <repository-specific>
contentStreamAllowed
Value: <repository-specific>
cmis:name | Name of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | TRUE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite or whencheckedout | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | SHOULD be TRUE | |
cmis:description | Description of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite or whencheckedout | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
repository
doesn’t
support
object
descriptions,
the
Updatability
SHOULD
be
readonly
and
the
repository
SHOULD
return
a
"not
set"
value
for
this
property. | ||
cmis:objectId | Id of the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:baseTypeId | Id of the base object-type for the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:objectTypeId | Id of the object’s type. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:secondaryObjectTypeIds | Ids of the object’s secondary types. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readwrite if secondary types are supported, readonly otherwise |
|
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
If
the
repository
does
not
support
secondary
types,
the
repository
MUST
return
"not
set". | ||
cmis:createdBy | User who created the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:creationDate | DateTime when the object was created. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModifiedBy | User who last modified the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModificationDate | DateTime when the object was last modified. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:changeToken | Opaque token used for optimistic locking and concurrency checking. (See section 2.2.1.3 Change Tokens.) | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. If
the
repository
does
not
support
change
tokens,
this
property
SHOULD
not
be
set. | ||
cmis:isImmutable | Defines if the object can be modified. If TRUE the repository MUST throw an error at any attempt to update or delete the object. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:isLatestVersion | See section 2.1.13 Versioning. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:isMajorVersion | See section 2.1.13 Versioning. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:isLatestMajorVersion | See section 2.1.13 Versioning. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:isPrivateWorkingCopy | See section 2.1.13 Versioning. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:versionLabel | See section 2.1.13 Versioning. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:versionSeriesId | See section 2.1.13 Versioning. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:isVersionSeriesCheckedOut | See section 2.1.13 Versioning. | |
Property Type: | Boolean | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:versionSeriesCheckedOutBy | See section 2.1.13 Versioning. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
SHOULD
return
this
property
with
a
non-empty
value
if
the
document
is
checked
out
and
the
property
filter
does
not
exclude
it.
The
repository
MUST
return
"not
set"
if
the
document
is
not
checked
out.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:versionSeriesCheckedOutId | See section 2.1.13 Versioning. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
SHOULD
return
this
property
with
a
non-empty
value
if
the
document
is
checked
out,
the
PWC
is
visible
to
the
current
user
and
the
property
filter
does
not
exclude
it. If
the
PWC
is
not
visible
to
the
current
user,
the
repository
SHOULD
return
"not
set".
The
repository
MUST
return
"not
set"
if
the
document
is
not
checked
out.
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:checkinComment | See section 2.1.13 Versioning. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
Version
property
values
are
repository-specific
when
a
document
is
defined
as
non-versionable. | ||
cmis:contentStreamLength | Length of the content stream (in bytes). See also section 2.1.4.1 Content Stream. |
|
Property Type: | Integer | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
document
has
a
content
stream
and
the
property
filter
does
not
exclude
it. If
the
document
has
no
content
stream,
the
repository
MUST
return
"not
set". | ||
cmis:contentStreamMimeType | MIME type of the content stream. See also section 2.1.4.1 Content Stream. |
|
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
document
has
a
content
stream
and
the
property
filter
does
not
exclude
it. If
the
document
has
no
content
stream,
the
repository
MUST
return
"not
set". | ||
cmis:contentStreamFileName | File name of the content stream. See also section 2.1.4.1 Content Stream. |
|
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
document
has
a
content
stream
and
the
property
filter
does
not
exclude
it. If
the
document
has
no
content
stream,
the
repository
MUST
return
"not
set". | ||
cmis:contentStreamId | Id of the content stream. See also section 2.1.4.1 Content Stream. |
|
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
document
has
no
content
stream,
the
repository
MUST
return
"not
set". | ||
A folder object serves as the anchor for a collection of file-able objects. The folder object has an implicit hierarchical relationship with each object in its collection, with the anchor folder object being the parent object and each object in the collection being a child object. This implicit relationship has specific containment semantics which MUST be maintained by the repository with implicit referential integrity. (That is, there will never be a dangling parent-relationship or a dangling child-relationship. Furthermore, object A is a parent of object B if and only if object B is a child of object A.) This system-maintained implicit relationship is distinct from an explicit relationship which is instantiated by an application-maintained relationship object. (See section 2.1.6 Relationship Object.)
A folder object does not have a content-stream and is not version-able. A folder object MAY be associated with zero or more renditions (see section 2.1.4.2 Renditions).
A file-able object is one that MAY be "filed" into a folder. That is, it MAY be a child object of a folder object. The following list defines whether the base CMIS object-types are file-able:
When the child objects of a folder are retrieved, a specific version of a document MAY be returned. If the repository supports version-specific filing, the specific version filed in that folder is returned. If the repository does not support version-specific filing, the latest version or the latest major version of the document is returned.
Likewise, this version sensitivity in child-binding also affects the behavior of parent retrieval for a document object, as well as the scope of the IN_FOLDER() and IN_TREE() function calls in a query. For non-versionable fileable objects, their membership in a folder does not have version sensitivity.
Because of these filing constraints, when a new folder object is created, an existing folder object MUST be specified as its parent.
When a non-file-able object is created, a parent folder MUST NOT be specified.
When a file-able object is deleted, it is removed from any folder collection in which the object is a member. In other words, when an object is deleted, all implicit parent-child relationships with the deleted object as a child cease to exist.
CMIS imposes the following constraints on folder objects:
With these constraints, the folder objects in a CMIS repository necessarily form a strict hierarchy, with the root folder being the root of the hierarchy.
The child objects of a given folder object, their child objects, and grandchild objects, etc., are called descendant objects of the given folder object. A folder object together with all its descendant objects are collectively called a tree rooted at that folder object.
A non-folder object does not have any descendant objects. Thus, a folder graph that consists of all fileable objects as nodes, and all the implicit folder containment relationships as directed edges from parent to child, is a directed acyclic graph, possibly with some disconnected (orphan) nodes. It follows that the tree rooted at any given folder object is also a directed acyclic graph, although a non-folder object in the tree MAY have ancestors that are not ancestors of the rooted folder.
Folder objects are handled using the basic CRUD services for objects, and the folder graph is traversed using the navigation services.
The root folder is a special folder such that it cannot be created, deleted, or moved using CMIS services. Otherwise, it behaves like any other folder object.
A folder hierarchy MAY be represented in a canonical notation such as path. For CMIS, a path is represented by:
That is, if folder A is under the root, and folder B is under A, then the path would be /A/B.
A path for an object may be calculated in the following way:
This constructed path may be given as input to the getObjectByPath service for object by path retrieval.
The getObjectParents service returns relativePathSegment tokens. These tokens are the pathSegment of the input object relative to the parent folders.
This section describes the definition of the folder object-type’s attribute values and property definitions which must be present on folder instance objects. All attributes and property definitions are listed by their id.
Notes:
id
Value: cmis:folder
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:folder
displayName
Value: <repository-specific>
baseId
Value: cmis:folder
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: <repository-specific>
fileable
Value: TRUE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: <repository-specific>
controllableACL
Value: <repository-specific>
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:name | Name of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | TRUE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | SHOULD be TRUE | |
cmis:description | Description of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
repository
doesn’t
support
object
descriptions,
the
Updatability
SHOULD
be
readonly
and
the
repository
SHOULD
return
a
"not
set"
value
for
this
property. | ||
cmis:objectId | Id of the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:baseTypeId | Id of the base object-type for the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:objectTypeId | Id of the object’s type. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:secondaryObjectTypeIds | Ids of the object’s secondary types. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readwrite if secondary types are supported, readonly otherwise |
|
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
If
the
repository
does
not
support
secondary
types,
the
repository
MUST
return
"not
set". | ||
cmis:createdBy | User who created the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:creationDate | DateTime when the object was created. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModifiedBy | User who last modified the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModificationDate | DateTime when the object was last modified. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:changeToken | Opaque token used for optimistic locking and concurrency checking. (See section 2.2.1.3 Change Tokens.) | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. If
the
repository
does
not
support
change
tokens,
this
property
SHOULD
not
be
set. | ||
cmis:parentId | Id of the parent folder of the folder. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:path | The fully qualified path to this folder. See section 2.1.5.3 Paths. |
|
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:allowedChildObjectTypeIds | Id’s of the set of object-types that can be
created, moved or filed into this folder. See section 2.1.5.1.2 Filing Restrictions by Object-Type. |
|
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
A relationship object is semantically a dependent object. A relationship object MUST NOT have a content stream, and MUST NOT be versionable, MAY be queryable, and MUST NOT be fileable, although it MAY be controllable.
If a repository does not support relationship objects, the relationship base object-type SHOULD NOT be returned by a getTypeChildren service call.
A relationship object instantiates an explicit, binary, directional, non-invasive, and typed relationship between a source object and a target object. The source object and the target object MUST both be independent objects, such as a document object, a folder object, a policy object, or an item object. Whether a policy object is allowed to be the source or target object of a relationship object is repository-specific.
The relationship instantiated by a relationship object is explicit since it is explicitly represented by an object and is explicitly managed by application.
This relationship is non-invasive in the sense that creating or removing this relationship SHOULD NOT modify either the source or the target object. That is, it SHOULD NOT require an update capability (or permission) on either object; SHOULD NOT affect the versioning state of either object; and SHOULD NOT change their "Last Modification Date".
Explicit relationships can be used to create an arbitrary relationship graph among independent objects. Such a relationship graph is only structural in nature. No inheritance or transitive properties are attached to a relationship graph.
The notion of a source object and a target object of a relationship is used solely to indicate the direction of the relationship. No semantics or implementation bias is implied by this terminology.
The binding of a relationship object to a source document object or to a target document object MAY be either version-specific or version-independent. This version sensitivity is repository-specific, and is largely transparent to CMIS. An independent object MAY participate in any number of explicit relationships, as the source object for some and as the target object for others. Multiple relationships MAY exist between the same pair of source and target objects.
Referential integrity, either between the source object and the target object, or between the relationship object and the source or target object, is repository-specific. Therefore, creating an explicit relationship between two objects MAY impose a constraint on any of the three objects, and removing a relationship or deleting either the source or the target object MAY be restricted by such a constraint. If the source or the target object of a relationship is deleted, the repository MAY automatically delete the relationship object.
Like all CMIS objects, relationship objects are typed. Typing relationship allows them to be grouped, identified, and traversed by type id, and for properties to be defined for individual relationship types.
Additionally, a relationship object-type MAY specify that only objects of a specific object-type can participate as the source object or target object for relationship objects of that type. If no such constraints are specified, then an independent object of any type MAY be the source or the target of a relationship object of that type.
When a relationship object is created, the source object id and the target object id MUST reference valid non-relationship CMIS objects. When a relationship object is retrieved, its source object or target object MAY no longer exist, since referential integrity MAY not be maintained by a repository.
In addition to object CRUD services, a getObjectRelationships service may be used to return a set of relationship objects in which a given independent object is identified as the source or the target object, according to the binding semantics maintained by the repository (i.e., either a version-specific or a version-independent binding as described above).
This section describes the definition of the relationship object-type’s attribute values and property definitions which must be present on relationship instance objects. All attributes and property definitions are listed by their id.
A list of object-type ids, indicating that the
source object of a relationship object of this
type MUST only be one of the types listed.
If this attribute is "not set", then the source object MAY be of any type. |
|
A list of object-type ids, indicating that the
target object of a relationship object of this
type MUST only be one of the types listed.
If this attribute is "not set", then the target object MAY be of any type. |
|
Notes:
id
Value: cmis:relationship
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:relationship
displayName
Value: <repository-specific>
baseId
Value: cmis:relationship
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: <repository-specific>
fileable
Value: FALSE
queryable
Value: <repository-specific>
controllablePolicy
Value: <repository-specific>
controllableACL
Value: <repository-specific>
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
allowedSourceTypes
Value: <repository-specific>
allowedTargetTypes
Value: <repository-specific>
cmis:name | Name of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | TRUE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | SHOULD be TRUE | |
cmis:description | Description of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
repository
doesn’t
support
object
descriptions,
the
Updatability
SHOULD
be
readonly
and
the
repository
SHOULD
return
a
"not
set"
value
for
this
property. | ||
cmis:objectId | Id of the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:baseTypeId | Id of the base object-type for the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:objectTypeId | Id of the object’s type. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:secondaryObjectTypeIds | Ids of the object’s secondary types. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readwrite if secondary types are supported, readonly otherwise |
|
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
If
the
repository
does
not
support
secondary
types,
the
repository
MUST
return
"not
set". | ||
cmis:createdBy | User who created the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:creationDate | DateTime when the object was created. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModifiedBy | User who last modified the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModificationDate | DateTime when the object was last modified. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:changeToken | Opaque token used for optimistic locking and concurrency checking. (See section 2.2.1.3 Change Tokens.) | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. If
the
repository
does
not
support
change
tokens,
this
property
SHOULD
not
be
set. | ||
cmis:sourceId | Id of the source object of the relationship. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:targetId | Id of the target object of the relationship. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
A policy object represents an administrative policy that can be enforced by a repository. CMIS does not specify what kinds of administrative policies that are specifically supported, nor attempts to model administrative policy of any particular kind. Only a base object-type is specified for policy objects. Each policy object holds the text of an administrative policy as a repository-specific string, which is opaque to CMIS and which may be used to support policies of various kinds. A repository may create subtypes of this base type to support different kinds of administrative policies more specifically. If a repository does not support policy objects, the policy base object-type SHOULD NOT be returned by a getTypeChildren service call. This is an extension point for repositories that want to expose other capabilities via CMIS that are not supported directly in CMIS.
Aside from allowing an application to create and maintain policy objects, CMIS allows an application to "apply" a policy to an object, and to remove an applied policy from an object. An object to which a policy may be applied is called a controllable object. A policy MAY be applied to multiple controllable objects. Conversely, a repository MAY allow multiple policies applied to a controllable object. (A repository may, for example, impose constraints such as only one policy of each kind can be applied to an object.) Whether or not an object is controllable is specified by the object’s type definition. Applying a policy to an object is to place the object under the control of that policy (while the object may also be under the control of other policies at the same time), and removing an applied policy from one of its controlled objects is to remove the corresponding control from that object. This control may change the state of the object, may impose certain constraints on service calls operating on this object, or may cause certain management actions to take place. The effect of this control, when this effect takes place, and how this control interacts with other controls, are repository-specific. Only directly/explicitly applied policies are covered by CMIS. Indirectly applying policy to an object, e.g. through inheritance, is outside the scope of CMIS.
A policy object does not have a content stream and is not versionable. It may be fileable, queryable or controllable. Policy objects are handled using the basic CRUD services for objects. If a policy is updated, the change may alter the corresponding control on objects that the policy is currently applied to. If a controlled object is deleted, all the policies applied to that object, if there are any, are removed from that object. A policy object that is currently applied to one or more controllable objects CAN NOT be deleted. That is, there is an implicit referential constraint from a controlled object to its controlling policy object(s). Besides the basic CRUD services, the applyPolicy and the removePolicy services may be used to apply a policy object to a controllable object and respectively to remove an applied policy from one of its controlled objects. In addition, the getAppliedPolicies service may be used to obtain the policy objects that are currently applied to a controllable object.
This section describes the definition of the policy object-type’s attribute values and property definitions which must be present on policy instance objects. All attributes and property definitions are listed by their id.
Notes:
id
Value: cmis:policy
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:policy
displayName
Value: <repository-specific>
baseId
Value: cmis:policy
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: <repository-specific>
fileable
Value: <repository-specific>
queryable
Value: <repository-specific>
controllablePolicy
Value: <repository-specific>
controllableACL
Value: <repository-specific>
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:name | Name of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | TRUE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | SHOULD be TRUE | |
cmis:description | Description of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
repository
doesn’t
support
object
descriptions,
the
Updatability
SHOULD
be
readonly
and
the
repository
SHOULD
return
a
"not
set"
value
for
this
property. | ||
cmis:objectId | Id of the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:baseTypeId | Id of the base object-type for the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:objectTypeId | Id of the object’s type. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:secondaryObjectTypeIds | Ids of the object’s secondary types. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readwrite if secondary types are supported, readonly otherwise |
|
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
If
the
repository
does
not
support
secondary
types,
the
repository
MUST
return
"not
set". | ||
cmis:createdBy | User who created the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:creationDate | DateTime when the object was created. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModifiedBy | User who last modified the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModificationDate | DateTime when the object was last modified. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:changeToken | Opaque token used for optimistic locking and concurrency checking.(See section 2.2.1.3 Change Tokens.) | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. If
the
repository
does
not
support
change
tokens,
this
property
SHOULD
not
be
set. | ||
cmis:policyText | User-friendly description of the policy. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
The item object is an extension point for repositories that want to expose other object types via CMIS that do not fit the definition for document, folder, relationship or policy. For example an independently persistable collection of properties that was not versionable and did not have content. Another example could be a base identity object for users and groups.
A repository may create subtypes of this base type to support different kinds of generic base objects more specifically. If a repository does not support item objects, the item base object-type SHOULD NOT be returned by a getTypeChildren service call. Like the other CMIS objects (folder, policy and relationship), item objects are not versionable and do not have content. Item objects are manipulated with the basic CRUD operations as well as with query if the repository has them marked as queryable.
This section describes the definition of the item object-type’s attribute values and property definitions which must be present on item instance objects. All attributes and property definitions are listed by their id.
Notes:
id
Value: cmis:item
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:item
displayName
Value: <repository-specific>
baseId
Value: cmis:item
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: <repository-specific>
fileable
Value: <repository-specific>
queryable
Value: <repository-specific>
controllablePolicy
Value: <repository-specific>
controllableACL
Value: <repository-specific>
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:name | Name of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | TRUE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | SHOULD be TRUE | |
If
the
repository
does
not
support
names
for
items,
it
MAY
ignore
the
value
of
this
property
when
provided
by a
client.
The
repository
MUST
return
a
name
even
if
the
item
has
no
name.
It
MAY
return
the
object
id in
this
case. | ||
cmis:description | Description of the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository specific> | |
Orderable: | <repository specific> | |
If
the
repository
doesn’t
support
object
descriptions,
the
Updatability
SHOULD
be
readonly
and
the
repository
SHOULD
return
a
"not
set"
value
for
this
property. | ||
cmis:objectId | Id of the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:baseTypeId | Id of the base object-type for the object. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:objectTypeId | Id of the object’s type. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository specific> | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:secondaryObjectTypeIds | Ids of the object’s secondary types. | |
Property Type: | Id | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | readwrite if secondary types are supported, readonly otherwise | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
If
the
repository
does
not
support
secondary
types,
the
repository
MUST
return
"not
set". | ||
cmis:createdBy | User who created the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:creationDate | DateTime when the object was created. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModifiedBy | User who last modified the object. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:lastModificationDate | DateTime when the object was last modified. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | TRUE | |
Orderable: | TRUE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. | ||
cmis:changeToken | Opaque token used for optimistic locking and concurrency checking.(See section 2.2.1.3 Change Tokens.) | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readonly | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | FALSE | |
Orderable: | FALSE | |
The
repository
MUST
return
this
property
with
a
non-empty
value
if
the
property
filter
does
not
exclude
it. If
the
repository
does
not
support
change
tokens,
this
property
SHOULD
not
be
set. | ||
A secondary type defines a set of properties that can be dynamically added to and removed from objects. That is, an object can get and lose additional properties that are not defined by its primary type during its lifetime. Multiple secondary types can be applied to the same object at the same time.
Secondary types can be simple markers without properties. Alternatively, they can contain technical information about an object. For example, a repository might analyze the content of a document, detects a photo and adds a secondary type that adds EXIF data to the document. Applications might want to attach temporary data to an object such the state of the object in a workflow. Secondary types may also change the behaviour of the repository.
The CMIS specification does not define the semantics of secondary types with the exception of secondary types for retentions and holds (see section 2.1.16 Retentions and Holds). CMIS provides a way to apply and remove secondary types to/from an object. Additionally, CMIS provides an optional ability to create, update and remove secondary types.
If a repository does not support secondary types, the secondary type base object-type cmis:secondary SHOULD NOT be returned by a getTypeChildren service call.
The base object-type does not specify any property definitions and its sole purpose is to be the root type of all other secondary object-types. Repositories MAY provide property definitions on the base type that are then inherited by other secondary object-types.
Secondary types can be applied to and removed from an object at any time. An object MAY have zero or more secondary types assigned to it. When a secondary type is applied, the object provides the properties that are defined by the secondary type. When a secondary type is removed, it loses these properties and its values.
A repository MAY not allow applying or removing certain secondary object-types to certain objects based on rules that are not determined in this specification. The repository SHOULD throw a constraint exception if such an operation is not allowed. Secondary object-types CAN NOT be used as primary object-types. That is, when an object is created, its object-type has to be either one of the other base types or an object-type that is derived from the other base types. Hence, a secondary object-type MUST NOT be creatable.
Whether an object is fileable, versionable or controllable is determined by its primary object-type.
Secondary types can be applied at creation time by populating the multi-value property cmis:secondaryObjectTypeIds with the ids of the secondary types. All properties defined by these secondary types can be set as well.
Secondary types can be added and removed later by changing the cmis:secondaryObjectTypeIds property, either through the updateProperties service or the checkIn service. Adding the id of a secondary type to this multi value property adds the secondary type. Removing the id of a secondary type from this multi value property removes the type and all associated properties and values.
A repository MUST throw a constraint exception if a secondary type cannot be added or removed.
Adding a secondary type and providing values for the associated properties of this secondary type MAY be done in the same operation.
This section describes the definition of the secondary object-type’s attribute values. All attributes are listed by their id.
Notes:
id
Value: cmis:secondary
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:secondary
displayName
Value: <repository-specific>
baseId
Value: cmis:secondary
parentId
Value: MUST NOT be set
description
Value: <repository-specific>
creatable
Value: FALSE
fileable
Value: FALSE
queryable
Value: <repository-specific>
controllablePolicy
Value: FALSE
controllableACL
Value: FALSE
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
Note: This attribute defines if the properties of this secondary type are full-text
indexed. It does not make a statement about the content.
A repository MAY support the creation, modification and deletion of primary and secondary object-types.
Each object-type definition SHOULD include a set of flags that indicate if the object-type can be used as a parent type or if the object-type can be modified or deleted. Please see section 2.1.3.2.1 Attributes common to ALL Object-Type Definitions for details.
These flags are not to be interpreted as the rights for the current user. These are the rights that would apply to an administrator user or a user that has sufficient rights to modify metadata. For example, a non-administrator would see that an object-type is extendable (the type mutability capabilities create flag is set to TRUE) even though they would not be allowed to actually perform the operation. If a user tries to create, modify or delete a type definition and does not have the required permissions, the repository MUST return a permissionDenied error.
A repository MAY also place additional restrictions on these operations where necessary. These restrictions are repository specific.
The optional capabilities capabilityNewTypeSettableAttributes and capabilityCreatablePropertyTypes SHOULD indicate which object-type attributes can be set by a client and which properties data types can be used to create or extend an object-type.
Note, that the client CANNOT define whether a new object-type can be used as a parent type, or can be updated or deleted. How the repository determines a given object-type’s mutability capabilities is repository specific.
When an object-type is created the client MUST suggest a type id for the new object-type. The repository may do the following with this suggested value:
When a property definition is created the client MUST suggest a property definition id for the new property. The repository may do the following with this suggested value:
When an object-type is created or updated, the repository MUST return the created or updated type definition whereby the order of ALL newly created property definitions MUST match the order of the input. This is so that there will be no ambiguity for clients who need to know which property matches a specific suggested Id value for a new property definition. This special ordering is only required for the return value for createType and updateType. There is no special ordering of the properties returned for subsequent calls to getTypeDefinition for this new or modified type.
When an object-type is updated the following rules MUST be obeyed:
This ensures that the new constraints will not leave any existing data out of the permitted constraint range.
The execution of the createType and updateType services MUST not affect the definition of any other types or any other type’s current property definitions. For example, any properties on the type being created must not place constraints on other type’s properties when/if other properties ’share’ property definitions.
An object-type can only be deleted if there are no objects of this type and the object-type has no sub-types. The deleteType service MUST return a constraint error if an instance of the object-type exists or the object-type is a parent type of another object-type.
The following diagrams illustrate the CMIS object model. Please note that they only reflect the logical model. The CMIS bindings use slightly different data structures.
A repository can support either a base set of CMIS-defined permissions and/or its own set of repository specific permissions.
The getACL service allows the requestor to specify that the result be expressed using only the CMIS defined permissions. Without this restriction, the response may include, or be solely expressed in repository specific permissions. The applyACL service permits either CMIS permissions or repository permissions, or a combination of both, to be used.
An Access Control List (ACL) is a list of Access Control Entries (ACEs) and MAY hold zero or more ACEs. If an ACL has no ACEs, the behavior is the same as if the ACL is not set.
An ACE holds:
There are three basic permissions predefined by CMIS:
How these basic permissions are mapped to the allowable actions is repository specific. However, the actual repository semantics for the basic permissions with regard to allowable actions can be discovered by the mappings parameter returned by the getRepositoryInfo service.
Repositories MAY extend this set with repository-specific permissions.
Whether a repository supports ACLs at all, may be discovered via capabilityACL attribute returned by the getRepositoryInfo service (see section 2.1.1.1 Optional Capabilities). If the value of the capabilityACL attribute is none, ACLs are not supported by the repository.
If the value of the capabilityACL attribute is discover or manage, additional information about the repository’s permission model and how ACL modifications are handled are provided by the getRepositoryInfo service:
A PermissionDefinition holds:
The set of allowable actions on an object at a point in time are affected not only by CMIS ACLs, but also by other factors such as:
CMIS defines several services that applications can use at run-time to discover the allowable actions for an object.
If a repository supports ACLs, then the repository MUST provide a mapping table that defines how the permissions supported by the repository interact with the CMIS allowable actions, i.e. which permissions are necessary for a principal to have on one or more objects in order to potentially perform each action, subject to the other constraints on allowable actions mentioned above.
This section defines both the allowable actions as well as how those actions are presented in the permission mapping table.
The permission mapping table contains a set of key–permissions pairs:
The following list defines all mapping keys, as well as a permissions mapping that repositories SHOULD use. Repositories MAY require additional permissions.
For convenience, the list groups all mapping entries by the underlying allowable actions, and includes descriptive information. For each allowable action the following information is given:
Description: | Can get the descendants of the folder (getDescendants and getFolderTree). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canGetDescendants.Folder | |
Permission: | cmis:read | |
Description: | Can get the children of the folder (getChildren). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canGetChildren.Folder | |
Permission: | cmis:read | |
Description: | Can get the parent folder of the folder (getFolderParent). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canGetFolderParent.Object | |
Permission: | cmis:read | |
Description: | Can get the parent folders of the object (getObjectParents). | |
Base Type: | cmis:document, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canGetParents.Folder | |
Permission: | cmis:read | |
Description: | Can create a cmis:document object in the specified folder (createDocument). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canCreateDocument.Folder | |
Permission: | cmis:read | |
Description: | Can create a cmis:folder object as a child of the specified folder (createFolder). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canCreateFolder.Folder | |
Permission: | cmis:read | |
Description: | Can create a cmis:policy object as a child of the specified folder (createPolicy). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canCreatePolicy.Folder | |
Permission: | cmis:read | |
Description: | Can create a relationship object with the object as its source (createRelationship). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canCreateRelationship.Source | |
Permission: | cmis:read | |
Description: | Can create a relationship object with the object as its target (createRelationship). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canCreateRelationship.Target | |
Permission: | cmis:read | |
Description: | Can read the properties of the specified object (getProperties, getObject and getObjectByPath). | |
Base Type: | cmis:document, cmis:folder, cmis:relationship, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canGetProperties.Object | |
Permission: | cmis:read | |
Description: | Can update the properties of the specified object (updateProperties). | |
Base Type: | cmis:document, cmis:folder, cmis:relationship, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canUpdateProperties.Object | |
Permission: | cmis:write | |
Description: | Can move the specified object (moveObject). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canMove.Object | |
Permission: | cmis:write | |
Description: | Can move an object into this folder (moveObject). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canMove.Target | |
Permission: | cmis:read | |
Description: | Can move an object from this folder (moveObject). | |
Base Type: | cmis:folder | |
Operand: | Folder | |
Key: | canMove.Source | |
Permission: | cmis:read | |
Description: | Can delete the specified object (deleteObject). | |
Base Type: | cmis:document, cmis:folder, cmis:relationship, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canDelete.Object | |
Permission: | cmis:write | |
Description: | Can get the content stream for the document object (getContentStream). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canViewContent.Object | |
Permission: | cmis:write | |
Description: | Can set the content stream for the document object (setContentStream). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canSetContent.Document | |
Permission: | cmis:write | |
Description: | Can delete the content stream for the Document object (deleteContentStream). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canDeleteContent.Document | |
Permission: | cmis:write | |
Description: | Can delete the specified folder and all contained objects (deleteTree). | |
Base Type: | cmis:folder | |
Operand: | Object | |
Key: | canDeleteTree.Folder | |
Permission: | cmis:write | |
Description: | Can file the object in a folder (addObjectToFolder). | |
Base Type: | cmis:document, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canAddToFolder.Object | |
Permission: | cmis:read | |
Description: | Can file an object in the specified folder (addObjectToFolder). | |
Base Type: | cmis:document, cmis:policy, cmis:item | |
Operand: | Folder | |
Key: | canAddToFolder.Folder | |
Permission: | cmis:read | |
Description: | Can unfile the specified document from a folder (removeObjectFromFolder). | |
Base Type: | cmis:document, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canRemoveFromFolder.Object | |
Permission: | cmis:read | |
Description: | Can unfile an object from the specified folder (removeObjectFromFolder). | |
Base Type: | cmis:document, cmis:policy | |
Operand: | Folder | |
Key: | canRemoveFromFolder.Folder | |
Permission: | cmis:read | |
Description: | Can check out the specified document (checkOut). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canCheckout.Document | |
Permission: | cmis:write | |
Description: | Can cancel the check out the specified PWC (cancelCheckOut). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canCancelCheckout.Document | |
Permission: | cmis:write | |
Description: | Can check in the specified PWC (checkIn). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canCheckin.Document | |
Permission: | cmis:write | |
Description: | Can get the version series of the specified document (getAllVersions). | |
Base Type: | cmis:document | |
Operand: | Object | |
Key: | canGetAllVersions.VersionSeries | |
Permission: | cmis:read | |
Description: | Can get the relationship in which this object is a source or a target (getObjectRelationships). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canGetObjectRelationships.Object | |
Permission: | cmis:read | |
Description: | Can apply a policy to the specified object (applyPolicy). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:relationship, cmis:item | |
Operand: | Object | |
Key: | canAddPolicy.Object | |
Permission: | cmis:read | |
Description: | Can apply the specified policy to an object (applyPolicy). | |
Base Type: | cmis:policy | |
Operand: | Object | |
Key: | canAddPolicy.Policy | |
Permission: | cmis:read | |
Description: | Can remove a policy from the specified object (removePolicy). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:relationship, cmis:item | |
Operand: | Object | |
Key: | canRemovePolicy.Object | |
Permission: | cmis:read | |
Description: | Can remove the specified policy from an object (removePolicy). | |
Base Type: | cmis:policy | |
Operand: | Object | |
Key: | canRemovePolicy.Policy | |
Permission: | cmis:read | |
Description: | Can get the list of policies applied to the specified object (getAppliedPolicies). | |
Base Type: | cmis:document, cmis:folder, cmis:policy, cmis:relationship, cmis:item | |
Operand: | Object | |
Key: | canGetAppliedPolicies.Object | |
Permission: | cmis:read | |
Description: | Can get ACL of the specified object (getACL). | |
Base Type: | cmis:document, cmis:folder, cmis:relationship, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canGetACL.Object | |
Permission: | cmis:read | |
Description: | Can apply ACL to this object (applyACL). | |
Base Type: | cmis:document, cmis:folder, cmis:relationship, cmis:policy, cmis:item | |
Operand: | Object | |
Key: | canApplyACL.Object | |
Permission: | cmis:write | |
CMIS supports versioning of document objects. Folder objects, relationship objects, policy objects, and item objects cannot be versioned.
Whether or not a document object is versionable (i.e. whether or not operations performed on the object via the Versioning Services MUST be allowed) is specified by the "versionable" attribute on its object-type.
A version of a document object is an explicit/"deep" copy of the object, preserving its state at a certain point in time. Each version of a document object is itself a document object, i.e. has its own object id, property values, MAY be acted upon using all CMIS services that act upon document objects, etc.
A version series for a document object is a transitively closed collection of all document objects, other than any Private Working Copy (see section 2.1.13.5.1 Checkout), that have been created from an original document in the repository. Each version series has a unique, system-assigned, and immutable version series id.
The version series has transitive closure – that is, if object B is a version of object A, and object C is a version of object B, then object C is also a version of object A. The objects in a version series can be conceptually sequenced by their respective creation date properties (cmis:creationDate).
Additionally, the repository MAY expose a textual version label (cmis:versionLabel) that describes to a user the position of an individual object with respect to the version series. (For example, version 1.0).
Note: A document object that is NOT versionable will always have a single object in its version series. A versionable document object MAY have one or more objects in its version series.
The version that has the most recent last modification date (cmis:lastModificationDate) is called the latest version of the series, or equivalently, the latest version of any document object in the series.
When the latest version of a version series is deleted, a previous version (if there is one) becomes the latest version.
Repositories NEED NOT allow the non-latest versions in a version series to be updated, queried, or searched.
A document object in a version series MAY be designated as a major version.
The CMIS specification does not define any semantic/behavioral differences between major and non-major versions in a version series. Repositories may enforce/apply additional constraints or semantics for major versions, if the effect on CMIS services remains consistent with an allowable behavior of the CMIS model.
If the version series contains one or more major versions, the one that has the most recent last modification date (property cmis:lastModificationDate) is the latest major version of the version series.
(Note that while a version series MUST always have a latest version, it NEED NOT have a latest major version.)
When the latest major version is deleted, a previous major version (if there is one) becomes the latest major version.
The effects of invoking the checkOut service MUST be as follows:
After a successful checkOut operation is completed, and until such time when the PWC is deleted (via the cancelCheckOut service) or checked-in (via the checkIn service), the effects on the PWC or on other documents in the version series MUST be as follows:
If the repository does NOT support the "PWCUpdatable" capability, then the PWC object can only be modified as part of the checkIn service call.
The checkIn service allows users to provide update property values and a content
stream for the PWC object.
The effects of the checkIn service MUST be as follows for successful checkins:
Note: A repository MAY automatically create new versions of document objects without an explicit invocation of the checkOut/checkIn services.
All document objects will have the following read-only property values pertaining to
versioning:
cmis:isPrivateWorkingCopy | Boolean |
TRUE if the document object is a Private Working Copy. FALSE otherwise. | |
cmis:isLatestVersion | Boolean |
TRUE if the document object is the latest version (most recent last modification date) in its version series. FALSE otherwise. MUST be FALSE for Private Working Copy objects. | |
cmis:isMajorVersion | Boolean |
TRUE if the document object is a major version in its version series. FALSE otherwise. MUST be FALSE for Private Working Copy objects. | |
cmis:isLatestMajorVersion | Boolean |
TRUE if the document object is the latest major version in its version series. FALSE otherwise. MUST be FALSE for Private Working Copy objects. | |
cmis:versionLabel | String |
Textual description the position of an individual object with respect to the version series. (For example, "version 1.0"). MAY be "not set". | |
cmis:versionSeriesId | Id |
Id of the version series for this object. | |
cmis:isVersionSeriesCheckedOut | Boolean |
TRUE if there currenly exists a Private Working Copy for this version series. FALSE otherwise. | |
cmis:versionSeriesCheckedOutBy | String |
If cmis:isVersionSeriesCheckedOut is TRUE: An identifier for the user who created the Private Working Copy. "Not set" otherwise. | |
cmis:versionSeriesCheckedOutId | String |
If cmis:isVersionSeriesCheckedOut is TRUE: The object id for the Private Working Copy. "Not set" otherwise. | |
cmis:checkinComment | String |
Textual comment associated with the given version. MAY be "not set". | |
Note: Changes made via the Versioning Services that affect the values of these properties MUST NOT constitute modifications to the document objects in the version series (e.g. MUST NOT affect the cmis:lastModificationDate, etc.).
When calling the createDocument service or the createDocumentFromSource service, a versioningState parameter can be used to specify what the versioning state of the newly-created object MUST be.
A repository MAY create new document objects in a "Private Working Copy" state. This state is logically equivalent to having a version series that contains exactly one object (the PWC) and 0 other documents.
The repository MAY also create new document objects in a "major version" state. This state is logically equivalent to having a version series that contains exactly one major version and 0 other documents.
The repository MAY also create new document objects in a "non-major version" state. This state is logically equivalent to having a version series that contains exactly one non-major version and 0 other documents.
If the repository does not support versioning the repository MUST ignore the value of the versioningState parameter.
Repositories MAY treat membership of a document object in a folder collection as "version-specific" or "version-independent".
Repositories MUST indicate whether they support version-specific membership in a folder via the "capabilityVersionSpecificFiling" optional capability flag. (See section 2.1.1.1 Optional Capabilities.)
If the repository is treating folder collection membership as "version-independent", then:
If the repository is treating folder collection membership as "version-specific", then moving or filing a document object into a folder MUST NOT result in other documents in the version series being moved/filed.
A relationship object MAY have either a version-specific or version-independent binding to its source and/or target objects. This behavior MAY vary between repositories and between individual relationship types defined for a repository.
If a relationship object has a version-independent binding to its source/target object, then:
If a relationship object has a version-specific binding to its source/target object, then:
Repositories MAY include non-latest-versions of document objects in results to the query service.
Repositories MUST indicate whether they support querying for non-latest-versions via the "capabilityAllVersionsSearchable" optional capability flag. (See section 2.1.1.1 Optional Capabilities.)
If "capabilityAllVersionsSearchable" is TRUE then the repository MUST include in the query results ANY document object in the version series that matches the query criteria. (Subject to other query constraints such as security.)
Additionally, repositories MAY include Private Working Copy objects in results to the query service. Repositories MUST indicate whether they support querying for Private Working Copy objects via the "capabilityPWCSearchable" optional capability flag.
If "capabilityPWCSearchable" is TRUE then the repository MUST include in the query results ANY Private Working Copy Document objects that matches the query criteria. (Subject to other query constraints such as security.)
If "capabilityPWCSearchable" is FALSE then the repository MUST NOT include in the query results ANY Private Working Copy Document Objects that match the query criteria. (Subject to other query constraints such as security.)
CMIS provides a type-based query service for discovering objects that match specified criteria, by defining a read-only projection of the CMIS data model into a relational view.
Through this relational view, queries may be performed via a simplified SQL SELECT statement. This query language is based on a subset of the SQL-92 grammar (ISO/IEC 9075: 1992 – Database Language SQL), with a few extensions to enhance its filtering capability for the CMIS data model, such as existential quantification for multi-valued property, full-text search, and folder membership. Other statements of the SQL language are not adopted by CMIS. The semantics of this query language is defined by the SQL-92 standard, plus the extensions, in conjunction with the model mapping defined by CMIS’s relational view.
The relational view of a CMIS repository consists of a collection of virtual tables that are defined on top of the CMIS data model. This relational view is used for query purposes only.
In this relational view a virtual table is implicitly defined for each queryable object-type defined in the repository. (Non-queryable object-types are NOT exposed through this relational view.)
In each virtual table, a virtual column is implicitly defined for each property defined in the object-type definition AND for all properties defined on ANY ancestor-type of the object-type but NOT defined in the object-type definition. Virtual columns for properties defined on ancestor-types of the object-type but NOT defined in the object-Type definition MUST contain the SQL NULL value. Virtual columns for properties whose value is "not set" MUST contain the SQL NULL value.
An object-type’s queryName attribute is used as the table name for the corresponding virtual table, and a property’s queryName attribute is used as the column name for the corresponding table column. Please see the restrictions on queryName in section 2.1.2.1.3 Query Names.
The virtual column for a multi-valued property MUST contain a single list value that includes all values of the property.
Additionally, an object-type definition’s includedInSupertypeQuery specifies whether objects of that object-type MUST be included in the virtual table for any of its ancestor types. If the includedInSupertypeQuery attribute of the object-type is FALSE, then objects of that object-type MUST NOT be included in the virtual table for any of its ancestor types.
In each virtual table, a virtual column is implicitly defined for each property defined in the object-type definition. In addition, a virtual column is also implicitly defined for each property defined on ANY ancestor-type of this object-type but NOT defined in this object-type definition. In addition, the virtual table for a secondary object type has one more virtual column for the cmis:objectId property defined by each object’s primary type. If a secondary object type does not define any property, then its virtual table will have cmis:objectId as the only column, identifying the objects to which the secondary type has been applied. Virtual columns for properties defined on ancestor-types of the object-type but NOT defined (inherited) in the object-type definition MUST contain the SQL NULL value. Virtual columns for properties whose value is "not set" MUST contain the SQL NULL value. The rows of a virtual table corresponding to a queryable primary type represent the objects of that type. The rows of a virtual table corresponding to a queryable secondary type represent objects of various primary types (which may or may not be queryable) that the secondary type is applied to. To query on both an object’s primary type properties and its secondary type properties, a SQL JOIN of the respective tables on the cmis:objectId column may be performed. Explicit JOIN support, as defined in 2.1.1.1 Optional Capabilities, is not required for a repository to provide join between a primary type and secondary type tables based on cmis:objectId.
For each property in each object in the result set, the repository MUST include the property definition id as well as either the query name (if no alias is used) or the alias in place of the query name (if an alias is used).
If the select clause of the query statement contains properties from a single type reference then the repository MAY represent these pseudo-objects with additional object information.
This query languages is based on a subset of the SQL-92 grammar. CMIS-specific language extensions to SQL-92 are called out explicitly.
The basic structure of a CMIS query is a SQL statement that MUST include the following clauses:
Additionally, a CMIS query MAY include the following clauses:
All column names MUST be valid "queryName" values for properties whose virtual tables are listed in the FROM clause. For each "queryName" an alias MAY be defined by adding the string " AS " and the name of the alias to the query name. Alias names MUST comply with the rules for query names. (See section 2.1.2.1.3 Query Names.)
The FROM clause MUST contain only the "queryNames" of object-types whose queryable attribute value is TRUE. For each "queryName" an alias MAY be defined by adding the string " AS " and the name of the alias to the query name. Alias names MUST comply with the rules for query names. (See section 2.1.2.1.3 Query Names.)
Only explicit joins using the "JOIN" keyword is supported. Queries MUST NOT include implicit joins as part of the WHERE clause of a CMIS query.
CMIS queries MUST only support join operations using the "equality" predicate on single-valued properties.
All column names MUST be valid "queryName" or their aliased values for properties that are defined as "queryable" in the object-type(s) whose virtual tables are listed in the FROM clause.
Properties are defined to not support a "null" value, therefore the <null predicate> MUST be interpreted as testing the not set or set state of the specified property.
Repositories SHOULD support the comparisons for the property types as described
in the list below. Repositories MAY support additional comparisons and operators.
Any additional operators not specified are repository-specific:
Property Type | Operators supported on Type | Supported type of Literal in comparison |
String | =, <>, [NOT] LIKE | String |
String (IN) | [NOT] IN | List of Strings |
Decimal | =, <>, <, <=, >, >= | Decimal |
Decimal (IN) | [NOT] IN | List of Decimal |
Integer | =, <>, <, <=, >, >= | Integer |
Integer (IN) | [NOT] IN | List of Integer |
Boolean | = | Boolean literal |
DateTime | =, <>, <1, <=1, >1, >=1 | DateTime literal |
DateTime (IN) | [NOT] IN | List of DateTime literals |
ID | =, <> | String |
ID (IN) | [NOT] IN | List of strings |
URI | =, <>, [NOT] LIKE | String |
URI (IN) | [NOT] IN | List of strings |
Operations on the SCORE() output MUST be treated the same as decimal operations.
When using properties in a join statement, comparison MUST be allowed on properties of the same types as defined by the table above. Repositories MAY extend this behavior.
The ANY operation argument MUST be one of the properties found in the table above which supports equality operations.
These are non-terminals defined for multi-valued properties whereas SQL-92’s <column reference> and <column name> are retained for single-valued properties only. This is to preserve the single-value semantics of a regular "column" in the SQL-92 grammar. Quantified comparison predicate The SQL-92 production rule for <quantified comparison predicate> is extended to accept a multi-valued property in place of a <table subquery>. This operation is restricted to equality tests only.
<Table subquery> is not supported in CMIS-SQL.
The SQL-92 <quantifier> is restricted to ANY only.
The SQL-92 <row value constructor> is restricted to a literal only.
The quantifier is restricted to ANY. The predicate MUST be evaluated to TRUE if at least one of the property’s values is (or, is not, if NOT is specified) among the given list of literal values. Otherwise the predicate is evaluated to FALSE.
The ANY operation argument MUST be one of the properties found in the
comparison list above which supports IN operations.
Example 1: | |
SELECT *
FROM CAR_REVIEW WHERE (MAKE = ’buick’) OR (ANY FEATURES IN (’NAVIGATION SYSTEM’, ’SATELLITE RADIO’, ’MP3’)) (Note: FEATURES is a multi-valued String property.) |
|
Usage:
| |
This is a predicate function that encapsulates the full-text search capability that MAY be provided by a repository. See the optional capability
attribute capabilityQuery.
|
|
Inputs: | |
|
|
Return value: | |
The predicate returns a Boolean value.
|
|
Constraints: | |
|
|
Usage:
| |
This is a predicate function that encapsulates the full-text search capability that MAY be provided by a repository. (See previous section.) | |
Inputs:
| |
No inputs MUST be provided for this predicate function. | |
Return value: | |
The SCORE() predicate function returns a decimal value in the interval [0,1].
|
|
Constraints: | |
|
|
Usage:
| |
This is a predicate function that tests whether or not a candidate object is a child-object of the folder object identified by the given <folder id>. | |
Inputs: | |
|
|
Return value: | |
The predicate returns a Boolean value.
|
|
Usage:
| |
This is a predicate function that tests whether or not a candidate object is a descendant-object of the folder object identified by the given <folder id>. | |
Inputs: | |
|
|
Return value: | |
The predicate returns a Boolean value.
|
|
All column names referenced in this clause MUST be valid "queryName" or their aliased values for properties defined as orderable in the object-type(s) whose virtual tables are listed in the FROM clause.
Only columns in the SELECT clause MAY be in the ORDER BY clause.
Collation rules for the ORDER BY clause are repository specific.
Character escaping for character strings differs from SQL-92’s escaping. A repository MUST support the escaping of certain literal characters in a character string, or in a text search expression, using a backslash character (\) in the following manner. For a <character string literal>, which MUST BE a string enclosed in single-quotes according to the SQL-92 grammar, any occurrence of the single-quote character (’) and the escape character (\) in the string MUST BE escaped. This applies to <folder id>, which is a <character string literal>. Furthermore, when a <character string literal> is used in a LIKE predicate, any occurrence of the percent character (%) and the underscore character (_) in the string as a literal MUST BE escaped also. Therefore, within a quoted string in a query:
Using double single-quotes (”) as a SQL-92 way to escape a literal single-quote (’) character SHOULD BE supported as an allowable alternative to the double character \’.
For a <text search expression>, a second-level character escaping is required so that the <text search expression> sub-grammar is isolatable from the query statement-level grammar. When a text search expression is composed for a query according to the <text search expression> sub-grammar, any occurrence of the following four characters in the expression as a literal character MUST BE escaped: double-quote ("), hyphen (-), single-quote (’), and the escape character (\). Then, before this expression is enclosed in single-quotes and inserted into a CONTAINS() predicate, the query statement-level escaping rules described in the above MUST BE applied. This two-level character escaping allows a query statement parser, using statement-level escaping rules, to correctly extract a <text search expression> as a character string literal independent of the <text search expression> sub-grammar. This extracted <text search expression> can then be correctly interpreted by a full-text search parser independent of the query-statement grammar, using second-level escaping rules. Since the <text search expression> sub-grammar is isolated from the SQL-92 grammar, double single-quotes is not a valid way to escape a literal single-quote character for second-level character escaping.
An <identifier> in a query statement MUST conform to the SQL-92 identifier
syntax, and MUST NOT require character escaping.
Example:
A query statement that contains a full-text search for the literal string
"John’sPresentation-Version2" may be composed as:
SELECT ... FROM ... WHERE ... CONTAINS(’John\\\’sPresentation\\-Version2’)
...
A query parser extracts from this statement the text search expression "John\’sPresentation\-Version2" as a character string literal, and passes it to a text-search parser, which interprets it as a single-word full-text search criteria: John’sPresentation-Version2.
CMIS provides a "change log" mechanism, the getContentChanges service, to allow applications to easily discover the set of changes that have occurred to objects stored in the repository since a previous point in time. This change log can then be used by applications such as search services that maintain an external index of the repository to efficiently determine how to synchronize their index to the current state of the repository (rather than having to query for all objects currently in the repository).
Entries recorded in the change log are referred to below as "change events".
Note that change events in the change log MUST be returned in ascending order from the time when the change event occurred.
The change log mechanism exposed by a repository MAY be able to return an entry for every change ever made to content in the repository, or may only be able to return an entry for all changes made since a particular point in time. This "completeness" level of the change log is indicated via the changesIncomplete value found on the getRepositoryInfo service response.
However, repositories MUST ensure that if an application requests the entire contents of the repository’s change log, that the contents of the change log includes ALL changes made to any object in the repository after the first change listed in the change log. (I.e. repositories MAY truncate events from the change log on a "first-in first-out" basis, but not in any other order.)
A repository MAY record events such as filing/unfiling/moving of documents as change events on the documents, their parent folder(s), or both the documents and the parent folders.
The primary index into the change log of a repository is the "change log token". The change log token is an opaque string that uniquely identifies a particular change in the change log.
Repositories that support the changeLogToken event MUST expose the latest change log token (i.e. the change log token corresponding to the most recent change to any object in the repository) as a property returned by the getRepositoryInfo service.
This will enable applications to begin "subscribing" to the change log for a repository by discovering what change log token they should use on a going-forward basis to discover change events to the repository.
A change event represents a single action that occurred to an object in the repository that affected the persisted state of the object.
A repository that supports the change log capability MUST expose at least the following information for each change object:
Repositories MUST indicate whether they include properties for "updated" change events via the optional capabilityChanges.
Retentions and Holds can be used to protect documents from being deleted or modified. A Retention describes a period of time where the document must not be deleted, while a Hold just marks the document as protected as long as the Hold is applied to a document.
This specification defines a basic interface for end user operations. Administrative operations such as managing a file plan or shortening retention periods are out of scope. A repository MAY support settings that require administrative privileges and bend the rules described in the following section. The implications are repository specific.
Retentions and Holds can be applied to documents by applying predefined secondary types for Retentions and Holds. CMIS specifies secondary types for:
If a repository does not support one of the predefined types for Retention and Hold management, the corresponding secondary type MUST NOT be returned by a getTypeChildren service call.
All secondary types for retention and hold management SHOULD be able to be applied to objects derived from the cmis:document base type. Applying such types to other CMIS objects and its behavior is repository specific. A repository MUST throw a constraint exception if the operation is not supported.
Retentions and Holds are applied to document versions. How this affects other versions in the version series is repository specfic.
Retentions and Holds protect at least the content of a document from modifications. If this protection also applies to the properties, ACL, policies, relationships, etc. of a document, is repository specific. Clients may use the Allowable Actions to discover what they can do with protected documents.
Repository Managed Retentions are used in scenarios where the repository is responsible for calculating the concrete expiration date and potential destruction date for a document. As a first step a records manager usually creates a file plan in the repository and assigns rules which are used to calculate the retention period for a specific entry in the file plan. Creating a file plan is out-of-scope for CMIS. It has to be done using the native (user) interfaces of the repository. In order to enable a client to classify documents according to this file plan, the repository exposes the file plan as a secondary type hierarchy. The CMIS client can now apply one of the exposed file plan categories to a document. This process is called classification:
Support for Repository Managed Retentions is optional. A repository that does not support Repository Managed Retentions will not expose a file plan via the secondary type hierarchy. Repositories that support Repository Managed Retentions MUST expose the categories of the file plan as a subtype of the CMIS defined secondary type cmis:rm_repMgtRetention. The secondary type cmis:rm_repMgtRetention does not require any properties. A repository MAY add repository specific properties. A secondary type hierarchy for Repository Managed Retentions could look like this (white boxes are CMIS defined types, orange boxes are repository specific):
The usage of Repository Managed Retentions allows support of support advanced scenarios where the retention period is not fixed at creation time, but managed more dynamically (e.g. depending on certain property changes like "3 years after setting status to released"). The capabilities that are kind of rules are supported and how they are enforced varies widely between repository implementations. Some may do this automatically, some may require manually triggered batch runs, require an approval or workflow for certain actions etc. This model has minimal requirements for the application but can use much of the functionality that a repository provides.
This specification only defines the classification process, that is applying a Repository Managed Retention to a document. Creating and managing the rules and how rules are mapped to file plan categories is out-of-scope and repository specific. Which set of Repository Managed Retentions can be assigned to which objects is also repository specific.
Whether a user is allowed to apply a Repository Managed Retention is repository specific. If the user has no permission to do so, a permissionDenied exception MUST be thrown. In case of others constraints, a constraint exception MUST be thrown.
id
Value: cmis:rm_repMgtRetention
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:rm_repMgtRetention
displayName
Value: <repository-specific>
baseId
Value: cmis:secondary
parentId
Value: cmis:secondary
description
Value: <repository-specific>
creatable
Value: FALSE
fileable
Value: FALSE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: FALSE
controllableACL
Value: FALSE
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
Client Managed Retentions are used in scenarios where the CMIS client is responsible to calculate the concrete expiration date for a document. This is usually required when documents are related to other objects (like a Business Object in an ERP system) and the documents must get the same retention period than the object where they are related to. In this case a CMIS client can apply a retention period to a document using the Client Managed Retention object-type.
If a repository supports Client Managed Retentions, it exposes the secondary type cmis:rm_clientMgtRetention via the secondary type hierarchy. The CMIS defined secondary type cmis:rm_clientMgtRetention defines two properties:
A repository MAY define its own secondary types for Client Managed Retentions with additional properties. Those types MUST be derived from the type cmis:rm_clientMgtRetention.
Repositories that support a process to dispose documents after a certain period of time, MAY expose the type cmis:rm_destructionRetention which is derived from cmis:rm_clientMgtRetention. This type provides an additional property that defines the date when destruction process SHOULD be triggered:
A repository MAY define its own Destruction Retentions. A repository specific Destruction Retention MUST be derived from the type cmis:rm_destructionRetention.
The repository MAY round up the dates used for expiration and destruction dates according to its internal capabilities. A secondary type hierarchy for Client Managed Retentions could look like this (white boxes are CMIS defined types, orange boxes are repository specific):
Assignment rule:
Prolongation rule:
Whether a user is allowed to apply a Client Managed Retention or Destruction Retention is repository specific. If the user has no permission to do so, a permissionDenied exception MUST be thrown. In case of others constraints, a constraint exception MUST be thrown.
id
Value: cmis:rm_clientMgtRetention
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:rm_clientMgtRetention
displayName
Value: <repository-specific>
baseId
Value: cmis:secondary
parentId
Value: cmis:secondary
description
Value: <repository-specific>
creatable
Value: FALSE
fileable
Value: FALSE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: FALSE
controllableACL
Value: FALSE
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:rm_expirationDate | Expiration date. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | <repository-specific> | |
cmis:rm_startOfRetention | Start of retention. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository-specific> | |
Orderable: | <repository-specific> | |
id
Value: cmis:rm_destructionRetention
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:rm_destructionRetention
displayName
Value: <repository-specific>
baseId
Value: cmis:secondary
parentId
Value: cmis:rm_clientMgtRetention
description
Value: <repository-specific>
creatable
Value: FALSE
fileable
Value: FALSE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: FALSE
controllableACL
Value: FALSE
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:rm_destructionDate | Destruction date. | |
Property Type: | DateTime | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | single | |
Updatability: | readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | <repository-specific> | |
Orderable: | <repository-specific> | |
A Hold assures that a document can be restored to the state it was in when the hold has been applied (usually by protecting the document from being deleted or modified). Support for other objects than documents is repository specific.
If a repository supports holds, it exposes the secondary type cmis:rm_hold. This type defines the multi-valued property cmis:rm_holdIds which contains a list of identifiers for the affected litigations or audits.
As long as the property cmis:rm_holdIds is "not set", the document is not protected by a hold. To protect a document, this property must contain at least one value. The hold type CANNOT be removed from an object as long as the property cmis:rm_holdIds contains values.
A repository MAY define its own secondary types for holds with additional properties. Those types MUST be derived from cmis:rm_hold.
A secondary type hierarchy for holds could look like this (white boxes are CMIS defined types, orange boxes are repository specific):
Whether a user is allowed to apply a hold is repository-specific. If the user has no permission to do so, a permissionDenied exception MUST be thrown. In case of others constraints, a constraint exception MUST be thrown.
id
Value: cmis:rm_hold
localName
Value: <repository-specific>
localNamespace
Value: <repository-specific>
queryName
Value: cmis:rm_hold
displayName
Value: <repository-specific>
baseId
Value: cmis:secondary
parentId
Value: cmis:secondary
description
Value: <repository-specific>
creatable
Value: FALSE
fileable
Value: FALSE
queryable
Value: SHOULD be TRUE
controllablePolicy
Value: FALSE
controllableACL
Value: FALSE
includedInSupertypeQuery
Value: <repository-specific>
fulltextIndexed
Value: <repository-specific>
typeMutability.create
Value: <repository-specific>
typeMutability.update
Value: <repository-specific>
typeMutability.delete
Value: <repository-specific>
cmis:rm_holdIds | Hold Identifiers. | |
Property Type: | String | |
Inherited: | FALSE | |
Required: | FALSE | |
Cardinality: | multi | |
Updatability: | SHOULD be readwrite | |
Choices: | Not Applicable | |
Open Choice: | Not Applicable | |
Queryable: | SHOULD be TRUE | |
Orderable: | FALSE | |
The Services section of the CMIS specification defines a set of services that are described in a protocol/binding-agnostic fashion.
Every protocol binding of the CMIS specification MUST implement all of the methods described in this section or explain why the service is not implemented.
However, the details of how each service and operation is implemented will be described in those protocol binding specifications.
The following elements are common across many of the CMIS services.
All of the methods that allow for the retrieval of a collection of CMIS objects support
paging of their result sets except where explicitly stated otherwise. The following
pattern is used:
Input Parameters: | |
|
|
Output Parameters: | |
|
|
If the caller of a method does not specify a value for maxItems, then the repository MAY select an appropriate number of items to return, and MUST use the hasMoreItems output parameter to indicate if any additional results were not returned.
Repositories MAY return a smaller number of items than the specified value for maxItems. A repository SHOULD NOT throw an exception if maxItems exceeds the internally supported page size. It SHOULD return a smaller number of items instead.
Each binding will express the above in context and may have different mechanisms for communicating hasMoreItems and numItems.
Several CMIS services that return object information have the ability to return dependent object information as part of their response, such as the allowable actions for an object, rendition information, etc.
The CMIS service operations that support returning a result set of objects will include the ability to return the following object information:
This section describes the input parameter and output pattern for those services. All these input parameters are optional.
Description:
| |
All services that allow for the retrieval of properties for CMIS objects have a "property filter" as an optional parameter, which allows the caller to specify a subset of properties for objects that MUST be returned by the repository in the output of the operation. | |
Optional Input Parameter: | |
|
|
Unknown query names or query names that are not defined for the object-type SHOULD be ignored. For example, if getChildren is called with a filter that contains the property cmis:contentStreamMimeType, it SHOULD return all non-document objects without this property and SHOULD NOT return an error.
Description:
| |
Used to retrieve the relationships in which the object(s) are participating. | |
Optional Input Parameter: | |
|
|
Output Parameter for each object: | |
|
|
Description:
| |
Used to retrieve the policies currently applied to the object(s). | |
Optional Input Parameter: | |
|
|
Output Parameter for each object: | |
|
|
Description:
| |
Used to retrieve the renditions of the object(s). | |
Optional Input Parameter: | |
|
|
Output Parameter for each object: | |
|
|
An inclusion pattern allows: | |
|
|
Examples: | |
|
|
Description:
| |
Used to retrieve the ACLs for the object(s) described in the service response. | |
Optional Input Parameter: | |
|
|
Output Parameter for each object: | |
|
|
Description:
| |
Used to retrieve the allowable actions for the object(s) described in the service response. | |
Optional Input Parameter: | |
|
|
Output Parameter for each object: | |
|
|
Description:
| |
Used to define the order of the list of objects returned by getChildren and getCheckedOutDocs.
If the optional capability capabilityOrderBy is "none" and this parameter is set, the repository SHOULD return an invalidArgument error. If the optional capability capabilityOrderBy is "common" and this parameter contains a query name that is not in the set of common properties (see below), the repository SHOULD return an invalidArgument error. If a repository only supports a certain number of orderBy properties, it SHOULD ignore all additional properties. If this parameter contains a query name that is unknown or a query name that belongs to a property that is not queryable, the repository SHOULD ignore it. The query names of secondary type properties MUST follow this pattern: <secondaryTypeQueryName>.<propertyQueryName> |
|
Common CMIS properties:
| |
The following set of properties SHOULD be supported by the repository if the optional capability capabilityOrderBy is common or
custom.
|
|
Optional Input Parameter: | |
|
|
Example:
| |
cmis:baseTypeId,cmis:contentStreamLength DESC,cmis:name | |
The CMIS base object-type definitions include an opaque string cmis:changeToken property that a repository MAY use for optimistic locking and/or concurrency checking to ensure that user updates do not conflict.
If a repository provides a value for the cmis:changeToken property for an object, then all invocations of the "update" methods on that object (updateProperties, bulkUpdateProperties, setContentStream, appendContentStream, deleteContentStream, etc.) MUST provide the value of the cmis:changeToken property as an input parameter, and the repository MUST throw an updateConflictException if the value specified for the change token does NOT match the change token value for the object being updated.
The following sections list the complete set of exceptions that MAY be returned by a repository in response to a CMIS service method call.
The "Cause" field indicates the circumstances under which a repository SHOULD return a particular exception.
For each exception, the general intent is listed.
Those services which allow for the setting of ACLs MAY take the optional macro cmis:user which allows the caller to indicate the operation applies to the current authenticated user.
If the repository info provides a value for principalAnonymous, this value can be used to in an ACE to specify permissions for anonymous users.
If the repository info provides a value for principalAnyone, this value can be used to in an ACE to specify permissions for any authenticated user.
The Repository Services are used to discover information about the repository, including information about the repository and the object-types defined for the repository. Furthermore, it provides operations to create, modify and delete object-type definitions if that is supported by the repository.
Description: Returns a list of CMIS repositories available from this CMIS service endpoint.
Description: Returns information about the CMIS repository, the optional capabilities it supports and its access control information if applicable.
Note: The base type cmis:secondary MUST NOT be used here. Only primary base types can be in this list.
Description: Returns the list of object-types defined for the repository that are children of the specified type.
Description: Returns the set of the descendant object-types defined for the Repository under the specified type.
Notes:
The default value is repository specific and SHOULD be at least 2 or -1.
Description: Gets the definition of the specified object-type.
Description: Creates a new type definition that is a subtype of an existing specified parent type.
Notes: Only properties that are new to this type (not inherited) are passed to this service.
See section 2.1.10 Object-Type Creation, Modification and Deletion for further details.
Description: Updates a type definition.
Notes: If you add an optional property to a type in error. There is no way to remove it/correct it - without deleting the type. See section 2.1.10 Object-Type Creation, Modification and Deletion for further details.
Properties that are not changing MUST NOT be included, including any inherited property definitions.
For the properties that are being included, an entire copy of the property definition should be present (with the exception of the choice values – see special note), even values that are not changing.
Special note about choice values. There are only two types of changes permitted.
For any choice that is being added or having its display name changed, both the displayName and value MUST be present.
Description: Deletes a type definition.
Notes: If there are object instances present of the type being deleted then this operation MUST fail.
See sections 2.1.10 Object-Type Creation, Modification and Deletion for further details.
The Navigation Services are used to traverse the folder hierarchy in a CMIS repository, and to locate documents that are checked out.
Description: Gets the list of child objects contained in the specified folder.
Notes: If the repository supports the optional capability capabilityVersionSpecificFiling, then the repository MUST return the document versions filed in the specified folder. Otherwise, the latest version or the latest major version of the documents MUST be returned.
Description: Gets the set of descendant objects contained in the specified folder or any of its child-folders.
Notes:
The default value is repository specific and SHOULD be at least 2 or -1.
Description: Gets the set of descendant folder objects contained in the specified folder.
Notes:
The default value is repository specific and SHOULD be at least 2 or -1.
Description: Gets the parent folder object for the specified folder object.
The repository SHOULD return an object that is equal to the object returned by getObject with default parameters.
Description: Gets the parent folder(s) for the specified fileable object.
Description: Gets the list of documents that are checked out that the user has access to.
If specified, the repository MUST only return checked out documents that are child-objects of the specified folder.
If not specified, the repository MUST return checked out documents from anywhere in the repository hierarchy.
CMIS provides id-based CRUD (Create, Retrieve, Update, Delete) operations on objects in a repository.
Description: Creates a document object of the specified type (given by the cmis:objectTypeId property) in the (optionally) specified location.
Description: Creates a document object as a copy of the given source document in the (optionally) specified location.
Description: Creates a folder object of the specified type in the specified location.
Description: Creates a relationship object of the specified type.
Description: Creates a policy object of the specified type.
Description: Creates an item object of the specified type.
Description: Gets the list of allowable actions for an object (see section 2.2.1.2.6 Allowable Actions).
Description: Gets the specified information for the object.
Description: Gets the list of properties for the object.
Description: Gets the specified information for the object.
Description: Gets the content stream for the specified document object, or gets a rendition stream for a specified rendition of a document or folder object.
Notes: Each CMIS protocol binding MAY provide a way for fetching a sub-range within a content stream, in a manner appropriate to that protocol.
Description: Gets the list of associated renditions for the specified object. Only rendition attributes are returned, not rendition stream.
Description: Updates properties and secondary types of the specified object.
Notes:
Description: Updates properties and secondary types of one or more objects.
Notes:
Change tokens are optional. See section 2.2.1.3 Change Tokens.
Objects that have not been updated MUST NOT be returned. This service does not disclose why updates failed. Clients may call updateProperties for each failed object to retrieve individual exceptions.
Description: Moves the specified file-able object from one folder to another.
Description: Deletes the specified object.
Notes: If the object is a PWC the checkout is discarded. See section 2.1.13.5.3 Discarding Check out.
Description: Deletes the specified folder object and all of its child- and descendant-objects.
Notes:
If FALSE (default), then the repository SHOULD abort this method when it fails to delete a single child object or descendant object.
Description: Sets the content stream for the specified document object.
Notes: A repository MAY automatically create new document versions as part of this service operations. Therefore, the objectId output NEED NOT be identical to the objectId input.
If FALSE, then the repository MUST only set the input contentStream for the object if the object currently does not have a content stream.
Description: Appends to the content stream for the specified document object.
Notes:
Clients SHOULD always set this parameter but repositories SHOULD be prepared that clients don’t provide it.
Repositories may use this flag to trigger some sort of content processing. For example, only if isLastChunk is TRUE the repsoitory could generate renditions of the content.
Description: Deletes the content stream for the specified document object.
Notes: A repository MAY automatically create new document versions as part of this service method. Therefore, the obejctId output NEED NOT be identical to the objectId input.
The Multi-filing services are supported only if the repository supports the multifiling or unfiling optional capabilities (capabilityMultifiling). The Multi-filing Services are used to file/un-file objects into/from folders.
This service is NOT used to create or delete objects in the repository.
Description: Adds an existing fileable non-folder object to a folder.
Description: Removes an existing fileable non-folder object from a folder.
If no value is specified, then the repository MUST remove the object from all folders in which it is currently filed.
The Discovery Services are used to search for query-able objects within the repository.
Description: Executes a CMIS query statement against the contents of the repository.
If FALSE (default), then the repository MUST only include latest versions of documents in the query search scope.
If the repository does not support the optional capabilityAllVersionsSearchable capability, then this parameter value MUST be set to FALSE.
For query statements where the SELECT clause contains properties from only one virtual table reference (i.e. referenced object-type), any value for this enum may be used. If the SELECT clause contains properties from more than one table, then the value of this parameter MUST be none. Defaults to none.
If the SELECT clause contains properties from more than one table, then the value of this parameter MUST not be set.
For query statements where the SELECT clause contains properties from only one virtual table reference (i.e. referenced object-type), any value for this parameter may be used. If the SELECT clause contains properties from more than one table, then the value of this parameter MUST be "FALSE". Defaults to FALSE.
Each object result MUST include the following elements if they are requested:
Description: Gets a list of content changes. This service is intended to be used by search crawlers or other applications that need to efficiently understand what has changed in the repository. See section 2.1.15 Change Log.
Notes:
If not specified, then the repository MUST return the first change event recorded in the change log.
If FALSE (default), then the repository MUST NOT include the updated property values for "updated" change events. The single exception to this is that the property cmis:objectId MUST always be included.
If FALSE (default), then the repository MUST not include policy information.
The Versioning services are used to navigate or update a document version series. See section 2.1.13 Versioning.
Description: Create a private working copy (PWC) of the document. See section 2.1.13.5.1 Checkout.
FALSE if the content stream of the Private Working Copy is "not set".
Description: Reverses the effect of a check-out (checkOut). Removes the Private Working Copy of the checked-out document, allowing other documents in the version series to be checked out again. If the private working copy has been created by createDocument, cancelCheckOut MUST delete the created document. See section 2.1.13.5.3 Discarding Check out.
Description: Checks-in the Private Working Copy document. See section 2.1.13.5.4 Checkin.
Notes:
FALSE if the checked-in document object MUST NOT be a major version but a minor version.
Description: Get t