By using Apache Cmis query, if I understand correctly, you can get either
- a List of Cmis Folders (SELECT * FROM cmis:folder WHERE...)
- a List of Cmis Documents (SELECT * FROM cmis:document WHERE...)
But what I need, is a List of cmisObjects. I need this abstraction, because I want to get all the children (Folder or Document) of the selected Parent Folder.
Using 2 queries (1 for each type) is not an option, as I also have to use paging (using OperationContext.setMaxItemsPerPage) over the query results
EDIT : Just to make sure I made myself clear, I need to
- Use the query Function, as I need to filter my results by using a specific custom aspect
- Use Pagination, because even after filtering, the results (Folder Children) can be up to hundreds