What is the best way to retrieve nodes with specific category within a site with java code ?
I had thought of separate lucene queries one behind the other , the first query to retrieve all nodes with that category and the second to analyze if the nodes in the first query are learners of the site node.
The queries seem a bit cumbersome to me and I was wondering if there was a smarter method or some alfresco service that I missed.
If anyone has any suggestions let me know.
Use Alfresco's Java API: The Java-backed webscripts allow you to run Java code that can leverage Alfresco's services. FQL (Alfresco Full Text Query Language): FQL is powerful and allows you to combine multiple conditions. It might let you retrieve nodes with a specific category within a site in one query instead of chaining two Lucene queries. NodeService & SearchService: Use NodeService to fetch properties or child associations and SearchService to execute your queries. Use CMIS: Alfresco supports CMIS (Content Management Interoperability Services). You can use CMIS queries to fetch nodes based on conditions.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.