]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ListIndexRoots.java
Index tokenized lowercase versions of name and types for UI searches
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / request / ListIndexRoots.java
1 package org.simantics.db.layer0.request;
2
3 import java.util.Collection;
4
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.Resource;
7 import org.simantics.db.common.request.SingletonRead;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.db.layer0.util.Layer0Utils;
10
11 /**
12  * Returns a set of index roots.
13  * 
14  * @author Antti Villberg
15  */
16 public class ListIndexRoots extends SingletonRead<Collection<Resource>> {
17
18     public ListIndexRoots() {
19     }
20
21     @Override
22     public Collection<Resource> perform(ReadGraph graph) throws DatabaseException {
23         return Layer0Utils.listIndexRoots(graph);
24     }
25
26 }