use of com.evolveum.midpoint.ninja.util.OperationStatus in project midpoint by Evolveum.
the class DeleteRepositoryAction method deleteByFilter.
private void deleteByFilter(ObjectQuery query) throws SchemaException {
OperationResult result = new OperationResult(OPERATION_DELETE);
OperationStatus operation = new OperationStatus(context, result);
operation.start();
log.info("Starting delete");
ObjectTypes type = options.getType();
if (type != null) {
deleteByFilter(type, query, operation, result);
} else {
for (ObjectTypes t : ObjectTypes.values()) {
if (Modifier.isAbstract(t.getClassDefinition().getModifiers())) {
continue;
}
deleteByFilter(t, query, operation, result);
}
}
operation.finish();
handleResultOnFinish(operation, "Delete finished");
}
Aggregations