From e25460f7133cfeb2e30bebbe6d55c29589627992 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 3 Mar 2016 17:56:31 +0100 Subject: added hasUsbAccess field to Lecture* Struct * TODO refactor NetRules --- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 109 +++++++++++++++++++- .../openslx/bwlp/thrift/iface/LectureSummary.java | 111 +++++++++++++++++++-- .../openslx/bwlp/thrift/iface/LectureWrite.java | 111 +++++++++++++++++++-- src/main/thrift/bwlp.thrift | 3 + 4 files changed, 317 insertions(+), 17 deletions(-) diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index 2d872f9..3c5d305 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-18") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-03-02") public class LectureRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureRead"); @@ -64,6 +64,7 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -97,6 +98,7 @@ public class LectureRead implements org.apache.thrift.TBase locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required + public boolean hasUsbAccess; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -125,7 +127,8 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); @@ -192,6 +195,8 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; @@ -305,6 +311,8 @@ public class LectureRead implements org.apache.thrift.TBase locationIds, boolean limitToLocations, - boolean limitToAllowedUsers) + boolean limitToAllowedUsers, + boolean hasUsbAccess) { this(); this.lectureId = lectureId; @@ -377,6 +386,8 @@ public class LectureRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureSummary"); @@ -54,6 +54,7 @@ public class LectureSummary implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -77,6 +78,7 @@ public class LectureSummary implements org.apache.thrift.TBase byName = new HashMap(); @@ -142,6 +145,8 @@ public class LectureSummary implements org.apache.thrift.TBase metaDataMap; static { @@ -227,6 +233,8 @@ public class LectureSummary implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureWrite"); @@ -56,6 +56,7 @@ public class LectureWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -81,6 +82,7 @@ public class LectureWrite implements org.apache.thrift.TBase locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required + public boolean hasUsbAccess; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -101,7 +103,8 @@ public class LectureWrite implements org.apache.thrift.TBase byName = new HashMap(); @@ -152,6 +155,8 @@ public class LectureWrite implements org.apache.thrift.TBase metaDataMap; static { @@ -246,6 +252,8 @@ public class LectureWrite implements org.apache.thrift.TBase locationIds, boolean limitToLocations, - boolean limitToAllowedUsers) + boolean limitToAllowedUsers, + boolean hasUsbAccess) { this(); this.lectureName = lectureName; @@ -294,6 +303,8 @@ public class LectureWrite implements org.apache.thrift.TBase locationIds, 18: bool limitToLocations, 19: bool limitToAllowedUsers, + 20: bool hasUsbAccess, } struct LectureSummary { @@ -275,6 +276,7 @@ struct LectureSummary { 14: LecturePermissions defaultPermissions, 15: optional LecturePermissions userPermissions, 16: bool isImageVersionUsable, // Is the linked image version valid and enabled? + 17: bool hasUsbAccess, } struct LectureRead { @@ -304,6 +306,7 @@ struct LectureRead { 25: list locationIds, 26: bool limitToLocations, 27: bool limitToAllowedUsers, + 28: bool hasUsbAccess, } struct MasterTag { -- cgit v1.2.3-55-g7522