]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl
Set resources immutable
[simantics/platform.git] / bundles / org.simantics.scl.db / scl / Simantics / DBSupport.scl
index ee61b88b1e39a9be685b19731a12141161b9f47a..eddcba75bbe074dcf19b268a1488296d05f9f048 100644 (file)
@@ -1,6 +1,16 @@
 import "UI/Progress"
 import "Simantics/DB"
 
+importJava "org.simantics.db.common.utils.CommonDBUtils" where
+
+    listClusters :: <ReadGraph> [ClusterUID]
+    resourcesByCluster :: ClusterUID -> <ReadGraph> [Resource]
+    directStatements :: Resource -> Boolean -> <ReadGraph> [Statement]
+    garbageResources :: <ReadGraph> [Resource]
+    clusterUIDOfResource :: Resource -> <ReadGraph> ClusterUID
+    isClusterLoaded :: ClusterUID -> <ReadGraph> Boolean
+    setImmutable :: Resource -> Boolean -> <ReadGraph> ()
+
 importJava "org.simantics.scl.db.SCLFunctions" where
     collectClusters :: <Proc> ()
     countQueries :: <ReadGraph> Integer
@@ -18,3 +28,6 @@ importJava "org.simantics.db.layer0.util.Layer0Utils" where
 
 //emptyTrashBin :: <Proc> ()
 emptyTrashBin = emptyTrashBinWithMonitor $ createNullProgressMonitor ()
+
+importJava "org.simantics.db.service.ClusterUID" where
+    data ClusterUID