Package org.jitterbit.integration.data.entity

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


    @Override
    public final void setProject(ManagedProject project) {
        if (project != null) {
            TestResultHistory<T> history = getHistory(project.getTestHistory());
            IntegrationEntityLookup itemLookup = project.getProject().getItemLookup();
            table.setHistory(history, itemLookup);
            detailsAction.setEntityLookup(itemLookup);
            deleteAction.setHistory(history);
        } else {
            table.setHistory(null, null);
View Full Code Here


        return UiThreadSupplier.call(new Supplier<WebServiceSelectionWizard>() {

            @Override
            public WebServiceSelectionWizard get() {
                WebServiceCallId wsCallId = toEdit.getWebServiceCallId();
                IntegrationEntityLookup lookup = explorerSupport.getProject().getItemLookup();
                WebServiceCall wsCall = lookup.getEntity(wsCallId, WebServiceCall.class);
                return new WebServiceSelectionWizard(wsCall, explorerSupport);
            }
        });
    }
View Full Code Here

        selector.setDefaultAction(new SelectAction(entityClass));
    }

    private T getCurrentEntity(Class<T> cls) {
        IntegrationEntityId id = getCurrentEntityId(node);
        IntegrationEntityLookup lookup = controller.getEntityLookup();
        return lookup.getEntity(id, cls);
    }
View Full Code Here

    public void removeEntityPermissionsListener(EntityPermissionsListener lst) {
        listeners.remove(lst);
    }

    private void firePermissionsChanged(Collection<IntegrationEntityId> ids) {
        IntegrationEntityLookup lookup = project.getItemLookup();
        for (IntegrationEntityId id : ids) {
            IntegrationEntity entity = lookup.getEntity(id);
            if (shouldBeMadeDirty(entity)) {
                firePermissionsChanged(entity);
            }
        }
    }
View Full Code Here

            fireDependenciesUpdated();
        }

        private void processRevival(IntegrationEntity entity) {
            clearDeletedFlag(entity);
            IntegrationEntityLookup lookup = project.getItemLookup();
            for (EntityLink link : entity.getLinks(lookup)) {
                addLink(link);
            }
            File entityFile = getExtendedProjectPersistor().getFile(entity);
            removeFileFromDeleteOnExit(entityFile);
View Full Code Here

        pages = createPages(wizard, st);
    }

    private DatabaseStructureWizardPageChain createPages(TransformationWizard wizard, SourceTarget st) {
        Transformation tx = wizard.getTransformation();
        IntegrationEntityLookup lookup = wizard.getItemLookup();
        switch (st) {
        case Source:
            Source source = lookup.getEntity(tx.getSourceId(), Source.class);
            if (source != null) {
                return new DatabaseStructureWizardPageChain(wizard, source);
            }
            break;
        case Target:
            Target target = lookup.getEntity(tx.getTargetId(), Target.class);
            if (target != null) {
                return new DatabaseStructureWizardPageChain(wizard, target);
            }
            break;
        default:
View Full Code Here

    }

    @Override
    protected void run(TriggeredOperation selected, ActionEvent evt) {
        if (explorerSupport != null) {
            IntegrationEntityLookup operationLookup = explorerSupport.getProject().getItemLookup();
            Operation op = operationLookup.getEntity(selected.getOperationId(), Operation.class);
            if (op != null) {
                explorerSupport.openPageFor(op);
            }
        }
    }
View Full Code Here

        });
    }

    private void openTestConnectionView() {
        WaitLock waitLock = appWin.startWait();
        IntegrationEntityLookup entityLookup = getProject().getItemLookup();
        WindowSectionContentProvider uiProvider = new TestAllConnectionsViewFactory(entityLookup, pageDisplayer);
        appWin.displayContent(uiProvider, SectionPosition.SOUTH, new ContentUpdater(), new Callback(waitLock));
    }
View Full Code Here

        }

        private IntegrationEntity identityEntity(Element entityElement) {
            EntityType type = EntityType.valueOf(entityElement.getAttribute(XmlConstants.ENTITY_TYPE));
            IntegrationEntityId id = type.getIntegrationId(entityElement.getAttribute(XmlConstants.ENTITY_ID));
            IntegrationEntityLookup lookup = project.getProject().getItemLookup();
            IntegrationEntity entity = lookup.getEntity(id);
            if (entity.isDeleted()) {
                // This happens if a deployed entity has been deleted, and the plugin info
                // file wasn't correctly updated before shutdown. The entries for the deleted
                // entity are still present, but they can be ignored.
                entity = null;
View Full Code Here

        OperationPipeline pipeline = createPipeline(tx);
        operation.setPipeline(pipeline);
    }

    private OperationPipeline createPipeline(Transformation tx) {
        IntegrationEntityLookup itemLookup = getItemLookup(tx);
        Function<Transformation, OperationPipeline> f = new TransformationToOperationPipelineFunction(itemLookup);
        return f.apply(tx);
    }
View Full Code Here

TOP

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

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.