Search in sources :

Example 1 with BulkModelDuplicateIdValidation

use of org.eclipse.vorto.repository.core.impl.validation.BulkModelDuplicateIdValidation 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

LinkedList (java.util.LinkedList)1 BulkModelDuplicateIdValidation (org.eclipse.vorto.repository.core.impl.validation.BulkModelDuplicateIdValidation)1 BulkModelReferencesValidation (org.eclipse.vorto.repository.core.impl.validation.BulkModelReferencesValidation)1 DuplicateModelValidation (org.eclipse.vorto.repository.core.impl.validation.DuplicateModelValidation)1 IModelValidator (org.eclipse.vorto.repository.core.impl.validation.IModelValidator)1