X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FReadGraph.java;fp=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FReadGraph.java;h=91bb052e95aea782bf60ffc7383491316902d2ca;hb=1f8b50d81a1aa1bbd67a77f7cbc1060f2eb805d4;hp=bead66644ff103a67c6a3ad4db713457f068c2fd;hpb=86bb6157fdcb4a11caee57487cf8fa894eaae2dd;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/ReadGraph.java b/bundles/org.simantics.db/src/org/simantics/db/ReadGraph.java index bead66644..91bb052e9 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/ReadGraph.java +++ b/bundles/org.simantics.db/src/org/simantics/db/ReadGraph.java @@ -12,6 +12,7 @@ package org.simantics.db; import java.util.Collection; +import java.util.Map; import java.util.Set; import org.simantics.databoard.accessor.Accessor; @@ -108,6 +109,18 @@ public interface ReadGraph extends AsyncReadGraph, RequestProcessor { */ Resource getPossibleResource(String uri) throws ResourceNotFoundException, ValidationException, ServiceException; + /** + * Computes a map of objects related to resource with L0.ConsistsOf that also contain a L0.HasName property + * + * @param resource the resource + * @return the children + * @throws ValidationException if a resource could not be produced due to + * invalid semantics + * @throws ServiceException on connection and database failures + * @see AsyncReadGraph#forResourceByURI + */ + Map getChildren(Resource resource) throws ValidationException, ServiceException; + /** * Gets a builtin resource. For a list of builtin resources see TODO Wiki *