Examples of call()


Examples of org.locationtech.geogig.api.plumbing.ForEachRef.call()

                return match;
            }
        };
        op.setFilter(filter);

        ImmutableSet<Ref> refs = op.call();

        for (Ref ref : refs) {
            console.println(ref.getObjectId() + " " + ref.getName());
        }
    }
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.LsTreeOp.call()

            return Iterators.emptyIterator();
        }
        LsTreeOp op = command(LsTreeOp.class).setStrategy(Strategy.DEPTHFIRST_ONLY_FEATURES)
                .setReference(ref);

        Iterator<NodeRef> iterator = op.call();

        Function<NodeRef, Feature> nodeRefToFeature = new Function<NodeRef, Feature>() {

            private final Map<String, FeatureBuilder> builders = //
            ImmutableMap.<String, FeatureBuilder> of(//
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.SendPack.call()

        SendPack sendPack = command(SendPack.class);
        sendPack.setRemote(remote);
        sendPack.setRefs(refsToPush);
        sendPack.setProgressListener(getProgressListener());
        TransferSummary result = sendPack.call();
        return result;
    }

    private List<TransferableRef> resolveRefs() {
        List<TransferableRef> refsToPush = new ArrayList<>();
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.UpdateRef.call()

        Preconditions.checkArgument(revTag.isPresent(), "Wrong tag name: " + name);
        Preconditions.checkArgument(revTag.get().getType().equals(RevObject.TYPE.TAG), name
                + " does not resolve to a tag");
        UpdateRef updateRef = command(UpdateRef.class).setName(fullPath).setDelete(true)
                .setReason("Delete tag " + name);
        Optional<Ref> tagRef = updateRef.call();
        checkState(tagRef.isPresent());
        return (RevTag) revTag.get();
    }

    public TagRemoveOp setName(String name) {
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.WriteBack.call()

        }

        RevTree subtree = subTreeBuilder.build();
        WriteBack writeBack = fakeGeogig.command(WriteBack.class).setAncestor(root)
                .setChildPath(treePath).setTree(subtree).setMetadataId(fakeTreeMetadataId);
        ObjectId newRootId = writeBack.call();

        return fakeGeogig.command(RevObjectParse.class).setObjectId(newRootId).call(RevTree.class)
                .get().builder(odb);
    }
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.WriteTree.call()

                if (changes.isAutoIngesting()) {
                    // the iterator already ingests objects into the ObjectDatabase
                    writeTree.dontMoveObjects();
                }

                ObjectId newTreeId = writeTree.call();

                CommitBuilder builder = new CommitBuilder(commit);
                List<ObjectId> newParents = new LinkedList<ObjectId>();
                for (ObjectId parentCommitId : commit.getParentIds()) {
                    newParents.add(graphDatabase.getMapping(parentCommitId));
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.WriteTree2.call()

            WriteTree2 writeTree = command(WriteTree2.class);
            writeTree.setOldRoot(oldRoot).setProgressListener(subProgress(writeTreeProgress));
            if (!pathFilters.isEmpty()) {
                writeTree.setPathFilter(pathFilters);
            }
            newTreeId = writeTree.call();
        }

        if (getProgressListener().isCanceled()) {
            return null;
        }
View Full Code Here

Examples of org.locationtech.geogig.api.porcelain.AddOp.call()

        if (path != null) {
            command.addPattern(path);
        }

        command.call();
        context.setResponseContent(new CommandResponse() {
            @Override
            public void write(ResponseWriter out) throws Exception {
                out.start();
                out.writeElement("Add", "Success");
View Full Code Here

Examples of org.locationtech.geogig.api.porcelain.BranchDeleteOp.call()

        BranchDeleteOp testOp = new BranchDeleteOp();
        testOp.setName(null);

        exception.expect(IllegalStateException.class);

        testOp.call();
    }

    @Test
    public void BranchNotPresentTest() {
        Optional<? extends Ref> branchref = geogig.command(BranchDeleteOp.class)
View Full Code Here

Examples of org.locationtech.geogig.api.porcelain.CheckoutOp.call()

                command.setTheirs(theirs);
            } else {
                throw new CommandSpecException(
                        "Please specify either ours or theirs to update the feature path specified.");
            }
            command.call();
            context.setResponseContent(new CommandResponse() {
                @Override
                public void write(ResponseWriter out) throws Exception {
                    out.start();
                    out.writeElement("Path", path);
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.