use of org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation in project vorto by eclipse.
the class JcrModelRepository method createValidators.
@PostConstruct
public void createValidators() {
this.validators.add(new DuplicateModelValidation(this));
this.validators.add(new ModelReferencesValidation(this));
this.validators.add(new TypeImportValidation());
}
use of org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation in project vorto by eclipse.
the class BulkUploadHelper method constructBulkUploadValidators.
private List<IModelValidator> constructBulkUploadValidators(Set<ModelInfo> modelResources) {
List<IModelValidator> bulkUploadValidators = new LinkedList<IModelValidator>();
bulkUploadValidators.add(new DuplicateModelValidation(this.repositoryService));
bulkUploadValidators.add(new BulkModelDuplicateIdValidation(this.repositoryService, modelResources));
bulkUploadValidators.add(new BulkModelReferencesValidation(this.repositoryService, modelResources));
return bulkUploadValidators;
}
Aggregations