diff options
author | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
commit | 5ba446543184d5af8185da23b9a5fd28133d5513 (patch) | |
tree | 5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java | |
parent | [thrift] added generated Location class (diff) | |
download | master-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/LectureWrite.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java | 475 |
1 files changed, 404 insertions, 71 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java index 5d74611..9f29fa8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.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 LectureWrite implements org.apache.thrift.TBase<LectureWrite, LectureWrite._Fields>, java.io.Serializable, Cloneable, Comparable<LectureWrite> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureWrite"); @@ -50,6 +53,8 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu 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)15); private static final org.apache.thrift.protocol.TField ADD_ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("addAllowedUsers", org.apache.thrift.protocol.TType.LIST, (short)11); private static final org.apache.thrift.protocol.TField REM_ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("remAllowedUsers", org.apache.thrift.protocol.TType.LIST, (short)16); + 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)17); + private static final org.apache.thrift.protocol.TField LIMIT_TO_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("limitToLocations", org.apache.thrift.protocol.TType.BOOL, (short)18); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -72,6 +77,8 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu public LecturePermissions defaultPermissions; // required public List<String> addAllowedUsers; // optional public List<String> remAllowedUsers; // optional + public List<Integer> locationIds; // required + public boolean limitToLocations; // 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 { @@ -89,7 +96,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu HAS_INTERNET_ACCESS((short)14, "hasInternetAccess"), DEFAULT_PERMISSIONS((short)15, "defaultPermissions"), ADD_ALLOWED_USERS((short)11, "addAllowedUsers"), - REM_ALLOWED_USERS((short)16, "remAllowedUsers"); + REM_ALLOWED_USERS((short)16, "remAllowedUsers"), + LOCATION_IDS((short)17, "locationIds"), + LIMIT_TO_LOCATIONS((short)18, "limitToLocations"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -134,6 +143,10 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return ADD_ALLOWED_USERS; case 16: // REM_ALLOWED_USERS return REM_ALLOWED_USERS; + case 17: // LOCATION_IDS + return LOCATION_IDS; + case 18: // LIMIT_TO_LOCATIONS + return LIMIT_TO_LOCATIONS; default: return null; } @@ -180,8 +193,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu private static final int __ENDTIME_ISSET_ID = 3; private static final int __ISEXAM_ISSET_ID = 4; private static final int __HASINTERNETACCESS_ISSET_ID = 5; + private static final int __LIMITTOLOCATIONS_ISSET_ID = 6; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.NETWORK_EXCEPTIONS,_Fields.ADD_ALLOWED_USERS,_Fields.REM_ALLOWED_USERS}; + private static final _Fields optionals[] = {_Fields.NETWORK_EXCEPTIONS,_Fields.ADD_ALLOWED_USERS,_Fields.REM_ALLOWED_USERS}; 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); @@ -219,6 +233,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu tmpMap.put(_Fields.REM_ALLOWED_USERS, new org.apache.thrift.meta_data.FieldMetaData("remAllowedUsers", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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.STRING)))); + 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)))); + tmpMap.put(_Fields.LIMIT_TO_LOCATIONS, new org.apache.thrift.meta_data.FieldMetaData("limitToLocations", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LectureWrite.class, metaDataMap); } @@ -238,7 +257,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu List<String> nics, boolean isExam, boolean hasInternetAccess, - LecturePermissions defaultPermissions) + LecturePermissions defaultPermissions, + List<Integer> locationIds, + boolean limitToLocations) { this(); this.lectureName = lectureName; @@ -259,6 +280,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.hasInternetAccess = hasInternetAccess; setHasInternetAccessIsSet(true); this.defaultPermissions = defaultPermissions; + this.locationIds = locationIds; + this.limitToLocations = limitToLocations; + setLimitToLocationsIsSet(true); } /** @@ -306,6 +330,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu List<String> __this__remAllowedUsers = new ArrayList<String>(other.remAllowedUsers); this.remAllowedUsers = __this__remAllowedUsers; } + if (other.isSetLocationIds()) { + List<Integer> __this__locationIds = new ArrayList<Integer>(other.locationIds); + this.locationIds = __this__locationIds; + } + this.limitToLocations = other.limitToLocations; } public LectureWrite deepCopy() { @@ -335,6 +364,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.defaultPermissions = null; this.addAllowedUsers = null; this.remAllowedUsers = null; + this.locationIds = null; + setLimitToLocationsIsSet(false); + this.limitToLocations = false; } public String getLectureName() { @@ -751,6 +783,68 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } + 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 LectureWrite 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 boolean isLimitToLocations() { + return this.limitToLocations; + } + + public LectureWrite setLimitToLocations(boolean limitToLocations) { + this.limitToLocations = limitToLocations; + setLimitToLocationsIsSet(true); + return this; + } + + public void unsetLimitToLocations() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); + } + + /** Returns true if field limitToLocations is set (has been assigned a value) and false otherwise */ + public boolean isSetLimitToLocations() { + return EncodingUtils.testBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); + } + + public void setLimitToLocationsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_NAME: @@ -873,6 +967,22 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } break; + case LOCATION_IDS: + if (value == null) { + unsetLocationIds(); + } else { + setLocationIds((List<Integer>)value); + } + break; + + case LIMIT_TO_LOCATIONS: + if (value == null) { + unsetLimitToLocations(); + } else { + setLimitToLocations((Boolean)value); + } + break; + } } @@ -888,16 +998,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return getImageVersionId(); 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 RUNSCRIPT: return getRunscript(); @@ -909,10 +1019,10 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu 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(); @@ -923,6 +1033,12 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu case REM_ALLOWED_USERS: return getRemAllowedUsers(); + case LOCATION_IDS: + return getLocationIds(); + + case LIMIT_TO_LOCATIONS: + return isLimitToLocations(); + } throw new IllegalStateException(); } @@ -964,6 +1080,10 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return isSetAddAllowedUsers(); case REM_ALLOWED_USERS: return isSetRemAllowedUsers(); + case LOCATION_IDS: + return isSetLocationIds(); + case LIMIT_TO_LOCATIONS: + return isSetLimitToLocations(); } throw new IllegalStateException(); } @@ -1116,12 +1236,117 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu 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; + } + + boolean this_present_limitToLocations = true; + boolean that_present_limitToLocations = true; + if (this_present_limitToLocations || that_present_limitToLocations) { + if (!(this_present_limitToLocations && that_present_limitToLocations)) + return false; + if (this.limitToLocations != that.limitToLocations) + return false; + } + return true; } @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + 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_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_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_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_addAllowedUsers = true && (isSetAddAllowedUsers()); + list.add(present_addAllowedUsers); + if (present_addAllowedUsers) + list.add(addAllowedUsers); + + boolean present_remAllowedUsers = true && (isSetRemAllowedUsers()); + list.add(present_remAllowedUsers); + if (present_remAllowedUsers) + list.add(remAllowedUsers); + + boolean present_locationIds = true && (isSetLocationIds()); + list.add(present_locationIds); + if (present_locationIds) + list.add(locationIds); + + boolean present_limitToLocations = true; + list.add(present_limitToLocations); + if (present_limitToLocations) + list.add(limitToLocations); + + return list.hashCode(); } @Override @@ -1282,6 +1507,26 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu 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; + } + } + lastComparison = Boolean.valueOf(isSetLimitToLocations()).compareTo(other.isSetLimitToLocations()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimitToLocations()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limitToLocations, other.limitToLocations); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1403,6 +1648,18 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } first = false; } + if (!first) sb.append(", "); + sb.append("locationIds:"); + if (this.locationIds == null) { + sb.append("null"); + } else { + sb.append(this.locationIds); + } + first = false; + if (!first) sb.append(", "); + sb.append("limitToLocations:"); + sb.append(this.limitToLocations); + first = false; sb.append(")"); return sb.toString(); } @@ -1520,11 +1777,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu { org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(); struct.nics = new ArrayList<String>(_list90.size); - for (int _i91 = 0; _i91 < _list90.size; ++_i91) + String _elem91; + for (int _i92 = 0; _i92 < _list90.size; ++_i92) { - String _elem92; - _elem92 = iprot.readString(); - struct.nics.add(_elem92); + _elem91 = iprot.readString(); + struct.nics.add(_elem91); } iprot.readListEnd(); } @@ -1538,12 +1795,12 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu { org.apache.thrift.protocol.TList _list93 = iprot.readListBegin(); struct.networkExceptions = new ArrayList<NetRule>(_list93.size); - for (int _i94 = 0; _i94 < _list93.size; ++_i94) + NetRule _elem94; + for (int _i95 = 0; _i95 < _list93.size; ++_i95) { - NetRule _elem95; - _elem95 = new NetRule(); - _elem95.read(iprot); - struct.networkExceptions.add(_elem95); + _elem94 = new NetRule(); + _elem94.read(iprot); + struct.networkExceptions.add(_elem94); } iprot.readListEnd(); } @@ -1582,11 +1839,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu { org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); struct.addAllowedUsers = new ArrayList<String>(_list96.size); - for (int _i97 = 0; _i97 < _list96.size; ++_i97) + String _elem97; + for (int _i98 = 0; _i98 < _list96.size; ++_i98) { - String _elem98; - _elem98 = iprot.readString(); - struct.addAllowedUsers.add(_elem98); + _elem97 = iprot.readString(); + struct.addAllowedUsers.add(_elem97); } iprot.readListEnd(); } @@ -1600,11 +1857,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu { org.apache.thrift.protocol.TList _list99 = iprot.readListBegin(); struct.remAllowedUsers = new ArrayList<String>(_list99.size); - for (int _i100 = 0; _i100 < _list99.size; ++_i100) + String _elem100; + for (int _i101 = 0; _i101 < _list99.size; ++_i101) { - String _elem101; - _elem101 = iprot.readString(); - struct.remAllowedUsers.add(_elem101); + _elem100 = iprot.readString(); + struct.remAllowedUsers.add(_elem100); } iprot.readListEnd(); } @@ -1613,6 +1870,32 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 17: // LOCATION_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); + struct.locationIds = new ArrayList<Integer>(_list102.size); + int _elem103; + for (int _i104 = 0; _i104 < _list102.size; ++_i104) + { + _elem103 = iprot.readI32(); + struct.locationIds.add(_elem103); + } + iprot.readListEnd(); + } + struct.setLocationIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 18: // LIMIT_TO_LOCATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.limitToLocations = iprot.readBool(); + struct.setLimitToLocationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1664,9 +1947,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(NICS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.nics.size())); - for (String _iter102 : struct.nics) + for (String _iter105 : struct.nics) { - oprot.writeString(_iter102); + oprot.writeString(_iter105); } oprot.writeListEnd(); } @@ -1677,9 +1960,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(ADD_ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addAllowedUsers.size())); - for (String _iter103 : struct.addAllowedUsers) + for (String _iter106 : struct.addAllowedUsers) { - oprot.writeString(_iter103); + oprot.writeString(_iter106); } oprot.writeListEnd(); } @@ -1691,9 +1974,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu 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 _iter104 : struct.networkExceptions) + for (NetRule _iter107 : struct.networkExceptions) { - _iter104.write(oprot); + _iter107.write(oprot); } oprot.writeListEnd(); } @@ -1716,15 +1999,30 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(REM_ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.remAllowedUsers.size())); - for (String _iter105 : struct.remAllowedUsers) + for (String _iter108 : struct.remAllowedUsers) { - oprot.writeString(_iter105); + oprot.writeString(_iter108); } oprot.writeListEnd(); } 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 _iter109 : struct.locationIds) + { + oprot.writeI32(_iter109); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_TO_LOCATIONS_FIELD_DESC); + oprot.writeBool(struct.limitToLocations); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1788,7 +2086,13 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetRemAllowedUsers()) { optionals.set(14); } - oprot.writeBitSet(optionals, 15); + if (struct.isSetLocationIds()) { + optionals.set(15); + } + if (struct.isSetLimitToLocations()) { + optionals.set(16); + } + oprot.writeBitSet(optionals, 17); if (struct.isSetLectureName()) { oprot.writeString(struct.lectureName); } @@ -1816,18 +2120,18 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetNics()) { { oprot.writeI32(struct.nics.size()); - for (String _iter106 : struct.nics) + for (String _iter110 : struct.nics) { - oprot.writeString(_iter106); + oprot.writeString(_iter110); } } } if (struct.isSetNetworkExceptions()) { { oprot.writeI32(struct.networkExceptions.size()); - for (NetRule _iter107 : struct.networkExceptions) + for (NetRule _iter111 : struct.networkExceptions) { - _iter107.write(oprot); + _iter111.write(oprot); } } } @@ -1843,27 +2147,39 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetAddAllowedUsers()) { { oprot.writeI32(struct.addAllowedUsers.size()); - for (String _iter108 : struct.addAllowedUsers) + for (String _iter112 : struct.addAllowedUsers) { - oprot.writeString(_iter108); + oprot.writeString(_iter112); } } } if (struct.isSetRemAllowedUsers()) { { oprot.writeI32(struct.remAllowedUsers.size()); - for (String _iter109 : struct.remAllowedUsers) + for (String _iter113 : struct.remAllowedUsers) + { + oprot.writeString(_iter113); + } + } + } + if (struct.isSetLocationIds()) { + { + oprot.writeI32(struct.locationIds.size()); + for (int _iter114 : struct.locationIds) { - oprot.writeString(_iter109); + oprot.writeI32(_iter114); } } } + if (struct.isSetLimitToLocations()) { + oprot.writeBool(struct.limitToLocations); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, LectureWrite struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(15); + BitSet incoming = iprot.readBitSet(17); if (incoming.get(0)) { struct.lectureName = iprot.readString(); struct.setLectureNameIsSet(true); @@ -1898,27 +2214,27 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list110 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.nics = new ArrayList<String>(_list110.size); - for (int _i111 = 0; _i111 < _list110.size; ++_i111) + org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList<String>(_list115.size); + String _elem116; + for (int _i117 = 0; _i117 < _list115.size; ++_i117) { - String _elem112; - _elem112 = iprot.readString(); - struct.nics.add(_elem112); + _elem116 = iprot.readString(); + struct.nics.add(_elem116); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList<NetRule>(_list113.size); - for (int _i114 = 0; _i114 < _list113.size; ++_i114) + org.apache.thrift.protocol.TList _list118 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList<NetRule>(_list118.size); + NetRule _elem119; + for (int _i120 = 0; _i120 < _list118.size; ++_i120) { - NetRule _elem115; - _elem115 = new NetRule(); - _elem115.read(iprot); - struct.networkExceptions.add(_elem115); + _elem119 = new NetRule(); + _elem119.read(iprot); + struct.networkExceptions.add(_elem119); } } struct.setNetworkExceptionsIsSet(true); @@ -1938,30 +2254,47 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } if (incoming.get(13)) { { - org.apache.thrift.protocol.TList _list116 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addAllowedUsers = new ArrayList<String>(_list116.size); - for (int _i117 = 0; _i117 < _list116.size; ++_i117) + org.apache.thrift.protocol.TList _list121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addAllowedUsers = new ArrayList<String>(_list121.size); + String _elem122; + for (int _i123 = 0; _i123 < _list121.size; ++_i123) { - String _elem118; - _elem118 = iprot.readString(); - struct.addAllowedUsers.add(_elem118); + _elem122 = iprot.readString(); + struct.addAllowedUsers.add(_elem122); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList<String>(_list119.size); - for (int _i120 = 0; _i120 < _list119.size; ++_i120) + org.apache.thrift.protocol.TList _list124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.remAllowedUsers = new ArrayList<String>(_list124.size); + String _elem125; + for (int _i126 = 0; _i126 < _list124.size; ++_i126) { - String _elem121; - _elem121 = iprot.readString(); - struct.remAllowedUsers.add(_elem121); + _elem125 = iprot.readString(); + struct.remAllowedUsers.add(_elem125); } } struct.setRemAllowedUsersIsSet(true); } + if (incoming.get(15)) { + { + org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.locationIds = new ArrayList<Integer>(_list127.size); + int _elem128; + for (int _i129 = 0; _i129 < _list127.size; ++_i129) + { + _elem128 = iprot.readI32(); + struct.locationIds.add(_elem128); + } + } + struct.setLocationIdsIsSet(true); + } + if (incoming.get(16)) { + struct.limitToLocations = iprot.readBool(); + struct.setLimitToLocationsIsSet(true); + } } } |