PIM-2872 : add getAllChildrenIds method in category repository

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | Y (partially)
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | Y
| Checkstyle issues?   | N
| Changelog updated?   | N
| Fixed tickets        | PIM-2872 (partially)
| Doc PR               |