AnsweredAssumed Answered

How to check if object is versionable?

Question asked by mariusz.pala on Jun 24, 2010
Latest reply on Jul 1, 2010 by mariusz.pala
Hi,

I want to check if object is versionable. I'm able to create both types of documents, but after that I'm not able to check whether the document is versionable or not.
I thouhgt that maybe if cmis:versionSeriesId is null then it means the document is not versionable, but I was wrong. Once I check-out and check-in not-versioned document, this attribute has a value.
So another way is checking whether the object has applied Versionable aspect.
I checked in Alfresco Explorer:
Aspects
{http://www.alfresco.org/model/content/1.0}auditable
{http://www.alfresco.org/model/system/1.0}referenceable
{http://www.alfresco.org/model/content/1.0}titled
{http://www.alfresco.org/model/content/1.0}lockable
{http://www.alfresco.org/model/content/1.0}versionable

But CMIS returns me only:
P:cm:lockable
P:cm:titled

I want to display a valid checkin dialog, but apparently there is no way to do that :)
Can anyone help me?

Thanks in advance,
Mariusz

Outcomes