private Runnable update(final FindMetaCriteria criteria,
                            final String text,
                            final Status currentStatus,
                            final Status newStatus) {
        return () -> {
            restFactory
                    .create(META_RESOURCE)
                    .method(res -> res.updateStatus(new UpdateStatusRequest(criteria, currentStatus, newStatus)))
                    .onSuccess(result ->
                            AlertEvent.fireInfo(
                                    AbstractMetaListPresenter.this,
                                    text + " " + result + " record" + ((result.longValue() > 1)
                                            ? "s"
                                            : ""),
                                    this::refresh))
                    .taskMonitorFactory(getView())
                    .exec();
        };
    }
@return The effective criteria taking into account the active filter and any
row selections.
stroom-core-client/src/main/java/stroom/data/client/presenter/AbstractMetaListPresenter.java