Heniek
Heniek

Reputation: 573

Create documents in CMIS

Could you tell me if there is any possibility to create documents which parent would be another document.

ObjectId parentId = session.createObjectId(someDocumentStringId);
session.createDocument(properties, parentId, stream, VersioningState.None);

Now I get error: Operation not supported by the repository for this object!

Upvotes: 0

Views: 245

Answers (1)

Florian Müller
Florian Müller

Reputation: 3235

Documents are not containers in CMIS. Only a folder can be a parent of a document.

Have a look at CMIS relationships. They may solve your problem.

Upvotes: 1

Related Questions