cancel
Showing results for 
Search instead for 
Did you mean: 

question about querying documents by properties

mgagnon
Champ in-the-making
Champ in-the-making
I need help understanding something.  How and where are the (non cmis specified) properties of a document defined.  I see that you can query a document using something like

SELECT cmis:name from sc:marketingDoc where sc:lastName = 'Smith'

So where is "sc:lastName" defined?  Would it be defined under <cmisSmiley Tongueroperties> in the sc:marketingDoc <entry>?

Something like
<cmisraSmiley Surprisedbject>
     <cmisSmiley Tongueroperties>
           <cmisSmiley TongueropertyString propertyDefinitionID="sc:lastName">

So I need to know where I can go find the properties of an object so I can specify the where clause of a query string.

Thanks
1 REPLY 1

alexh
Champ in-the-making
Champ in-the-making
Hi mgagnon,

I'm not sure if you already have the answer for your question.

The CMIS are trying to wrap all ECM specific models through their services, so if you need to know which additional properites
a document has, you should request the meta-model of the document referenced by the cmisSmiley SurprisedbjectTypeId (meta model id)
this Id can be used to query the repository for the coresponding meta-model.

Also all instances (=documents) of a meta-model should have all properties in their properties collection, which can be requested
by the cmisSmiley SurprisedbjectId from the ObjectServices of the CMIS provider.

regards,
alex