PIM-2860 : add a getProductIdsInCategory method to ease overriding

| 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-2860 (partially)
| Doc PR               |