From 5ba446543184d5af8185da23b9a5fd28133d5513 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 7 Jan 2016 13:55:40 +0100 Subject: added "onlyInLocations" flag for LectureWrite update thrift files to 0.9.3 --- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 408 +++++++++++++++++---- 1 file changed, 341 insertions(+), 67 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java') 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 0cd2051..0fddbff 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -29,9 +29,12 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; 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") 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"); @@ -58,6 +61,7 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -88,6 +92,7 @@ public class LectureRead implements org.apache.thrift.TBase locationIds; // 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 { @@ -113,7 +118,8 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); @@ -174,6 +180,8 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -278,6 +286,9 @@ public class LectureRead implements org.apache.thrift.TBase networkExceptions, boolean isExam, boolean hasInternetAccess, - LecturePermissions defaultPermissions) + LecturePermissions defaultPermissions, + List locationIds) { this(); this.lectureId = lectureId; @@ -342,6 +354,7 @@ public class LectureRead implements org.apache.thrift.TBase __this__locationIds = new ArrayList(other.locationIds); + this.locationIds = __this__locationIds; + } } public LectureRead deepCopy() { @@ -445,6 +462,7 @@ public class LectureRead implements org.apache.thrift.TBase getLocationIdsIterator() { + return (this.locationIds == null) ? null : this.locationIds.iterator(); + } + + public void addToLocationIds(int elem) { + if (this.locationIds == null) { + this.locationIds = new ArrayList(); + } + this.locationIds.add(elem); + } + + public List getLocationIds() { + return this.locationIds; + } + + public LectureRead setLocationIds(List locationIds) { + this.locationIds = locationIds; + return this; + } + + public void unsetLocationIds() { + this.locationIds = null; + } + + /** Returns true if field locationIds is set (has been assigned a value) and false otherwise */ + public boolean isSetLocationIds() { + return this.locationIds != null; + } + + public void setLocationIdsIsSet(boolean value) { + if (!value) { + this.locationIds = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_ID: @@ -1220,6 +1277,14 @@ public class LectureRead implements org.apache.thrift.TBase)value); + } + break; + } } @@ -1241,28 +1306,28 @@ public class LectureRead implements org.apache.thrift.TBase list = new ArrayList(); + + boolean present_lectureId = true && (isSetLectureId()); + list.add(present_lectureId); + if (present_lectureId) + list.add(lectureId); + + boolean present_lectureName = true && (isSetLectureName()); + list.add(present_lectureName); + if (present_lectureName) + list.add(lectureName); + + boolean present_description = true && (isSetDescription()); + list.add(present_description); + if (present_description) + list.add(description); + + boolean present_imageVersionId = true && (isSetImageVersionId()); + list.add(present_imageVersionId); + if (present_imageVersionId) + list.add(imageVersionId); + + boolean present_imageBaseId = true && (isSetImageBaseId()); + list.add(present_imageBaseId); + if (present_imageBaseId) + list.add(imageBaseId); + + boolean present_autoUpdate = true; + list.add(present_autoUpdate); + if (present_autoUpdate) + list.add(autoUpdate); + + boolean present_isEnabled = true; + list.add(present_isEnabled); + if (present_isEnabled) + list.add(isEnabled); + + boolean present_startTime = true; + list.add(present_startTime); + if (present_startTime) + list.add(startTime); + + boolean present_endTime = true; + list.add(present_endTime); + if (present_endTime) + list.add(endTime); + + boolean present_lastUsed = true; + list.add(present_lastUsed); + if (present_lastUsed) + list.add(lastUsed); + + boolean present_useCount = true; + list.add(present_useCount); + if (present_useCount) + list.add(useCount); + + boolean present_createTime = true; + list.add(present_createTime); + if (present_createTime) + list.add(createTime); + + boolean present_updateTime = true; + list.add(present_updateTime); + if (present_updateTime) + list.add(updateTime); + + boolean present_ownerId = true && (isSetOwnerId()); + list.add(present_ownerId); + if (present_ownerId) + list.add(ownerId); + + boolean present_updaterId = true && (isSetUpdaterId()); + list.add(present_updaterId); + if (present_updaterId) + list.add(updaterId); + + boolean present_runscript = true && (isSetRunscript()); + list.add(present_runscript); + if (present_runscript) + list.add(runscript); + + boolean present_nics = true && (isSetNics()); + list.add(present_nics); + if (present_nics) + list.add(nics); + + boolean present_allowedUsers = true && (isSetAllowedUsers()); + list.add(present_allowedUsers); + if (present_allowedUsers) + list.add(allowedUsers); + + boolean present_networkExceptions = true && (isSetNetworkExceptions()); + list.add(present_networkExceptions); + if (present_networkExceptions) + list.add(networkExceptions); + + boolean present_isExam = true; + list.add(present_isExam); + if (present_isExam) + list.add(isExam); + + boolean present_hasInternetAccess = true; + list.add(present_hasInternetAccess); + if (present_hasInternetAccess) + list.add(hasInternetAccess); + + boolean present_defaultPermissions = true && (isSetDefaultPermissions()); + list.add(present_defaultPermissions); + if (present_defaultPermissions) + list.add(defaultPermissions); + + boolean present_userPermissions = true && (isSetUserPermissions()); + list.add(present_userPermissions); + if (present_userPermissions) + list.add(userPermissions); + + boolean present_locationIds = true && (isSetLocationIds()); + list.add(present_locationIds); + if (present_locationIds) + list.add(locationIds); + + return list.hashCode(); } @Override @@ -1821,6 +2022,16 @@ public class LectureRead implements org.apache.thrift.TBase(_list122.size); - for (int _i123 = 0; _i123 < _list122.size; ++_i123) + org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); + struct.nics = new ArrayList(_list130.size); + String _elem131; + for (int _i132 = 0; _i132 < _list130.size; ++_i132) { - String _elem124; - _elem124 = iprot.readString(); - struct.nics.add(_elem124); + _elem131 = iprot.readString(); + struct.nics.add(_elem131); } iprot.readListEnd(); } @@ -2186,13 +2405,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list125.size); - for (int _i126 = 0; _i126 < _list125.size; ++_i126) + org.apache.thrift.protocol.TList _list133 = iprot.readListBegin(); + struct.allowedUsers = new ArrayList(_list133.size); + String _elem134; + for (int _i135 = 0; _i135 < _list133.size; ++_i135) { - String _elem127; - _elem127 = iprot.readString(); - struct.allowedUsers.add(_elem127); + _elem134 = iprot.readString(); + struct.allowedUsers.add(_elem134); } iprot.readListEnd(); } @@ -2204,14 +2423,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list128.size); - for (int _i129 = 0; _i129 < _list128.size; ++_i129) + org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); + struct.networkExceptions = new ArrayList(_list136.size); + NetRule _elem137; + for (int _i138 = 0; _i138 < _list136.size; ++_i138) { - NetRule _elem130; - _elem130 = new NetRule(); - _elem130.read(iprot); - struct.networkExceptions.add(_elem130); + _elem137 = new NetRule(); + _elem137.read(iprot); + struct.networkExceptions.add(_elem137); } iprot.readListEnd(); } @@ -2254,6 +2473,24 @@ public class LectureRead implements org.apache.thrift.TBase(_list139.size); + int _elem140; + for (int _i141 = 0; _i141 < _list139.size; ++_i141) + { + _elem140 = iprot.readI32(); + struct.locationIds.add(_elem140); + } + iprot.readListEnd(); + } + struct.setLocationIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2321,9 +2558,9 @@ public class LectureRead implements org.apache.thrift.TBase(_list137.size); - for (int _i138 = 0; _i138 < _list137.size; ++_i138) + org.apache.thrift.protocol.TList _list150 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list150.size); + String _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) { - String _elem139; - _elem139 = iprot.readString(); - struct.nics.add(_elem139); + _elem151 = iprot.readString(); + struct.nics.add(_elem151); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list140 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList(_list140.size); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) + org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.allowedUsers = new ArrayList(_list153.size); + String _elem154; + for (int _i155 = 0; _i155 < _list153.size; ++_i155) { - String _elem142; - _elem142 = iprot.readString(); - struct.allowedUsers.add(_elem142); + _elem154 = iprot.readString(); + struct.allowedUsers.add(_elem154); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list143.size); - for (int _i144 = 0; _i144 < _list143.size; ++_i144) + org.apache.thrift.protocol.TList _list156 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list156.size); + NetRule _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) { - NetRule _elem145; - _elem145 = new NetRule(); - _elem145.read(iprot); - struct.networkExceptions.add(_elem145); + _elem157 = new NetRule(); + _elem157.read(iprot); + struct.networkExceptions.add(_elem157); } } struct.setNetworkExceptionsIsSet(true); @@ -2690,6 +2951,19 @@ public class LectureRead implements org.apache.thrift.TBase(_list159.size); + int _elem160; + for (int _i161 = 0; _i161 < _list159.size; ++_i161) + { + _elem160 = iprot.readI32(); + struct.locationIds.add(_elem160); + } + } + struct.setLocationIdsIsSet(true); + } } } -- cgit v1.2.3-55-g7522