class ComputeInheritedRulesInvalidatorPlugin extends ActionHandler {

    @Override
    public List<ItemStatus> executeList(WorkerParameters workerParameters, HandlerIO handler) {
        LOGGER.debug(String.format("executeList from plugin '%s'", PLUGIN_NAME));
        List<String> units = workerParameters.getObjectNameList();

        UpdateMultiQuery update = new UpdateMultiQuery();
        try(MetaDataClient mdClient = metaDataClientFactory.getClient()) {
            update.addRoots(units.toArray(new String[0]));

            update.addActions(
                set(VitamFieldsHelper.validComputedInheritedRules(), false),
                unset(VitamFieldsHelper.computedInheritedRules())
            );
            RequestResponse<JsonNode> requestResponse = mdClient.updateUnitBulk(update.getFinalUpdate());
            if(!requestResponse.isOk()) {
                throw new ProcessingException("error during bulk update");
            }
        } catch (InvalidCreateOperationException | InvalidParseOperationException | MetaDataException e) {
            throw new ProcessingException(e);
        }

        return buildBulkItemStatus(workerParameters, PLUGIN_NAME, StatusCode.OK);
    }

    public  ComputeInheritedRulesInvalidatorPlugin();
    @VisibleForTesting  ComputeInheritedRulesInvalidatorPlugin(MetaDataClientFactory metaDataClientFactory);

}