Examples of TextDocumentId


Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

    private StructureEditor ldapEditor(DataStructure struct, SourceTarget st) {
        return new LdapStructureEditor((LdapStructure) struct, st, explorerSupport);
    }

    private StructureEditor textStructureEditor(SourceTarget st) {
        TextDocumentId id = (st == SourceTarget.Source) ? transformation.getSourceTextDocumentId()
                        : transformation.getTargetTextDocumentId();
        IntegrationProject project = ProjectUtils.getProject(transformation);
        TextDocument doc = project.getItemLookup().getEntity(id, TextDocument.class);
        return new TextStructureEditor(doc, st, explorerSupport);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

        }

        @Override
        public void apply(Transformation tf) {
            TextStructure struct = document.getDataStructure();
            TextDocumentId id = document.getID();
            if (sourceTarget == SourceTarget.Source) {
                tf.setInputStructure(struct);
                tf.setSourceTextDocumentId(id);
            } else {
                tf.setOutputStructure(struct);
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

    private void collectDocumentLinks() {
        if (message.getPayloadStructureType() != PayloadStructureType.TEXT) {
            return;
        }
        TextDocumentId docId = message.getPayloadTextDocumentId();
        if (docId != null) {
            TextDocument doc = lookup.getEntity(docId, TextDocument.class);
            if (doc != null) {
                links.add(new JmsMessageTextDocumentLink(doc, message));
            } else {
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     *            the <code>TextDocument</code> instance that defines the structure of the
     *            payload. If <code>null</code>, this <code>JmsMessage</code> will be in an
     *            invalid state, meaning it cannot be deployed to a server.
     */
    public void setPayloadStructure(TextDocument doc) {
        TextDocumentId newId = (doc != null) ? doc.getID() : null;
        TextDocumentId oldId = getPayloadTextDocumentId();
        boolean change = !KongaID.areEqual(newId, oldId) || (getPayloadStructureType() != PayloadStructureType.TEXT);
        XmlStructure oldXmlStructure = xmlPayloadStructure;
        setPayloadStructureImpl(newId);
        if (change) {
            firePropertyChange(PAYLOAD_STRUCTURE, (oldId != null) ? oldId : oldXmlStructure, newId);
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     *            the <code>XmlStructure</code> that defines the payload structure of this
     *            <code>JmsMessage</code>. If <code>null</code>, this <code>JmsMessage</code>
     *            will be invalid, meaning it cannot be deployed to a server.
     */
    public void setPayloadStructure(XmlStructure xml) {
        TextDocumentId docId = getPayloadTextDocumentId();
        boolean change = (xml != xmlPayloadStructure) || (getPayloadStructureType() != PayloadStructureType.XML);
        XmlStructure old = xmlPayloadStructure;
        setPayloadStructureImpl(xml);
        if (change) {
            firePropertyChange(PAYLOAD_STRUCTURE, (old != null) ? old : docId, xml);
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     */
    public TextDocumentId getPayloadTextDocumentId() {
        String s = getProperty(PAYLOAD_DOCUMENT_ID);
        if (s != null) {
            try {
                return new TextDocumentId(s);
            } catch (IllegalArgumentException ex) {
                // Just return null
            }
        }
        return null;
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     * @param id
     *            the ID of the source <code>TextDocument</code> in this transformation.
     * @see #getSourceTextDocumentId()
     */
    public void setSourceTextDocumentId(TextDocumentId id) {
        TextDocumentId old = getSourceTextDocumentId();
        if (!KongaID.areEqual(id, old)) {
            if (id == null) {
                setProperty(SOURCE_TEXT_DOC, "");
            } else {
                setProperty(SOURCE_TEXT_DOC, id.toString());
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     * @see #setSourceTextDocumentId(TextDocumentId)
     */
    public TextDocumentId getSourceTextDocumentId() {
        String id = getProperty(SOURCE_TEXT_DOC, "");
        try {
            return new TextDocumentId(id);
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     * @param id
     *            the ID of the target <code>TextDocument</code> in this transformation.
     * @see #getTargetTextDocumentId()
     */
    public void setTargetTextDocumentId(TextDocumentId id) {
        TextDocumentId old = getTargetTextDocumentId();
        if (!KongaID.areEqual(id, old)) {
            if (id == null) {
                setProperty(TARGET_TEXT_DOC, "");
            } else {
                setProperty(TARGET_TEXT_DOC, id.toString());
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.TextDocumentId

     * @see #setTargetTextDocumentId(TextDocumentId)
     */
    public TextDocumentId getTargetTextDocumentId() {
        String id = getProperty(TARGET_TEXT_DOC, "");
        try {
            return new TextDocumentId(id);
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
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.