title: How can I get both Folders and Documents with one Cmis query
body: <p>By using Apache Cmis query, if I understand correctly, you can get either</p>
  
  <ol>
  <li>a List of Cmis Folders (SELECT * FROM cmis:folder WHERE...)</li>
  <li>a List of Cmis Documents (SELECT * FROM cmis:document WHERE...)</li>
  </ol>
  
  <p>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.</p>
  
  <p>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</p>
  
  <p>EDIT : Just to make sure I made myself clear, I need to</p>
  
  <ol>
  <li>Use the query Function, as I need to filter my results by using a specific custom aspect</li>
  <li>Use Pagination, because even after filtering, the results (Folder Children) can be up to hundreds</li>
  </ol>