cancel
Showing results for 
Search instead for 
Did you mean: 

taggable

newhere
Champ in-the-making
Champ in-the-making
Hello! I'm using OpenCmis to work with Alfresco 3.3. I want to be able to put tags to documents or folders and to query about those tags.
I'm able to look for the aspect taggable in that way:

objectdata.getProperties().getExtensions();

I don't know if there's a simpliest way to do it. Is it correct?


I really don't know how to make queries. If I do

session.query("select * from cmis:folder where cmis:name like '%myFolder%'", true);

I get main properties of the document but none extensions.

Doing that:

session.query("select * from cmis:folder where cm:taggable like '%myTag%'", true);

I get
Invalid column for cmis:folder.cm:taggable

I'm really confused and I haven't found much documentation. Any idea?
5 REPLIES 5

gclaussn
Champ in-the-making
Champ in-the-making
Hey, its me again.
I see you want to know alot of things, and you really want to understand it.

Maybe i have some information for you.

First of all it, i thin it is not possible to query aspects like cm:taggable in that way, because in the WHERE clause you can only use the properties of the types defined in the domain model (alfresco/model/cmisModel.xml) or in defined in an own custom model (extending cmis base types).
Also you should take a look a this http://wiki.alfresco.com/wiki/CMIS#Aspect_Support. There you can find information about the Alfresco-specific aspect support, which is not part of the CMIS Specification.

Thanks to you, i learned a new thing (this with getting the aspects, by reading the properties extensions). I hope it is implemented in my OpenCMIS snapshot, because it is already some days old.

best regards, gclaussn

newhere
Champ in-the-making
Champ in-the-making
Thanks, gclaussn!!!!. I've found the key!!

select d.*, o.* from cmis:document as d join cm:taggable o on d.cmis:objectid = o.cmis:objectid

I suppose it's a better way to look for the aspect taggable of a document than to look inside the extensions.

gclaussn
Champ in-the-making
Champ in-the-making
np,

I have a question to you. What does this query return as result? Objects, which has the aspect taggable or objects which are assigned to a special tag?
Maybe it is not working, because i'm running with 3.2 and CMIS query is not fully implemented.

Thanks in advance!

newhere
Champ in-the-making
Champ in-the-making
I get objects which has the aspect taggable.
I'm working to get tags from a specific object.

shambhavi
Champ in-the-making
Champ in-the-making
@newhere, did you find a solution how to get tags for specific object using cmis query?
Could you please help me as even I have similar requirement
thanks
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.