summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-07 13:55:40 +0100
committerJonathan Bauer2016-01-07 13:55:40 +0100
commit5ba446543184d5af8185da23b9a5fd28133d5513 (patch)
tree5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java
parent[thrift] added generated Location class (diff)
downloadmaster-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.gz
master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.xz
master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.zip
added "onlyInLocations" flag for LectureWrite
update thrift files to 0.9.3
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java408
1 files changed, 341 insertions, 67 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 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<LectureRead, LectureRead._Fields>, java.io.Serializable, Cloneable, Comparable<LectureRead> {
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<LectureRead, Lecture
private static final org.apache.thrift.protocol.TField HAS_INTERNET_ACCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("hasInternetAccess", org.apache.thrift.protocol.TType.BOOL, (short)18);
private static final org.apache.thrift.protocol.TField DEFAULT_PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultPermissions", org.apache.thrift.protocol.TType.STRUCT, (short)19);
private static final org.apache.thrift.protocol.TField USER_PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("userPermissions", org.apache.thrift.protocol.TType.STRUCT, (short)22);
+ private static final org.apache.thrift.protocol.TField LOCATION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("locationIds", org.apache.thrift.protocol.TType.LIST, (short)25);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -88,6 +92,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
public boolean hasInternetAccess; // required
public LecturePermissions defaultPermissions; // required
public LecturePermissions userPermissions; // optional
+ public List<Integer> 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<LectureRead, Lecture
IS_EXAM((short)17, "isExam"),
HAS_INTERNET_ACCESS((short)18, "hasInternetAccess"),
DEFAULT_PERMISSIONS((short)19, "defaultPermissions"),
- USER_PERMISSIONS((short)22, "userPermissions");
+ USER_PERMISSIONS((short)22, "userPermissions"),
+ LOCATION_IDS((short)25, "locationIds");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -174,6 +180,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return DEFAULT_PERMISSIONS;
case 22: // USER_PERMISSIONS
return USER_PERMISSIONS;
+ case 25: // LOCATION_IDS
+ return LOCATION_IDS;
default:
return null;
}
@@ -225,7 +233,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
private static final int __ISEXAM_ISSET_ID = 8;
private static final int __HASINTERNETACCESS_ISSET_ID = 9;
private short __isset_bitfield = 0;
- private _Fields optionals[] = {_Fields.USER_PERMISSIONS};
+ private static final _Fields optionals[] = {_Fields.USER_PERMISSIONS};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> 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<LectureRead, Lecture
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)));
tmpMap.put(_Fields.USER_PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("userPermissions", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)));
+ tmpMap.put(_Fields.LOCATION_IDS, new org.apache.thrift.meta_data.FieldMetaData("locationIds", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LectureRead.class, metaDataMap);
}
@@ -307,7 +318,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
List<NetRule> networkExceptions,
boolean isExam,
boolean hasInternetAccess,
- LecturePermissions defaultPermissions)
+ LecturePermissions defaultPermissions,
+ List<Integer> locationIds)
{
this();
this.lectureId = lectureId;
@@ -342,6 +354,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
this.hasInternetAccess = hasInternetAccess;
setHasInternetAccessIsSet(true);
this.defaultPermissions = defaultPermissions;
+ this.locationIds = locationIds;
}
/**
@@ -404,6 +417,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (other.isSetUserPermissions()) {
this.userPermissions = new LecturePermissions(other.userPermissions);
}
+ if (other.isSetLocationIds()) {
+ List<Integer> __this__locationIds = new ArrayList<Integer>(other.locationIds);
+ this.locationIds = __this__locationIds;
+ }
}
public LectureRead deepCopy() {
@@ -445,6 +462,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
this.hasInternetAccess = false;
this.defaultPermissions = null;
this.userPermissions = null;
+ this.locationIds = null;
}
public String getLectureId() {
@@ -1034,6 +1052,45 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
}
}
+ public int getLocationIdsSize() {
+ return (this.locationIds == null) ? 0 : this.locationIds.size();
+ }
+
+ public java.util.Iterator<Integer> getLocationIdsIterator() {
+ return (this.locationIds == null) ? null : this.locationIds.iterator();
+ }
+
+ public void addToLocationIds(int elem) {
+ if (this.locationIds == null) {
+ this.locationIds = new ArrayList<Integer>();
+ }
+ this.locationIds.add(elem);
+ }
+
+ public List<Integer> getLocationIds() {
+ return this.locationIds;
+ }
+
+ public LectureRead setLocationIds(List<Integer> 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<LectureRead, Lecture
}
break;
+ case LOCATION_IDS:
+ if (value == null) {
+ unsetLocationIds();
+ } else {
+ setLocationIds((List<Integer>)value);
+ }
+ break;
+
}
}
@@ -1241,28 +1306,28 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return getImageBaseId();
case AUTO_UPDATE:
- return Boolean.valueOf(isAutoUpdate());
+ return isAutoUpdate();
case IS_ENABLED:
- return Boolean.valueOf(isIsEnabled());
+ return isIsEnabled();
case START_TIME:
- return Long.valueOf(getStartTime());
+ return getStartTime();
case END_TIME:
- return Long.valueOf(getEndTime());
+ return getEndTime();
case LAST_USED:
- return Long.valueOf(getLastUsed());
+ return getLastUsed();
case USE_COUNT:
- return Integer.valueOf(getUseCount());
+ return getUseCount();
case CREATE_TIME:
- return Long.valueOf(getCreateTime());
+ return getCreateTime();
case UPDATE_TIME:
- return Long.valueOf(getUpdateTime());
+ return getUpdateTime();
case OWNER_ID:
return getOwnerId();
@@ -1283,10 +1348,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return getNetworkExceptions();
case IS_EXAM:
- return Boolean.valueOf(isIsExam());
+ return isIsExam();
case HAS_INTERNET_ACCESS:
- return Boolean.valueOf(isHasInternetAccess());
+ return isHasInternetAccess();
case DEFAULT_PERMISSIONS:
return getDefaultPermissions();
@@ -1294,6 +1359,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
case USER_PERMISSIONS:
return getUserPermissions();
+ case LOCATION_IDS:
+ return getLocationIds();
+
}
throw new IllegalStateException();
}
@@ -1351,6 +1419,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return isSetDefaultPermissions();
case USER_PERMISSIONS:
return isSetUserPermissions();
+ case LOCATION_IDS:
+ return isSetLocationIds();
}
throw new IllegalStateException();
}
@@ -1575,12 +1645,143 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return false;
}
+ boolean this_present_locationIds = true && this.isSetLocationIds();
+ boolean that_present_locationIds = true && that.isSetLocationIds();
+ if (this_present_locationIds || that_present_locationIds) {
+ if (!(this_present_locationIds && that_present_locationIds))
+ return false;
+ if (!this.locationIds.equals(that.locationIds))
+ return false;
+ }
+
return true;
}
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ 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<LectureRead, Lecture
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetLocationIds()).compareTo(other.isSetLocationIds());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLocationIds()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationIds, other.locationIds);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -1986,6 +2197,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
}
first = false;
}
+ if (!first) sb.append(", ");
+ sb.append("locationIds:");
+ if (this.locationIds == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.locationIds);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -2168,13 +2387,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
case 14: // NICS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
- struct.nics = new ArrayList<String>(_list122.size);
- for (int _i123 = 0; _i123 < _list122.size; ++_i123)
+ org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
+ struct.nics = new ArrayList<String>(_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<LectureRead, Lecture
case 15: // ALLOWED_USERS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
- struct.allowedUsers = new ArrayList<String>(_list125.size);
- for (int _i126 = 0; _i126 < _list125.size; ++_i126)
+ org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
+ struct.allowedUsers = new ArrayList<String>(_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<LectureRead, Lecture
case 16: // NETWORK_EXCEPTIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();
- struct.networkExceptions = new ArrayList<NetRule>(_list128.size);
- for (int _i129 = 0; _i129 < _list128.size; ++_i129)
+ org.apache.thrift.protocol.TList _list136 = iprot.readListBegin();
+ struct.networkExceptions = new ArrayList<NetRule>(_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<LectureRead, Lecture
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 25: // LOCATION_IDS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list139 = iprot.readListBegin();
+ struct.locationIds = new ArrayList<Integer>(_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<LectureRead, Lecture
oprot.writeFieldBegin(NICS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.nics.size()));
- for (String _iter131 : struct.nics)
+ for (String _iter142 : struct.nics)
{
- oprot.writeString(_iter131);
+ oprot.writeString(_iter142);
}
oprot.writeListEnd();
}
@@ -2333,9 +2570,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
oprot.writeFieldBegin(ALLOWED_USERS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.allowedUsers.size()));
- for (String _iter132 : struct.allowedUsers)
+ for (String _iter143 : struct.allowedUsers)
{
- oprot.writeString(_iter132);
+ oprot.writeString(_iter143);
}
oprot.writeListEnd();
}
@@ -2345,9 +2582,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
oprot.writeFieldBegin(NETWORK_EXCEPTIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.networkExceptions.size()));
- for (NetRule _iter133 : struct.networkExceptions)
+ for (NetRule _iter144 : struct.networkExceptions)
{
- _iter133.write(oprot);
+ _iter144.write(oprot);
}
oprot.writeListEnd();
}
@@ -2387,6 +2624,18 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
oprot.writeString(struct.imageBaseId);
oprot.writeFieldEnd();
}
+ if (struct.locationIds != null) {
+ oprot.writeFieldBegin(LOCATION_IDS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.locationIds.size()));
+ for (int _iter145 : struct.locationIds)
+ {
+ oprot.writeI32(_iter145);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -2474,7 +2723,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (struct.isSetUserPermissions()) {
optionals.set(22);
}
- oprot.writeBitSet(optionals, 23);
+ if (struct.isSetLocationIds()) {
+ optionals.set(23);
+ }
+ oprot.writeBitSet(optionals, 24);
if (struct.isSetLectureId()) {
oprot.writeString(struct.lectureId);
}
@@ -2526,27 +2778,27 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (struct.isSetNics()) {
{
oprot.writeI32(struct.nics.size());
- for (String _iter134 : struct.nics)
+ for (String _iter146 : struct.nics)
{
- oprot.writeString(_iter134);
+ oprot.writeString(_iter146);
}
}
}
if (struct.isSetAllowedUsers()) {
{
oprot.writeI32(struct.allowedUsers.size());
- for (String _iter135 : struct.allowedUsers)
+ for (String _iter147 : struct.allowedUsers)
{
- oprot.writeString(_iter135);
+ oprot.writeString(_iter147);
}
}
}
if (struct.isSetNetworkExceptions()) {
{
oprot.writeI32(struct.networkExceptions.size());
- for (NetRule _iter136 : struct.networkExceptions)
+ for (NetRule _iter148 : struct.networkExceptions)
{
- _iter136.write(oprot);
+ _iter148.write(oprot);
}
}
}
@@ -2562,12 +2814,21 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (struct.isSetUserPermissions()) {
struct.userPermissions.write(oprot);
}
+ if (struct.isSetLocationIds()) {
+ {
+ oprot.writeI32(struct.locationIds.size());
+ for (int _iter149 : struct.locationIds)
+ {
+ oprot.writeI32(_iter149);
+ }
+ }
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, LectureRead struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(23);
+ BitSet incoming = iprot.readBitSet(24);
if (incoming.get(0)) {
struct.lectureId = iprot.readString();
struct.setLectureIdIsSet(true);
@@ -2634,40 +2895,40 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
}
if (incoming.get(16)) {
{
- org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.nics = new ArrayList<String>(_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<String>(_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<String>(_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<String>(_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<NetRule>(_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<NetRule>(_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<LectureRead, Lecture
struct.userPermissions.read(iprot);
struct.setUserPermissionsIsSet(true);
}
+ if (incoming.get(23)) {
+ {
+ org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
+ struct.locationIds = new ArrayList<Integer>(_list159.size);
+ int _elem160;
+ for (int _i161 = 0; _i161 < _list159.size; ++_i161)
+ {
+ _elem160 = iprot.readI32();
+ struct.locationIds.add(_elem160);
+ }
+ }
+ struct.setLocationIdsIsSet(true);
+ }
}
}