Package org.jitterbit.integration.data.entity

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


            if (typeName.equals("User") || typeName.equals("Group")) {
                // Backwards compatibility for change made in 2.0, when the EntityTypes
                // User and Group were removed
                return null;
            }
            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);
            }
            return type.getIntegrationId(p.getString(ENTITY_ID));
        }
View Full Code Here


        }
        return toExpand;
    }

    private boolean isInTree(IntegrationEntity e) {
        EntityType type = EntityUtils.getItemType(e);
        if (this.type == null) {
            return type.isWizardType();
        } else {
            return type == this.type;
        }
    }
View Full Code Here

        items.addAll(folders);
    }

    private boolean lookForWizards() {
        for (IntegrationEntity e : items) {
            EntityType type = EntityUtils.getItemType(e);
            if (type.isWizardType()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

            if (useIcon(node, validationStatus)) {
                return node.getIcons().getIcon(Category.fromValidationStatus(validationStatus), Size.SMALL);
            }
        }
        if (node instanceof RootFolderNode && ((RootFolderNode) node).isRelegatedRoot()) {
            EntityType type = ((RootFolderNode) node).getUserObject().getItemType();
            return EntityIcons.getWizardFolderIcon(type);
        } else if (node instanceof FolderNode) {
            Folder folder = ((FolderNode) node).getUserObject();
            if (folder.isSalesforceFolder() || folder.isSharedSalesforceItemsFolder()) {
                return EntityIcons.getSalesforceWizardFolderIcon();
View Full Code Here

        OneColumnPanel col = new OneColumnPanel();
        col.setInsets(0, 0, 10, 0);
        col.setWeightX(1.0);
        col.add(WizardStyleSheet.SMALL_CAPTION_STYLE.makeLabel("Password?"));
        col.setInsets(0, 0, 5, 0);
        EntityType inputType = original.getID().getEntityType();
        EntityType outputType = (inputType == EntityType.Source) ? EntityType.Target : EntityType.Source;
        col.add("The " + inputType.getDisplayName() + "'s password may have been blanked out.");
        col.add("Provide the password for the new " + outputType.getDisplayName() + " here:");
        col.add(field);
        return col;
    }
View Full Code Here

        }

        private ListModel getListModel() {
            DefaultListModel model = new DefaultListModel();
            Font font = TextStyles.DefaultListText.getFont();
            EntityType type = null;
            boolean isFirst = true;
            for (IntegrationEntity e : getEntitiesToDisplay()) {
                if (e.getEntityType() != type) {
                    if (!isFirst) {
                        model.addElement(" ");
                    }
                    type = e.getEntityType();
                    String s = type.getPlural() + ":";
                    model.addElement(new BoldTextListDecorator(s, font));
                }
                boolean willBeDeleted = dependencies.willBeDeleted(e);
                model.addElement(new EntityListItem(e, willBeDeleted));
                if (willBeDeleted) {
View Full Code Here

            return super.getIcon(value);
        }

        private Icon getIconForEntity(Object nodeObject) {
            IntegrationEntity entity = (IntegrationEntity) nodeObject;
            EntityType type;
            Size size;
            if (entity instanceof RootFolder) {
                size = Size.MEDIUM;
                type = ((RootFolder) entity).getItemType();
            } else {
View Full Code Here

            public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded,
                            boolean leaf, int row, boolean hasFocus) {
                super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
                if (value instanceof ItemNode) {
                    setFont(TextStyles.TreeLeafText.getFont());
                    EntityType type = ((ItemNode) value).type;
                    Icon icon = EntityIcons.forType(type).getDefaultIcon(Size.SMALL);
                    setIcon(icon);
                } else {
                    setFont(TextStyles.TreeRootFolderText.getFont());
                    setIcon(null);
View Full Code Here

        lookForAvailableCharacters(false);
    }

    private void lookForAvailableCharacters(boolean allowLowerCase) {
        for (Iterator<EntityType> it = remainingTypes.iterator(); it.hasNext(); ) {
            EntityType type = it.next();
            String name = names.get(type);
            AdjustedString adjustedName = removeShunnedWords(name);
            char[] mnemonicCandidates = adjustedName.toChars();
            for (int n = 0; n < mnemonicCandidates.length; ++n) {
                Character c = mnemonicCandidates[n];
View Full Code Here

    private StaticOptionButton createNewWizardButton(){
        List<EntityType> wizardTypes = config.getConnectTypes();
        if (wizardTypes.isEmpty()) {
            return null;
        }
        EntityType defaultType = wizardTypes.get(0);
        Icon icon = ToolbarMode.getConfiguredMode() == ToolbarMode.MINIMAL ? ClientIcons.JITTERBIT_CONNECT_32
                        : ClientIcons.JITTERBIT_CONNECT_24;
        NewEntityOptionButtonFactory factory = new NewEntityOptionButtonFactory(view, icon, wizardTypes, defaultType);
        factory.setDefaultAction(new OpenJitterbitConnectConsoleAction(view, config.getConnectTypes()));
        StaticOptionButton button = factory.getButton();
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.