IntegrationProject project = ProjectUtils.getProject(e);
return project.getExtensionObject(ManagedProject.class);
}
private boolean validateItems(ManagedProject project, Collection<IntegrationEntity> items) {
EntityCollectionValidationResult result = validateImpl(project, items);
if (result.isFatal()) {
showInvalidItems(result);
return false;
} else if (result.status() == ValidationStatus.WARNING) {
EntityCollectionValidationResult warnings = DataValidationUtils.extractWarningsOnly(result);
return warningsStrategy.allowDeploy(warnings);
}
return true;
}