Package org.jitterbit.integration.data.entity

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


            postPartialDeployProcessingImpl(f);
        }
        DeployLog.LOG.fine("Saving all deployed items");
        ProjectPersistor saver = currentProject.getProjectPersistor();
        for (IntegrationEntity e : partialProject.getAllEntities()) {
            IntegrationEntity realEntity = currentProject.getProject().getItemLookup().getEntity(e.getID());
            if (realEntity != null) {
                saver.save(realEntity);
            }
        }
        updateProject();
View Full Code Here


    private void postPartialDeployProcessingImpl(IntegrationEntity entity) {
        // entity comes from the partial project that was created for deploy. It is a copy of the
        // "real" entity which is the one we need to update. We get the "real" entity from the
        // actual project itself.
        IntegrationEntity realEntity = currentProject.getProject().getItemLookup().getEntity(entity.getID());
        if (realEntity != null) {
            PostDeployEntityProcessor entityProcessor = realEntity.getExtensionObject(PostDeployEntityProcessor.class);
            if (entityProcessor == null) {
                entityProcessor = new DefaultPostDeployEntityProcessor();
            }
            entityProcessor.doPostDeployProcessing(realEntity, postDeployManager);
            // We must process the renaming first, because if the entity was goven a new name on the
            // server it will be flagged as deployDirty when the new name is applied here on the client
            processEntityRename(realEntity);
            realEntity.setDeployed(true);
            realEntity.setDeployDirty(false);
        }
        for (IntegrationEntity r : entity.getAllChildren()) {
            postPartialDeployProcessingImpl(r);
        }
    }
View Full Code Here

        }
       
        @Override
        protected Object[] getColumnDataFromObject(Object o) {
            if (o instanceof IntegrationEntity) {
                IntegrationEntity e = (IntegrationEntity) o;
                return new Object[] { e, e.getCreatedAt(), e.getModifiedAt() };
            } else if (o instanceof String) {
                return new Object[] { (String) o, null, null };
            }
            throw new IllegalArgumentException("o must be either an IntegrationEntity or a String");
        }
View Full Code Here

    }

    private void addMissingParentFolders() {
        Set<IntegrationEntity> folders = Sets.newHashSet();
        for (IntegrationEntity item : items) {
            IntegrationEntity parent = item.getParent();
            while (parent != null && folders.add(parent)) {
                parent = parent.getParent();
            }
        }
        items.addAll(folders);
    }
View Full Code Here

            if (!explicitlySelected.contains(req)) {
                implicitlySelected.put(changedEntity, req, Boolean.TRUE);
            }
            processSelectImpl(req, node2, alreadyProcessed);
        }
        IntegrationEntity owner = e.getParent();
        if (owner != null) {
            CheckBoxNode node2 = tree.getNodeForEntity(owner);
            node2.setSelected(true);
            if (!explicitlySelected.contains(owner)) {
                implicitlySelected.put(changedEntity, owner, Boolean.TRUE);
View Full Code Here

        }
        return name;
    }

    protected Icon getIcon(IntegrationEntityTreeNode node) {
        IntegrationEntity entity = node.getUserObject();
        if (entity instanceof Folder && ((Folder) entity).isJitterbitConnectFolder()) {
            // TODO: We need an validation decorated version of this icon.
            return ClientIcons.JITTERBIT_CONNECT_16;
        }
        if (decoratingInvalidItems && validationStatus != null && validationStatus != ValidationStatus.VALID) {
View Full Code Here

            return (IntegrationProject) entity;
        }
        if (entity == null) {
            return null;
        }
        IntegrationEntity parent = entity.getParent();
        while ((parent != null) && !(parent instanceof IntegrationProject)) {
            parent = parent.getParent();
        }
        return (IntegrationProject) parent;
    }
View Full Code Here

        private void addWizardListener(final Wizard wizard) {
            wizard.addWizardListener(new WizardAdapter() {

                @Override
                public void wizardCompleted(Object object) {
                    IntegrationEntity entity = (IntegrationEntity) object;
                    doPostProjectInsertionProcessing(entity, externalCallback, openEditor);
                }
            });
        }
View Full Code Here

    private void collectSelectedAndInvalidItems(List<IntegrationEntity> items, List<IntegrationEntity> invalid) {
        Enumeration<KongaTreeNode> en = tree.getModel().getRoot().breadthFirstEnumeration();
        while (en.hasMoreElements()) {
            CheckBoxEntityNode node = (CheckBoxEntityNode) en.nextElement();
            if (node.isSelected()) {
                IntegrationEntity entity = (IntegrationEntity) node.getUserObject();
                switch (entity.getEntityType()) {
                case Folder: /* fall-through */
                case RootFolder: /* fall-through */
                case Project: /* fall-through */
                    // Do not add folders or the project itself to the list of invalid items,
                    // since they should not prevent a valid item from being deployed.
View Full Code Here

    private static IntegrationEntityTreeNode createNode(IntegrationEntity e) {
        return e.getExtensionObject(IntegrationEntityTreeNode.class);
    }
   
    private void processParents(IntegrationEntity e, IntegrationEntityTreeNode node) {
        IntegrationEntity parent = e.getParent();
        while (parent != null) {
            IntegrationEntityTreeNode parentNode = getParentNode(parent);
            if (node.getParent() != parentNode) {
                parentNode.addChild(node);
            }
            if (parent instanceof IntegrationProject) {
                break;
            }
            parent = parent.getParent();
            node = parentNode;
        }
    }
View Full Code Here

TOP

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

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.