From b4d75b70c37c076661632300363354ca9800e021 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 18 Jan 2016 17:44:47 +0100 Subject: RPC update added limitToLocations/limitToAllowedUsers to LectureRead added parentLocationId to Location struct --- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 208 ++++++++++++++++++++- .../org/openslx/bwlp/thrift/iface/Location.java | 109 ++++++++++- .../java/org/openslx/thrifthelper/Comparators.java | 1 - src/main/thrift/bwlp.thrift | 3 + 4 files changed, 310 insertions(+), 11 deletions(-) (limited to 'src') 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 0fddbff..2d872f9 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-04") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-18") 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"); @@ -62,6 +62,8 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -93,6 +95,8 @@ public class LectureRead implements org.apache.thrift.TBase locationIds; // required + public boolean limitToLocations; // required + public boolean limitToAllowedUsers; // 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 { @@ -119,7 +123,9 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); @@ -182,6 +188,10 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; @@ -289,6 +301,10 @@ public class LectureRead implements org.apache.thrift.TBase locationIds) + List locationIds, + boolean limitToLocations, + boolean limitToAllowedUsers) { this(); this.lectureId = lectureId; @@ -355,6 +373,10 @@ public class LectureRead implements org.apache.thrift.TBase __this__locationIds = new ArrayList(other.locationIds); this.locationIds = __this__locationIds; } + this.limitToLocations = other.limitToLocations; + this.limitToAllowedUsers = other.limitToAllowedUsers; } public LectureRead deepCopy() { @@ -463,6 +487,10 @@ 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("Location"); private static final org.apache.thrift.protocol.TField LOCATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("locationId", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField LOCATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("locationName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PARENT_LOCATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("parentLocationId", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -49,11 +50,13 @@ public class Location implements org.apache.thrift.TBase byName = new HashMap(); @@ -72,6 +75,8 @@ public class Location implements org.apache.thrift.TBase metaDataMap; static { @@ -121,6 +127,8 @@ public class Location implements org.apache.thrift.TBase locationIds, + 26: bool limitToLocations, + 27: bool limitToAllowedUsers, } struct MasterTag { @@ -361,6 +363,7 @@ struct SatelliteUserConfig { struct Location { 1: i32 locationId, 2: string locationName, + 3: i32 parentLocationId, } // ############ EXCEPTION ###################### -- cgit v1.2.3-55-g7522