Package org.jitterbit.integration.data.entity

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


        frame.publish();
    }
   
    private EntityListSelector<Source> createSelector() {
        KList<Source> sources = KList.fromItems(
                        new Source("Incoming on Linuxdoc"),
                        new Source("www.jitterbit.com"),
                        new Source("Jerry's Apartment"),
                        new Source("Deep Throat")
        );
        final EntityListSelector<Source> selector = new EntityListSelector<Source>(sources, Source.class);
        selector.setDefaultAction(new AbstractSingleObjectSelectionAction<Source>(Source.class) {

            @Override
View Full Code Here


        frame.publish();
    }
   
    private EntityTreeSelector<Source> createSelector() {
        Folder secret = new Folder("Secret", EntityType.Source);
        secret.addItem(new Source("Deep Throat"));
        project.insertEntityUnderRoot(secret);
        Folder amusement = new Folder("Of Amusement", EntityType.Source);
        amusement.addItem(new Source("Jerry's Apartment"));
        project.insertEntityUnderRoot(amusement);
        Source toSelect = new Source("www.jitterbit.com");
        project.insertEntityUnderRoot(toSelect);
        project.insertEntityUnderRoot(new Source("Incoming FTP on Linuxqa"));
        final EntityTreeSelector<Source> selector = new EntityTreeSelector<Source>(project, EntityType.Source, Source.class);
        selector.setIncludeToolbar(true);
        selector.setToolbarTitle("Sources");
        selector.setRootVisible(false);
        selector.updateAutomatically();
View Full Code Here

            String name = "New Source";
            if (counter > 1) {
                name += " (" + counter + ")";
            }
            ++counter;
            Source source = new Source(name);
            project.insertEntityUnderRoot(source);
        }
View Full Code Here

        }
    }

    private boolean isOperationSourceJms() {
        SourceId srcId = operation.getSourceId();
        Source src = collector.context().getDataStore().getEntity(srcId, Source.class);
        return isJmsLocation(src);
    }
View Full Code Here

        return pipeline.getType().isSchedulable() && isSourceSchedulable();
    }

    private boolean isSourceSchedulable() {
        OperationPipelineBrowser browser = new OperationPipelineBrowser(pipeline);
        Source src = browser.getSource();
        return src != SystemSource.SOURCE_FROM_PREVIOUS_OPERATION && src != SystemSource.FROM_HTTP_ENDPOINT;
    }
View Full Code Here

    public boolean isJmsSource() {
        SourceId srcId = operation.getSourceId();
        if (srcId == null) {
            return false;
        }
        Source source = lookup.getEntity(srcId, Source.class);
        return isJmsLocation(source);
    }
View Full Code Here

        private void setPreselectedSource(TransformationWizard wizard) {
            Transformation tx = wizard.getTransformation();
            SourceId sourceId = tx.getSourceId();
            if (sourceId != null) {
                IntegrationEntityLookup itemLookup = wizard.getItemLookup();
                Source src = itemLookup.getEntity(sourceId, Source.class);
                if (src != null) {
                    DataLocation location = src.getLocation();
                    if (location instanceof LdapLocation) {
                        pages.setSelectedLocation((LdapLocation) location);
                    }
                }
            }
View Full Code Here

            }
            return false;
        }
       
        private boolean evaluate(Transformation tf) {
            Source src = getSource();
            if (src != null && !tf.canGetInputFrom(src)) {
                return false;
            }
            Target tgt = getTarget();
            if (tgt != null && !tf.canSendOutputTo(tgt)) {
View Full Code Here

       
        private boolean evaluate(Transformation tf) {
            if (wsCall != null && !wsCall.getInputStructure().equals(tf.getOutputStructure())) {
                return false;
            }
            Source src = getSource();
            if (src != null && !tf.canGetInputFrom(src)) {
                return false;
            }
            return tf.getOutputStructure().getStructureType() == DataStructureType.WebServiceRequest;
        }
View Full Code Here

    @Override
    public boolean isApplicableFor(OperationPipeline pipeline) {
        if (!pipeline.getType().hasSourceHistory()) {
            return false;
        }
        Source src = getSource(pipeline);
        return (src != null) && src.canHaveHistory();
    }
View Full Code Here

TOP

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

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.