Package org.jitterbit.integration.data.entity

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


     * <strong>Note:</strong> The returned <code>DependencyStore</code> must be
     * {@link DependencyStore#dispose() disposed} after use, to free up allocated resources
     * (listeners).
     */
    public DependencyStore getCurrentDependencies() {
        return new DependencyStore(entityLookup);
    }
View Full Code Here


                for (IntegrationEntity entity : toRevive) {
                    for (EntityLink link : entity.getLinks(dataLookup)) {
                        links.addLink(link);
                    }
                }
                dependencyStore = new DependencyStore(links);
            } else {
                dataLookup = null;
                links = null;
                dependencyStore =  null;
            }
View Full Code Here

    public TrashCanViewUi(ManagedProject project) {
        this.project = project;
        trashCan = project.getTrashCan();
        KList<IntegrationEntity> entities = trashCan.getContents();
        dataStore = createDataStore(entities);
        dependencies = new DependencyStore(dataStore);
        reviveAction = new ReviveAction();
        trashCanContent = createList(entities);
        waitService = new DummyWaitService();
    }
View Full Code Here

        private void rebuildDependencies() {
            if (dependencies != null) {
                dependencies.dispose();
            }
            dependencies = new DependencyStore(dataStore);
        }
View Full Code Here

        controller.setSiblings(node.getDataObject(), selector.getSelectedOperations());
    }

    private List<Operation> getCurrentSiblings(OperationWrapperNode node) {
        IntegrationProject project = controller.getProject();
        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            SiblingOperationsInfo info = new SiblingOperationsInfo(project.getItemLookup(), dependencies);
            return info.getSiblingOperations(node.getDataObject());
        } finally {
            dependencies.dispose();
        }
    }
View Full Code Here

        public void testOperation(Transformation tx) {
            IntegrationProject project = ProjectUtils.getProject(tx);
            if (project == null) {
                return;
            }
            DependencyStore dependencies = project.getCurrentDependencies();
            try {
                Operation op = getOperationToTest(dependencies, tx);
                if (op != null && isOperationTestable(op)) {
                    checkDeployAndRun(tx, op);
                }
            } finally {
                dependencies.dispose();
            }
        }
View Full Code Here

        IntegrationProject project = ProjectUtils.getProject(documentToSave);
        if (project == null) {
            // This is to allow opening an Editor for a TextDocument that is not yet in the project.
            return KList.newList();
        }
        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            return dependencies.getDependingObjects(documentToSave)
                            .keepAll(EntityFilters.allOfType(EntityType.Transformation))
                            .transform(KongaFunctions.cast(Transformation.class));
        } finally {
            dependencies.dispose();
        }
    }
View Full Code Here

        this.projectFile = projectFile;
        lock = new Object();
        listeners = new CopyOnWriteArrayList<ManagedProjectListener>();
        savedEntities = new HashSet<IntegrationEntity>();
        dataLinks = new Dependencies();
        dependencyStore = new DependencyStore(dataLinks);
        validationModel = new DefaultValidationModel(this);
        trashCan = new TrashCan(project);
        plugins = new ProjectPluginInfoImpl(this);
        testResultStore = new ProjectTestHistoryImpl(this);
        deployHistory = new ProjectDeployHistoryImpl(this);
View Full Code Here

        deletedItems.clear();
    }

    void buildDataStore() {
        dataLinks = new Dependencies();
        dependencyStore = new DependencyStore(dataLinks);
        uiState = new ProjectUiState(IntegrationEntityMapLookup.build(project));
        project.visitAllEntities(new Receiver<IntegrationEntity>() {

            @Override
            public void handle(IntegrationEntity e) {
View Full Code Here

        }
        return true;
    }

    private Set<IntegrationEntity> getItemsToDeploy(List<? extends IntegrationEntity> active) {
        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            Set<IntegrationEntity> processedItems = Sets.newHashSet();
            Set<IntegrationEntity> itemsToDeploy = Sets.newHashSet();
            for (IntegrationEntity e : active) {
                addItemToDeploy(e, dependencies, processedItems, itemsToDeploy, true);
            }
            filterOutUndeployableItems(itemsToDeploy);
            return itemsToDeploy;
        } finally {
            dependencies.dispose();
        }
    }
View Full Code Here

TOP

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

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.