class PurgeAccessionRegisterUpdatePlugin extends ActionHandler {

    @Override
    public ItemStatus execute(WorkerParameters param, HandlerIO handler)
        throws ProcessingException {

        try {

            updateAccessionRegister(param);

            LOGGER.info("Purge accession register update succeeded");
            return buildItemStatus(actionId, StatusCode.OK, null);

        } catch (ProcessingStatusException e) {
            LOGGER.error(String.format(
                "Purge accession register update failed with status [%s]", e.getStatusCode()), e);
            return buildItemStatus(actionId, e.getStatusCode(),
                e.getEventDetails());
        }
    }

    public  PurgeAccessionRegisterUpdatePlugin(String actionId, LogbookTypeProcess logbookTypeProcess);
    @VisibleForTesting protected  PurgeAccessionRegisterUpdatePlugin(String actionId, LogbookTypeProcess logbookTypeProcess,
        AdminManagementClientFactory adminManagementClientFactory);

}