summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java
index f8c97151..a2677638 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java
@@ -134,13 +134,20 @@ public class Session {
}
/**
- * @return true if the satellite's API version supports publications of images, false otherwise
+ * @return true if the satellite's API version supports publications of images (version 3 and above), false otherwise
*/
public static boolean isImagePublishSupported() {
return satelliteApiVersion >= 3;
}
/**
+ * @return true if the satellite's API version supports netrules, internet blocking, exam mode (version 4 and above), false otherwise
+ */
+ public static boolean isNetrulesSupported() {
+ return satelliteApiVersion >= 4;
+ }
+
+ /**
* Query the satellite server for its configuration and default values.
*
* @return