Package org.jitterbit.integration.data.entity.id

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


            }
            IntegrationEntityId textDocId = getTextDocumentId();
            if (textDocId != null) {
                return getEntityName(textDocId);
            }
            JmsMessageId jmsId = getJmsMessageId();
            if (jmsId != null) {
                return "[JMS] " + getEntityName(jmsId);
            }
            DataStructure structure = getDataStructure();
            if (structure != null) {
View Full Code Here


    private void setSourceMessage(Transformation tf) {
        JmsMessage old = sourceMessage;
        if (tf == null) {
            sourceMessage = null;
        } else {
            JmsMessageId id = tf.getSourceJmsMessageId();
            sourceMessage = dataLookup.getEntity(id, JmsMessage.class);
        }
        if (old != sourceMessage) {
            changeSupport.firePropertyChange(SOURCE_MESSAGE, old, sourceMessage);
        }
View Full Code Here

    private boolean isJms() {
        return getJmsMessageId() != null;
    }

    private JmsMessageId getJmsMessageId() {
        JmsMessageId id = (m_where == c_TreeMapperTarget) ? m_TreeMapper.m_Transformation.getTargetJmsMessageId()
                        : m_TreeMapper.m_Transformation.getSourceJmsMessageId();
        return id;
    }
View Full Code Here

    private Collection<MessageProperty> getJmsStandardProperties() {
        return StandardProperties.getProperties();
    }

    private MessagePropertiesDescriptor getJmsUserDefinedProperties() {
        JmsMessageId id = getJmsMessageId();
        if (id == null) {
            // The transformation does not use JMS as source.
            return null;
        }
        IntegrationProject project = ProjectUtils.getProject(m_TreeMapper.getTransformation());
View Full Code Here

     */
    public JmsMessageId getSourceJmsMessageId() {
        String s = getProperty(SOURCE_JMS_MESSAGE_ID);
        if ((s != null) && (s.length() > 0)) {
            try {
                return new JmsMessageId(s);
            } catch (IllegalArgumentException ex) {
                ex.printStackTrace();
            }
        }
        return null;
View Full Code Here

     * @param id
     *            the <code>JmsMessageId</code> of the source JMS message, or <code>null</code>
     *            if this transformation does not use a JMS message as source.
     */
    public void setSourceJmsMessage(JmsMessageId id) {
        JmsMessageId old = getSourceJmsMessageId();
        boolean differs = !KongaID.areEqual(old, id);
        setProperty(SOURCE_JMS_MESSAGE_ID, (id != null) ? id.toString() : null);
        if (differs) {
            firePropertyChange(SOURCE_JMS_MESSAGE_ID, old, id);
        }
View Full Code Here

     */
    public JmsMessageId getTargetJmsMessageId() {
        String s = getProperty(TARGET_JMS_MESSAGE_ID);
        if ((s != null) && (s.length() > 0)) {
            try {
                return new JmsMessageId(s);
            } catch (IllegalArgumentException ex) {
                ex.printStackTrace();
            }
        }
        return null;
View Full Code Here

     * @param id
     *            the <code>JmsMessageId</code> of the target JMS message, or <code>null</code>
     *            if this transformation does not use a JMS message as target.
     */
    public void setTargetJmsMessage(JmsMessageId id) {
        JmsMessageId old = getSourceJmsMessageId();
        boolean differs = !KongaID.areEqual(old, id);
        setProperty(TARGET_JMS_MESSAGE_ID, (id != null) ? id.toString() : null);
        if (differs) {
            firePropertyChange(TARGET_JMS_MESSAGE_ID, old, id);
        }
View Full Code Here

            outputStructure = doc.getDataStructure();
        }
    }

    private void collectJmsMessageLinks() {
        JmsMessageId srcMsgId = transformation.getSourceJmsMessageId();
        JmsMessageId tgtMsgId = transformation.getTargetJmsMessageId();
        if (srcMsgId == null && tgtMsgId == null) {
            return;
        }
        TransformationJmsMessageLinkFactory linkFactory = new TransformationJmsMessageLinkFactory(transformation,
                dataLookup);
View Full Code Here

        // (or getOutputLink) will serve the purpose.
        return getInputLink();
    }

    public EntityLink getInputLink() {
        JmsMessageId msgId = transformation.getSourceJmsMessageId();
        if (msgId != null) {
            JmsMessage msg = dataLookup.getEntity(msgId, JmsMessage.class);
            if (msg != null) {
                return new StrongEntityLink(msg, transformation);
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.JmsMessageId

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.