Examples of MappingTreeStructure


Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

    }
   
    private void checkCache() {
        Transformation tf = invoker.getTransformation();
        try {
            MappingTreeStructure inputJtr = cache.getInputStructure(tf.getID());
            MappingTreeStructure outputJtr = cache.getOutputStructure(tf.getID());
            if (inputJtr != null && !inputJtr.outOfDate()) {
                setInputJtr(inputJtr);
            }
            if (outputJtr != null && !outputJtr.outOfDate()) {
                setOutputJtr(outputJtr);
            }
        } catch (DataCacheException e) {
            cache.delete(tf.getID());
        }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

    private class Worker implements ApplicationWorker.SafeRunnable {

        @Override
        public void run() {
            try {
                MappingTreeStructure struct = getMappingStructure();
                if (struct != null) {
                    File file = createFile(struct);
                    XmlFileViewer.getViewer(appWin).viewFile(file);
                } else {
                    Alert.info("There is no structure data available for viewing.", "No Structure Data");
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

    }
   
    private void loadRequestAndResponseStructures() {
        try {
            WebServiceCall ws = getObject();
            final MappingTreeStructure request = structureCache.getInputStructure(ws.getID());
            final MappingTreeStructure response = structureCache.getOutputStructure(ws.getID());
            if (request == null || response == null) {
                refreshTreeStructures();
            } else {
                WebServiceCallStructures structures = new WebServiceCallStructures() {
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

     *            cancels the request
     * @return the new <code>MappingTreeStructure</code>. <code>null</code> is return if an error occurs
     * or if the user cancels the request.
     */
    public MappingTreeStructure refreshInputStructure(Transformation tf, CallbackResult callback) {
        MappingTreeStructure input = RefreshStructuresJob.refreshInput(tf, callback, progressMonitors, logger);
        if (input != null) {
            tf.setInputMappingStructure(input);
            cacheInputStructure(tf, input);
        }
        return input;
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

     *            cancels the request
     * @return the new <code>MappingTreeStructure</code>s. <code>null</code> is return if an
     *         error occurs or if the user cancels the request.
     */
    public MappingTreeStructure refreshOutputStructure(Transformation tf, CallbackResult callback) {
        MappingTreeStructure output = RefreshStructuresJob.refreshOutput(tf, callback, progressMonitors, logger);
        if (output != null) {
            tf.setOutputMappingStructure(output);
            cacheOutputStructure(tf, output);
        }
        return output;
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

            RefreshStructuresJob job = new RefreshStructuresJob(tf, cb, true, true, logger);
            for (UiJobProgressMonitor m : monitors) {
                job.addProgressMonitor(m);
            }
            job.submit();
            MappingTreeStructure input = job.getInputStructure();
            MappingTreeStructure output = job.getOutputStructure();
            return (input != null && output != null) ? new MappingTreeStructure[] { input, output } : null;
        }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

       
        private CROM_Tree findCachedTree() {
            try {
                ManagedProject mp = ProjectUtils.getManagedProject(tx);
                InputAndOutputMappingTreeStructureCache cache = mp.getTransformationMappingStructureCache();
                MappingTreeStructure jtr = cache.getInputStructure(tx.getID());
                if (jtr != null) {
                    return CROM_Tree.fromMappingStructure(jtr);
                }
            } catch (CromTreeException e) {
                ErrorLog.log(getClass(), "Error converting a mapping structure to a CROM tree.", e);
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

            jtrFile.setTransformationGuid(tran.getID().toString());
            jtrFile.setSourceJtrZippedBase64(null);
            jtrFile.setTargetJtrZippedBase64(null);

            if (doSourceStructure) {
                MappingTreeStructure input = m_transformationStructureCache.getInputStructure(tran.getID());
                if (input != null) {
                    jtrFile.setSourceJtrZippedBase64(JitterbitServerEncoding.deflateAndBase64EncodeString(input
                                    .getString()));
                } else {
                    jtrFile.setSourceJtrZippedBase64(GENERATE_JTR_TAG);
                }
            }
            if (doTargetStructure) {
                MappingTreeStructure output = m_transformationStructureCache.getOutputStructure(tran.getID());
                if (output != null) {
                    jtrFile.setTargetJtrZippedBase64(JitterbitServerEncoding.deflateAndBase64EncodeString(output
                                    .getString()));
                } else {
                    jtrFile.setTargetJtrZippedBase64(GENERATE_JTR_TAG);
                }
            }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

          field.setDefaultValue(f.defaultValue);
          field.getExtension().setFormat(f.format);
          field.getExtension().setFieldPos((short)f.getBeginPosition());
          field.getExtension().setFieldLength((short)f.getLength());
        }
        MappingTreeStructure structure = new CromBasedMappingTreeStructure(root, new CROMHeader("Text"));
        if (callback != null) {
            callback.succeeded(structure);
        }
        return structure;
    }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.MappingTreeStructure

                ext.setFieldPos((short)f.getBeginPosition());
                ext.setFieldLength((short)f.getLength());
              }
            }
        }
        MappingTreeStructure structure = new CromBasedMappingTreeStructure(root, new CROMHeader("Text"));
        if (callback != null) {
            callback.succeeded(structure);
        }
        return structure;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.