HIERARCHYM-3: Exclude from the hierarchy display a list of spaces given by parameter

(cherry picked from commit 8711dbd514b3390646f46ed25f1dae36d888e90e)
HIERARCHYM-4: Display documents from a list given by parameter

(cherry picked from commit eeddeb5aec65653eecf87278081fa0c8ec1725dd)