This operation should generate a core query depending on the following parameters:
- a query is given => build a core document page provider from it
- a provider name is given => query the page provider service to get it (assuming it returns a list of documents)
- no query or provider name is given => perform a query on all docs user has access to