Package org.jitterbit.integration.data.validation

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


                Alert.error("The Schedule is invalid.", "Invalid Schedule");
            }
        }

        private boolean isValid() {
            ValidationResult result = schedule.validate(new ValidationContext() {

                @Override
                public IntegrationEntityLookup getDataStore() {
                    return null;
                }
View Full Code Here


    }

    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

            setMessage("Validating the email message");
            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;
            }
View Full Code Here

            fatal(SystemSource.SOURCE_FROM_PREVIOUS_OPERATION.getName() + " can only be used in a success operation.");
        }
    }

    private OperationChainModel getOperationChain() {
        ValidationContext context = collector.context();
        return new OperationChainModel(operation, context.getDataStore(), context.getDependencies());
    }
View Full Code Here

TOP

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

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.