Allow user to alter query, idx before executre a batch actions

|      Q      |      A       |
------------ | -----------
| Bug fix?	|       no    |
| New feature?	| yes |
| BC breaks?	| no |
| Deprecations? |no |
| Tests pass? |yes |
| Fixed tickets	| n/a|
| Doc PR	| n/a|

My need: when I apply a batch delete action on my entities, I need to check a status field in one of my related entity, if those field contains "online", I need to duplicate all of the entities with the same related entity (Version) and apply the batch action to the new entities.
Currently the only way to do that is to redefine the batchAction method and to call my method in this action.