Package org.jitterbit.integration.data.entity

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


    private void addModelListener(TransformationChainModel model) {
        model.addPropertyChangeListener(TransformationChainModel.SOURCE_MESSAGE, new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                JmsMessage msg = (JmsMessage) evt.getNewValue();
                selector.setMessage(msg);
                if (dialog != null) {
                    dialog.setTitle(PackageResources.PropertiesDialog.getTitle(msg));
                }
            }
View Full Code Here


        changeSupport.firePropertyChange(TARGET_FILTER, null, targetFilter);
        setSourceMessage(tf);
    }

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

    private void updateEnabledState() {
        setEnabled(getEnabledState());
    }
   
    private boolean getEnabledState() {
        JmsMessage message = model.getSourceMessage();
        Source source = model.getSource();
        if ((message != null) && (source != null)) {
            DataLocation loc = source.getLocation();
            if (loc != null) {
                return loc.getDataLocationType() == DataLocationType.JMS;
View Full Code Here

    }

    @Override
    protected void mainObjectDeleted() {
        try {
            JmsMessage msg = (JmsMessage) getDependantObject();
            msg.setPayloadStructure((TextDocument) null);
        } finally {
            super.mainObjectDeleted();
        }
    }
View Full Code Here

        setSelectorLabel(PackageResources.COMBO_LABEL);
        setNoSelectionErrorMessage(PackageResources.SourceStartPage.NO_SOURCE_SELECTED);
    }

    public void applyToTransformation(Transformation tf) throws WizardPageException {
        JmsMessage msg = getSelectedEntity();
        if (msg != null) {
            tf.setSourceJmsMessage(msg);
            DataStructure input = getStructure(msg);
            tf.setInputStructure(input);
            tf.setSourceTextDocumentId(msg.getPayloadTextDocumentId());
            // TODO: The message properties.
        } else {
            // TODO: This may happen if the user deleted the JMS message before completing
            // the transformation.
            throw new WizardPageException(this, PackageResources.SourceStartPage.NO_SOURCE_SELECTED);
View Full Code Here

        super(id, wizard, title, wizard.getEntityExplorerSupport(), EntityType.JmsMessage, JmsMessage.class, null);
    }

    @Override
    public boolean prepareForForwardNavigation() {
        JmsMessage message = getSelectedEntity();
        if (message == null) {
            return false;
        }
        try {
            getStructure(message);
View Full Code Here

        setSelectorLabel(PackageResources.COMBO_LABEL);
        setNoSelectionErrorMessage(PackageResources.TargetStartPage.NO_TARGET_SELECTED);
    }

    public void applyToTransformation(Transformation tf) throws WizardPageException {
        JmsMessage msg = getSelectedEntity();
        if (msg != null) {
            tf.setTargetJmsMessage(msg);
            DataStructure output = getStructure(msg);
            tf.setOutputStructure(output);
            tf.setTargetTextDocumentId(msg.getPayloadTextDocumentId());
            // TODO: The message properties.
        } else {
            // TODO: This may happen if the user deleted the JMS message before completing
            // the transformation.
            throw new WizardPageException(this, PackageResources.TargetStartPage.NO_TARGET_SELECTED);
View Full Code Here

    }

    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);
            }
            LinkUtils.logMissingLink(transformation, EntityType.JmsMessage, msgId);
        }
View Full Code Here

    }

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

TOP

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

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.