Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodeFinder.findNode()


    @Override
    public void execute(String[] params) throws CommandException {
        String pathFragment = params[0];
        NodeFinder finder = new NodeFinder(page.getTreeMapper().m_targetTreeComponent);
        Node node = finder.findNode(pathFragment);
        if (node != null) {
            if (node.isFolder()) {
                Alert.error("You cannot map a target folder node.", "Not Allowed");
            } else {
                page.showMapping(new NodePath(node.m_deName));
View Full Code Here


        Alert.error("Cannot create a mapping between the two nodes.", "Error");
    }

    private Node findSourceNode(String[] params) {
        NodeFinder finder = new NodeFinder(page.getTreeMapper().m_sourceTreeComponent);
        return finder.findNode(params[0]);
    }

    private Node findTargetNode(String[] params) {
        NodeFinder finder = new NodeFinder(page.getTreeMapper().m_targetTreeComponent);
        return finder.findNode(params[1]);
View Full Code Here

        return finder.findNode(params[0]);
    }

    private Node findTargetNode(String[] params) {
        NodeFinder finder = new NodeFinder(page.getTreeMapper().m_targetTreeComponent);
        return finder.findNode(params[1]);
    }

    private static boolean isFolderToFolder(Node sourceNode, Node targetNode) {
        return sourceNode.isFolder() && targetNode.isFolder();
    }
View Full Code Here

    }

    private Node findNode(String[] params) {
        String targetPath = params[0];
        NodeFinder nodeFinder = new NodeFinder(page.getTreeMapper().m_targetTreeComponent);
        return nodeFinder.findNode(targetPath);
    }

    private void removeMapping(Node targetNode) {
        if (targetNode.isFolder()) {
            page.getTreeMapper().deleteAllMappings(targetNode);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.