Package org.jitterbit.integration.data.entity

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


            addItemsToList(child, items, type);
        }
    }

    private static boolean accept(IntegrationEntity entity, EntityType requiredType) {
        EntityType type = entity.getEntityType();
        return (type == requiredType) || (type == requiredType.getSystemType());
    }
View Full Code Here


            String type = attributes.getValue(XmlConstants.Attributes.TYPE);
            if (type == null || type.length() == 0) {
                throw new KongaSaxParserException("Invalid integration project XML: missing entity type attribute."); //$NON-NLS-1$
            }
            try {
                EntityType rootType;
                // Backwards compatibility for change made in 1.5.0 when EntityType.InterchangeProject was
                // renamed to EntityType.Project:
                if (type.equals("InterchangeProject")) {
                    rootType = EntityType.Project;
                } else if (type.equals("User") || type.equals("Group")) {
View Full Code Here

            insertOperation(op);
        }
    }

    private void insertOperation(Operation op) {
        EntityType connectType = op.getConnectType();
        KongaTreeNode parent = findConnectRoot(connectType);
        if (parent != null) {
            KongaTreeNode opNode = op.getExtensionObject(IntegrationEntityTreeNode.class);
            treeModel.insertNode(opNode, parent);
        }
View Full Code Here

                }
            });
        }

        private void removeOperation(Operation op) {
            EntityType connectType = op.getConnectType();
            KongaTreeNode parent = findConnectRoot(connectType);
            if (parent != null) {
                removeOperationNodeFromParent(op, parent);
            }
        }
View Full Code Here

*/
final class PositionComparator implements Comparator<PipelinePosition> {

    @Override
    public int compare(PipelinePosition p1, PipelinePosition p2) {
        EntityType t1 = p1.getEntityType();
        EntityType t2 = p2.getEntityType();
        int ret = t1.compareTo(t2);
        if (ret == 0) {
            ret = compareRelativePositions(p1, p2);
            if (ret == 0) {
                ret = compareExecutionOrders(p1, p2);
View Full Code Here

    }

    private Map<EntityType, DeployedEntityDescriptor> createPresentRootFoldersMap(DeployedEntityDescriptor project) {
        Map<EntityType, DeployedEntityDescriptor> map = Maps.newHashMap();
        for (DeployedEntityDescriptor child : project.getChildren()) {
            EntityType itemType = getFolderItemType(child);
            if (itemType != null) {
                map.put(itemType, child);
            }
        }
        return map;
View Full Code Here

    }

    private EntityType getFolderItemType(DeployedEntityDescriptor folder) {
        List<DeployedEntityDescriptor> folders = Lists.newArrayList();
        for (DeployedEntityDescriptor child : folder.getChildren()) {
            EntityType type = child.getType();
            if (type == EntityType.Folder) {
                folders.add(child);
            } else {
                return type;
            }
        }
        for (DeployedEntityDescriptor subFolder : folders) {
            EntityType type = getFolderItemType(subFolder);
            if (type != null) {
                return type;
            }
        }
        return null;
View Full Code Here

            return text;
        }

        @Override
        public Icon getNodeIcon(NodeStatus nodeStatus) {
            EntityType type = getUserObject().getType();
            if (type == EntityType.RootFolder) {
                return null;
            } else {
                EntityIcons icons = EntityIcons.forType(type);
                return icons.getDefaultIcon(Size.SMALL);
View Full Code Here

        }

        @Override
        public Object toListItem(IntegrationEntity e) {
            Object listItem = e.getExtensionObject(ListDecorator.class);
            EntityType type = e.getEntityType();
            if (type != lastType) {
                lastType = type;
                return appendHeader(listItem, type);
            }
            return listItem;
View Full Code Here

    private void createNewEntityInProject(String[] params) throws CommandException {
        if (view.getProject() == null) {
            throw new CommandException("No project open.");
        }
        EntityType type = getTypeToCreate(params);
        if (type == null) {
            throw new CommandException("Unknown or unsupported type: " + params[0]);
        }
        createEntityOfType(type);
    }
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.