Search in sources :

Example 1 with DuplicateModelValidation

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());
}
Also used : ModelReferencesValidation(org.eclipse.vorto.repository.core.impl.validation.ModelReferencesValidation) TypeImportValidation(org.eclipse.vorto.repository.core.impl.validation.TypeImportValidation) DuplicateModelValidation(org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation) PostConstruct(javax.annotation.PostConstruct)

Example 2 with DuplicateModelValidation

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;
}
Also used : DuplicateModelValidation(org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation) BulkModelDuplicateIdValidation(org.eclipse.vorto.repository.core.impl.validation.BulkModelDuplicateIdValidation) BulkModelReferencesValidation(org.eclipse.vorto.repository.core.impl.validation.BulkModelReferencesValidation) LinkedList(java.util.LinkedList) IModelValidator(org.eclipse.vorto.repository.core.impl.validation.IModelValidator)

Aggregations

DuplicateModelValidation (org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation)2 LinkedList (java.util.LinkedList)1 PostConstruct (javax.annotation.PostConstruct)1 BulkModelDuplicateIdValidation (org.eclipse.vorto.repository.core.impl.validation.BulkModelDuplicateIdValidation)1 BulkModelReferencesValidation (org.eclipse.vorto.repository.core.impl.validation.BulkModelReferencesValidation)1 IModelValidator (org.eclipse.vorto.repository.core.impl.validation.IModelValidator)1 ModelReferencesValidation (org.eclipse.vorto.repository.core.impl.validation.ModelReferencesValidation)1 TypeImportValidation (org.eclipse.vorto.repository.core.impl.validation.TypeImportValidation)1