Lucene query to list custom content type from alfresco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2011 07:30 AM
Hi,
How to get the list of all the content type from alfresco using lucene.
for ex. I have list of type like :
Article
Content
GeneralImage
SupplierInvoice
Visitorsfeedback.
I want to list out all type how to achieve that using lucene.
please provide the lucene query.
waiting for your valuable response.
Thanks in advance…
How to get the list of all the content type from alfresco using lucene.
for ex. I have list of type like :
Article
Content
GeneralImage
SupplierInvoice
Visitorsfeedback.
I want to list out all type how to achieve that using lucene.
please provide the lucene query.
waiting for your valuable response.
Thanks in advance…
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2011 03:58 AM
You can't get these information using Lucene, because these are not content but model.
To retrieve all the information about the content model you have to use the DictionaryService that allows you to get all the custom content model structures (types, aspects, properties and associations).
The DictionaryService is one of the services exposed by the Alfresco Java API (FoundationAPI), if you are using the Web Services API of Alfresco you could use this service using the Dictionary Web Service:
http://wiki.alfresco.com/wiki/Dictionary_Web_Service
Hope this helps.
To retrieve all the information about the content model you have to use the DictionaryService that allows you to get all the custom content model structures (types, aspects, properties and associations).
The DictionaryService is one of the services exposed by the Alfresco Java API (FoundationAPI), if you are using the Web Services API of Alfresco you could use this service using the Dictionary Web Service:
http://wiki.alfresco.com/wiki/Dictionary_Web_Service
Hope this helps.
