Package org.jitterbit.integration.data.entity

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


        addRootFolders();
        addProjectListener(new EntitiesDeletedHandler());
    }

    private IntegrationEntityMapLookup createEmptyLookup() {
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(this);
        return lookup;
    }
View Full Code Here


    private final Object dataStoreLock;

    public TrashCan(IntegrationProject project) {
        this.project = project;
        dataStore = new IntegrationEntityMapLookup();
        dataStoreLock = new Object();
    }
View Full Code Here

        public Revivor(List<IntegrationEntity> toRevive, EntityRevivorCallback callback) {
            this.toRevive = toRevive;
            this.callback = callback;
            if (toRevive.size() > 1) {
                this.dataLookup = new IntegrationEntityMapLookup();
                for (IntegrationEntity entity : toRevive) {
                    dataLookup.addItem(entity);
                }
                links = new Dependencies();
                for (IntegrationEntity entity : toRevive) {
View Full Code Here

    public static IntegrationEntityLookup getLookup(IntegrationEntity entity) {
        IntegrationProject project = getProject(entity);
        if (project != null) {
            return project.getItemLookup();
        }
        return new IntegrationEntityMapLookup();
    }
View Full Code Here

        }
        return remaining;
    }

    private static IntegrationEntityMapLookup createDataStore(Collection<IntegrationEntity> entities) {
        IntegrationEntityMapLookup ds = new IntegrationEntityMapLookup();
        for (IntegrationEntity e : entities) {
            ds.addItem(e);
        }
        return ds;
    }
View Full Code Here

   
    @Test
    public void ensureGetAllIdsFromTransformationWorks() {
        Transformation tf = new Transformation("Test");
        tf.setMapList(Arrays.asList("A\t" + ScriptConstants.wrapInTags(expression + ";1")));
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(tf);
        verifyAllIdsWereDetected(GrammarUtils.getAllIdsFromTransformation(lookup, tf.getID()));
    }
View Full Code Here

    @Test
    public void ensureGetIdsFromTransformationWorks() {
        Transformation tf = new Transformation("Test");
        tf.setMapList(Arrays.asList("A\t" + ScriptConstants.wrapInTags(expression + ";1")));
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(tf);
        Set<SourceId> readFileIds = GrammarUtils.getIdsFromTransformation(lookup, tf.getID(), "ReadFile(", SourceId.class);
        assertEquals(1, readFileIds.size());
        assertTrue(readFileIds.contains(sourceId));
    }
View Full Code Here

        });
        fireDependenciesUpdated();
    }

    void buildDependencies() {
        final IntegrationEntityMapLookup lookup = IntegrationEntityMapLookup.build(project);
        SystemObjects.populate(lookup);
        project.visitAllEntities(new Receiver<IntegrationEntity>() {

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

        logDetail("Starting loading the project " + project.getName() + " from " + rootDirectory.getAbsolutePath());
        try {
            Set<ProjectLoadingIssue> issues = Sets.newHashSet();
            XmlPersistor xml = XmlPersistor.load(getProjectStructureFile());
            EnumMap<EntityType, ProjectStructurePersistor.Node> roots = ProjectStructurePersistor.load(xml, issues);
            IntegrationEntityMapLookup lookup = loadEntities(roots);
            SystemObjects.populate(lookup);
            restoreDependentData(lookup);
            return issues;
        } catch (IOException ex) {
            throw new InterchangeLoadingException(ex);
View Full Code Here

        return new File(rootDirectory, projectFile.getProperty(ProjectFile.STRUCTURE_INFO));
    }

    private IntegrationEntityMapLookup loadEntities(EnumMap<EntityType, ProjectStructurePersistor.Node> roots)
                                                                        throws InterchangeLoadingException {
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        EntityTypeConfig metaData = EntityTypeConfig.getInstance();
        for (Map.Entry<EntityType, ProjectStructurePersistor.Node> e : roots.entrySet()) {
            EntityType type = e.getKey();
            if (metaData.isEntityTypeSupported(type)) {
                EntityTypeHandler h = new EntityTypeHandler(type, e.getValue(), lookup);
View Full Code Here

TOP

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

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.