Package org.jitterbit.integration.data.validation

Examples of org.jitterbit.integration.data.validation.ValidationResult


    private EntityCollectionValidationResult validateImpl(ManagedProject project,
                                                          Collection<IntegrationEntity> itemsToValidate) {
        EntityCollectionValidationResultBuilder resultBuilder = EntityCollectionValidationResultBuilder.newBuilder();
        ValidationContext context = new ProjectValidationContext(project);
        for (IntegrationEntity e : itemsToValidate) {
            ValidationResult r = e.validate(context);
            resultBuilder.add(e, r);
        }
        return resultBuilder.getResult();
    }
View Full Code Here


            ManagedProject project = ProjectUtils.getManagedProject(email);
            if (project == null) {
                throw new RuntimeException("The email must belong to a project");
            }
            ValidationContext context = new ProjectValidationContext(project);
            ValidationResult result = email.validate(context);
            if (result.isFatal()) {
                NonBlockingAlert.error("The email definition is invalid.", "Cannot Send Test Email");
                return false;
            }
            return true;
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.validation.ValidationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.