Package org.jitterbit.integration.data.entity

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


    }

    public EntityLink getOutputLink() {
        TextDocumentId docId = transformation.getTargetTextDocumentId();
        if (docId != null) {
            TextDocument doc = dataLookup.getEntity(docId, TextDocument.class);
            if (doc != null) {
                return new StrongEntityLink(doc, transformation);
            }
            LinkUtils.logMissingLink(transformation, EntityType.Document, docId);
        }
View Full Code Here


    }

    private void replaceTextDocuments() {
        TextDocumentId id = tf.getSourceTextDocumentId();
        if (id != null) {
            TextDocument replacement = (TextDocument) service.getReplacement(id);
            if (replacement != null) {
                tf.setSourceTextDocumentId(replacement.getID());
                tf.setInputStructure(replacement.getDataStructure());
            }
        }
        id = tf.getTargetTextDocumentId();
        if (id != null) {
            TextDocument replacement = (TextDocument) service.getReplacement(id);
            if (replacement != null) {
                tf.setTargetTextDocumentId(replacement.getID());
                tf.setOutputStructure(replacement.getDataStructure());
            }
        }
    }
View Full Code Here

        if (docId == null) {
            throw new WizardPageException(this, "The selected JMS message is defined to have a TEXT payload, " +
                    "but no text structure has been assigned to it. Please revisit the definition for the " +
                    "selected JMS message.");
        }
        TextDocument doc = lookupTextDocument(docId);
        if (doc == null) {
            throw new WizardPageException(this, "The selected JMS message is defined to have a TEXT payload, " +
                "but the system cannot find the defined text structure. Please revisit the definition for the " +
                    "selected JMS message.");
        }
        return doc.getDataStructure();
    }
View Full Code Here

        try {
            docId = new TextDocumentId(p.getString(DOC_ID));
        } catch (RuntimeException ex) {
            throw new RuntimeException("Invalid persistor: missing or invalid DOC_ID field");
        }
        TextDocument doc = lookup.getEntity(docId, TextDocument.class);
        if (doc == null) {
            throw new RuntimeException("The TextDocument with ID " + docId + " could not be found");
        }
        return doc.getDataStructure();
    }
View Full Code Here

TOP

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

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.