}
return impl.getResult();
}
public ValidationStatus getStatus() {
ValidationStatus status = ValidationStatus.VALID;
// TODO: This can be done more efficiently by not building the complete list
// in collectEntities(), but rather iterating over the items so that we can stop
// as soon as we encounter an invalid item.
for (IntegrationEntity e : collectEntities()) {
ValidationStatus s = DefaultValidationModel.this.getStatus(e, false);
if (s == ValidationStatus.INVALID) {
return s;
} else if (s == ValidationStatus.WARNING) {
status = s;
}