Package org.jitterbit.integration.data.entity.operation.pipeline

Examples of org.jitterbit.integration.data.entity.operation.pipeline.RemoveActivityVetoException


    }

    @Override
    public void checkRemovalAllowed(PipelineActivity activity) throws RemoveActivityVetoException {
        if (activity instanceof WebServiceCallActivity) {
            throw new RemoveActivityVetoException("The Web Service Call cannot be removed from a hosted web service operation");
        } else if (activity instanceof TransformationActivity) {
            PipelineActivity prev = pipeline.getPreviousActivity(activity);
            if (prev.getType() == PipelineActivityType.WEBSERVICECALL) {
                throw new RemoveActivityVetoException("The first Transformation cannot be removed");
            }
        }
    }
View Full Code Here


    }

    @Override
    public void checkRemovalAllowed(PipelineActivity activity) throws RemoveActivityVetoException {
        if (activity instanceof WebServiceCallActivity) {
            throw new RemoveActivityVetoException("The Web Service Call cannot be removed from a web service operation");
        } else if (activity instanceof TransformationActivity) {
            checkTransformation(activity);
        }
    }
View Full Code Here

    }

    private void checkTransformation(PipelineActivity activity) throws RemoveActivityVetoException {
        TransformationActivity tf = (TransformationActivity) activity;
        if (isRequestTransformation(tf)) {
            throw new RemoveActivityVetoException(
                            "The request transformation cannot be removed from a web service operation");
        } else if (isResponseTransformation(tf)) {
            throw new RemoveActivityVetoException(
                            "The response transformation cannot be removed from a web service operation");
        }
    }
View Full Code Here

public final class TransformationRemovingPolicy implements ActivityRemovingPolicy {

    @Override
    public void checkRemovalAllowed(PipelineActivity entry) throws RemoveActivityVetoException {
        if (entry.getType() == PipelineActivityType.TRANSFORMATION) {
            throw new RemoveActivityVetoException("The Transformation cannot be removed from an Operation of type Transformation.");
        }
    }
View Full Code Here

    }

    @Override
    public void checkRemovalAllowed(PipelineActivity entry) throws RemoveActivityVetoException {
        if (isLastScript()) {
            throw new RemoveActivityVetoException("The last Script cannot be removed from a script operation");
        }
    }
View Full Code Here

public class ArchiveRemovingPolicy implements ActivityRemovingPolicy {

    @Override
    public void checkRemovalAllowed(PipelineActivity entry) throws RemoveActivityVetoException {
        if (entry instanceof SourceActivity){
            throw new RemoveActivityVetoException("The Source cannot be removed from an Archive operation.");
        } else if (entry instanceof TargetActivity) {
            throw new RemoveActivityVetoException("The Target cannot be removed from an Archive operation.");
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.operation.pipeline.RemoveActivityVetoException

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.