Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.WebServiceCall


        }

        @Override
        public boolean apply(IntegrationEntity entity) {
            if (entity instanceof WebServiceCall) {
                WebServiceCall wsCall = (WebServiceCall) entity;
                return isMatchWithRequestTransformation(wsCall) && isMatchWithResponseTransformation(wsCall);
            }
            return false;
        }
View Full Code Here


        Transformation request = browser.getRequest();
        if (request != null) {
            funcs.add(request);
            tfId = request.getID();
        }
        WebServiceCall wsCall = browser.getWebServiceCall();
        if (wsCall != null) {
            funcs.add(wsCall);
        }
        Transformation response = browser.getResponse();
        if (response != null) {
View Full Code Here

        if (input == null) {
            return;
        }
        switch (input.getStructureType()) {
        case WebServiceRequest: {
            WebServiceCall replacement = replaceWebServiceCall((WebServiceStructure) input);
            tf.setInputStructure(replacement.getInputStructure());
            break;
        }
        case WebServiceResponse:{
            WebServiceCall replacement = replaceWebServiceCall((WebServiceStructure) input);
            tf.setInputStructure(replacement.getOutputStructure());
            break;
        }
        case LDAP: {
            LdapStructure ldapStruct = (LdapStructure) input;
            SourceId ldapSourceId = ldapStruct.getLdapLocation().getSourceId();
            Source replacement = (Source) service.getReplacement(ldapSourceId);
            if (replacement != null) {
                tf.setSourceId(replacement.getID());
                ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
            }
            break;
        }
        case Database: {
            DatabaseStructure dbStruct = (DatabaseStructure) input;
            SourceId dbSourceId = dbStruct.getSourceId();
            Source replacement = (Source) service.getReplacement(dbSourceId);
            if (replacement != null) {
                tf.setSourceId(replacement.getID());
                dbStruct.setSourceId(replacement.getID());
                dbStruct.setDbLocation((DatabaseLocation) replacement.getLocation());
            }
            break;
        }
        default:
            // No processing needed
View Full Code Here

        if (output == null) {
            return;
        }
        switch (output.getStructureType()) {
        case WebServiceRequest: {
            WebServiceCall replacement = replaceWebServiceCall((WebServiceStructure) output);
            tf.setOutputStructure(replacement.getInputStructure());
            break;
        }
        case WebServiceResponse:{
            WebServiceCall replacement = replaceWebServiceCall((WebServiceStructure) output);
            tf.setOutputStructure(replacement.getOutputStructure());
            break;
        }
        case LDAP: {
            LdapStructure ldapStruct = (LdapStructure) output;
            TargetId targetId = ldapStruct.getLdapLocation().getTargetId();
            Target replacement = (Target) service.getReplacement(targetId);
            if (replacement != null) {
                tf.setTargetId(replacement.getID());
                ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
            }
            break;
        }
        case Database: {
            DatabaseStructure dbStruct = (DatabaseStructure) output;
            TargetId targetId = dbStruct.getTargetId();
            Target replacement = (Target) service.getReplacement(targetId);
            if (replacement != null) {
                tf.setTargetId(replacement.getID());
                dbStruct.setTargetId(replacement.getID());
                dbStruct.setDbLocation((DatabaseLocation) replacement.getLocation());
            }
            break;
        }
        default:
            // No processing needed
View Full Code Here

        this.transformation = tf;
        this.dataLookup = dataLookup;
    }

    public List<? extends EntityLink> getLinks() {
        WebServiceCall inputWs = getWebServiceFromStructure(transformation.getInputStructure());
        WebServiceCall outputWs = getWebServiceFromStructure(transformation.getOutputStructure());
        if (inputWs == null && outputWs == null) {
            return null;
        }
        List<EntityLink> links = Lists.newArrayList();
        if (inputWs != null) {
View Full Code Here

        try {
            id = new WebServiceCallId(p.getString(WSCALL_ID));
        } catch (RuntimeException ex) {
            throw new RuntimeException("Invalid persistor: missing or invalid WSCALL_ID field");
        }
        WebServiceCall wsCall = lookup.getEntity(id, WebServiceCall.class);
        if (wsCall == null) {
            throw new RuntimeException("The WebServiceCall with ID " + id + " could not be found");
        }
        return wsCall;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.WebServiceCall

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.