Package org.jitterbit.integration.data.entity

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


        return button;
    }

    private StaticOptionButton createNewEntityButton() {
        List<EntityType> typesToInclude = getTopLevelTypes();
        EntityType defaultType = typesToInclude.get(0);
        Icon icon = ApplicationResources.getIcon("New.32");
        NewEntityOptionButtonFactory factory = new NewEntityOptionButtonFactory(view, icon, typesToInclude, defaultType);
        return factory.getButton();
    }
View Full Code Here


        }
        return inserted;
    }

    private boolean isOfInterest(IntegrationEntity entity) {
        EntityType type = entity.getEntityType();
        if (types.contains(type)) {
            return true;
        }
        if (type == EntityType.Folder) {
            return types.contains(((Folder) entity).getItemType());
View Full Code Here

        private final List<DeployedEntityDescriptor> children;

        public DescriptorImpl(Persistor p) {
            String typeName = p.getString(ENTITY_TYPE);
            EntityType type;
            // Backwards compatibility for change made in 1.5.0 when EntityType.InterchangeProject
            // was
            // renamed to EntityType.Project:
            if (typeName.equals("InterchangeProject")) {
                type = EntityType.Project;
            } else {
                type = EntityType.valueOf(typeName);
            }
            this.id = type.getIntegrationId(p.getString(ENTITY_ID));
            this.name = p.getString(ENTITY_NAME);
            this.children = Lists.newArrayList();
        }
View Full Code Here

                resetPlugin();
            }
        }

        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
View Full Code Here

        }
       
        private PipelinePosition parsePipelinePosition(Element posElement) throws Exception {
            try {
                PluginIdentifier pluginId = new PluginIdentifier(pluginName, pluginVersion);
                EntityType subject = EntityType.valueOf(KongaXmlUtils.getChildElementValue(
                                posElement, XmlConstants.POSITION_SUBJECT));
                int execOrder = PipelinePosition.DEFAULT_EXECUTION_ORDER;
                try {
                    execOrder = Integer.parseInt(KongaXmlUtils.getChildElementValue(
                                    posElement, XmlConstants.EXECUTION_ORDER));
View Full Code Here

        this.tranDbConn = tranDbConn;
    }

    @Override
    public Long getId(IntegrationEntityId guid) throws GuidToIdMappingException {
        EntityType type = guid.getEntityType();
        PreparedStatement stmt = null;
        ResultSet rs = null;
        try {
            stmt = tranDbConn.prepareStatement("SELECT Item_Id FROM " + getTableNameForEntity(type) +
                            " WHERE Guid = ?");
View Full Code Here

        return new IntegrationEntityTreeModel(root);
    }

    private void createRootFolderStructure(ProjectNode projectNode, IntegrationProject project) {
        for (int n = 0; n < rootTypes.size(); ++n) {
            EntityType type = rootTypes.get(n);
            RootFolderNode node = new RootFolderNode(project.getRootFolder(type));
            node.setSortOrdinal(1000 - n);
            if (useJitterbitConnectNode && type.isWizardType()) {
                JitterbitConnectNode connectNode = getJitterbitConnectNode(projectNode);
                connectNode.add(node);
            } else {
                projectNode.addChild(node);
            }
View Full Code Here

    private static class FolderContentSorter implements Comparator<IntegrationEntity>, Serializable {

        @Override
        public int compare(IntegrationEntity o1, IntegrationEntity o2) {
            EntityType e1 = o1.getEntityType();
            EntityType e2 = o2.getEntityType();
            // We want folders to appear before entities - the Folder EntityType is
            // the next-to-last entity type, so we need to reverse the comparison:
            int ret = e2.compareTo(e1);
            if (ret == 0) {
                ret = o1.getName().compareToIgnoreCase(o2.getName());
            }
            return ret;
        }
View Full Code Here

        private String getActivatorText(Category c) {
            return getString("ProjectConsole.Activator." + c.name());
        }

        private Icon getIcon(Category c) {
            EntityType type;
            switch (c) {
            case PROJECT:
                type = EntityType.Project;
                break;
            case OPERATION:
View Full Code Here

        this.currentFilter = newFilter;
        if (!Objects.equal(oldVisibleTypes, visibleTypes)) {
            contentViewer.rebuildLayout();
        }
        for (Map.Entry<EntityType, MultiTreeSection> e : nonConnectTrees.entrySet()) {
            EntityType type = e.getKey();
            MultiTreeSection section = e.getValue();
            applyNewFilterToSection(newFilter, type, section);
        }
        applyNewFilterToWizards(newFilter);
        projectSection.setExpansionMode(getExpansionMode());
View Full Code Here

TOP

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

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.