Reputation: 573
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
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