diff options
author | Jonathan Bauer | 2016-08-17 15:02:51 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-08-17 15:02:51 +0200 |
commit | 69dbf28b8eedf7e0824cc85ef7122f593678f6dc (patch) | |
tree | aaa66aec89120642e1af6c464bfd69e6be408d43 /dozentenmodul/src/main/java/org/openslx/dozmod/thrift | |
parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
download | tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.tar.gz tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.tar.xz tutor-module-69dbf28b8eedf7e0824cc85ef7122f593678f6dc.zip |
[client] re-enable advanced and restrictions tabs based on API version
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/thrift/Session.java | 9 |
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 |