diff options
author | Simon Rettberg | 2015-06-24 18:32:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-06-24 18:32:30 +0200 |
commit | ee48ea47d7749a3b4ab14d0f20428dc05e8d1b58 (patch) | |
tree | 62f36f3471424c96fddc68a088fa31fe621ccfe4 /src/main/java/org/openslx/bwlp/thrift | |
parent | More minor interface changes (diff) | |
download | master-sync-shared-ee48ea47d7749a3b4ab14d0f20428dc05e8d1b58.tar.gz master-sync-shared-ee48ea47d7749a3b4ab14d0f20428dc05e8d1b58.tar.xz master-sync-shared-ee48ea47d7749a3b4ab14d0f20428dc05e8d1b58.zip |
API...
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java | 102 | ||||
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java | 130 |
2 files changed, 113 insertions, 119 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java index 5e13d6e..c3a45e8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java @@ -50,6 +50,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L 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)13); 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)14); 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)15); + private static final org.apache.thrift.protocol.TField IS_IMAGE_VERSION_USABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("isImageVersionUsable", org.apache.thrift.protocol.TType.BOOL, (short)16); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -72,6 +73,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L public boolean hasInternetAccess; // required public LecturePermissions defaultPermissions; // required public LecturePermissions userPermissions; // optional + public boolean isImageVersionUsable; // 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 +91,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L IS_EXAM((short)12, "isExam"), HAS_INTERNET_ACCESS((short)13, "hasInternetAccess"), DEFAULT_PERMISSIONS((short)14, "defaultPermissions"), - USER_PERMISSIONS((short)15, "userPermissions"); + USER_PERMISSIONS((short)15, "userPermissions"), + IS_IMAGE_VERSION_USABLE((short)16, "isImageVersionUsable"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -134,6 +137,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L return DEFAULT_PERMISSIONS; case 15: // USER_PERMISSIONS return USER_PERMISSIONS; + case 16: // IS_IMAGE_VERSION_USABLE + return IS_IMAGE_VERSION_USABLE; default: return null; } @@ -181,6 +186,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L private static final int __USECOUNT_ISSET_ID = 4; private static final int __ISEXAM_ISSET_ID = 5; private static final int __HASINTERNETACCESS_ISSET_ID = 6; + private static final int __ISIMAGEVERSIONUSABLE_ISSET_ID = 7; private byte __isset_bitfield = 0; private _Fields optionals[] = {_Fields.USER_PERMISSIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; @@ -216,6 +222,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L 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.IS_IMAGE_VERSION_USABLE, new org.apache.thrift.meta_data.FieldMetaData("isImageVersionUsable", 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(LectureSummary.class, metaDataMap); } @@ -237,7 +245,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L String updaterId, boolean isExam, boolean hasInternetAccess, - LecturePermissions defaultPermissions) + LecturePermissions defaultPermissions, + boolean isImageVersionUsable) { this(); this.lectureId = lectureId; @@ -261,6 +270,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L this.hasInternetAccess = hasInternetAccess; setHasInternetAccessIsSet(true); this.defaultPermissions = defaultPermissions; + this.isImageVersionUsable = isImageVersionUsable; + setIsImageVersionUsableIsSet(true); } /** @@ -299,6 +310,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L if (other.isSetUserPermissions()) { this.userPermissions = new LecturePermissions(other.userPermissions); } + this.isImageVersionUsable = other.isImageVersionUsable; } public LectureSummary deepCopy() { @@ -329,6 +341,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L this.hasInternetAccess = false; this.defaultPermissions = null; this.userPermissions = null; + setIsImageVersionUsableIsSet(false); + this.isImageVersionUsable = false; } public String getLectureId() { @@ -684,6 +698,29 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L } } + public boolean isIsImageVersionUsable() { + return this.isImageVersionUsable; + } + + public LectureSummary setIsImageVersionUsable(boolean isImageVersionUsable) { + this.isImageVersionUsable = isImageVersionUsable; + setIsImageVersionUsableIsSet(true); + return this; + } + + public void unsetIsImageVersionUsable() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISIMAGEVERSIONUSABLE_ISSET_ID); + } + + /** Returns true if field isImageVersionUsable is set (has been assigned a value) and false otherwise */ + public boolean isSetIsImageVersionUsable() { + return EncodingUtils.testBit(__isset_bitfield, __ISIMAGEVERSIONUSABLE_ISSET_ID); + } + + public void setIsImageVersionUsableIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISIMAGEVERSIONUSABLE_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_ID: @@ -806,6 +843,14 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L } break; + case IS_IMAGE_VERSION_USABLE: + if (value == null) { + unsetIsImageVersionUsable(); + } else { + setIsImageVersionUsable((Boolean)value); + } + break; + } } @@ -856,6 +901,9 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L case USER_PERMISSIONS: return getUserPermissions(); + case IS_IMAGE_VERSION_USABLE: + return Boolean.valueOf(isIsImageVersionUsable()); + } throw new IllegalStateException(); } @@ -897,6 +945,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L return isSetDefaultPermissions(); case USER_PERMISSIONS: return isSetUserPermissions(); + case IS_IMAGE_VERSION_USABLE: + return isSetIsImageVersionUsable(); } throw new IllegalStateException(); } @@ -1049,6 +1099,15 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L return false; } + boolean this_present_isImageVersionUsable = true; + boolean that_present_isImageVersionUsable = true; + if (this_present_isImageVersionUsable || that_present_isImageVersionUsable) { + if (!(this_present_isImageVersionUsable && that_present_isImageVersionUsable)) + return false; + if (this.isImageVersionUsable != that.isImageVersionUsable) + return false; + } + return true; } @@ -1215,6 +1274,16 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L return lastComparison; } } + lastComparison = Boolean.valueOf(isSetIsImageVersionUsable()).compareTo(other.isSetIsImageVersionUsable()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsImageVersionUsable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isImageVersionUsable, other.isImageVersionUsable); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1328,6 +1397,10 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L } first = false; } + if (!first) sb.append(", "); + sb.append("isImageVersionUsable:"); + sb.append(this.isImageVersionUsable); + first = false; sb.append(")"); return sb.toString(); } @@ -1501,6 +1574,14 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 16: // IS_IMAGE_VERSION_USABLE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isImageVersionUsable = iprot.readBool(); + struct.setIsImageVersionUsableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1579,6 +1660,9 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L oprot.writeFieldEnd(); } } + oprot.writeFieldBegin(IS_IMAGE_VERSION_USABLE_FIELD_DESC); + oprot.writeBool(struct.isImageVersionUsable); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1642,7 +1726,10 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L if (struct.isSetUserPermissions()) { optionals.set(14); } - oprot.writeBitSet(optionals, 15); + if (struct.isSetIsImageVersionUsable()) { + optionals.set(15); + } + oprot.writeBitSet(optionals, 16); if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } @@ -1688,12 +1775,15 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L if (struct.isSetUserPermissions()) { struct.userPermissions.write(oprot); } + if (struct.isSetIsImageVersionUsable()) { + oprot.writeBool(struct.isImageVersionUsable); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, LectureSummary struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(15); + BitSet incoming = iprot.readBitSet(16); if (incoming.get(0)) { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); @@ -1756,6 +1846,10 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L struct.userPermissions.read(iprot); struct.setUserPermissionsIsSet(true); } + if (incoming.get(15)) { + struct.isImageVersionUsable = iprot.readBool(); + struct.setIsImageVersionUsableIsSet(true); + } } } 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 2259b45..21917d6 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java @@ -42,7 +42,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu private static final org.apache.thrift.protocol.TField IS_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("isEnabled", org.apache.thrift.protocol.TType.BOOL, (short)5); private static final org.apache.thrift.protocol.TField START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startTime", org.apache.thrift.protocol.TType.I64, (short)6); private static final org.apache.thrift.protocol.TField END_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endTime", org.apache.thrift.protocol.TType.I64, (short)7); - private static final org.apache.thrift.protocol.TField OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerId", org.apache.thrift.protocol.TType.STRING, (short)8); private static final org.apache.thrift.protocol.TField RUNSCRIPT_FIELD_DESC = new org.apache.thrift.protocol.TField("runscript", org.apache.thrift.protocol.TType.STRING, (short)9); private static final org.apache.thrift.protocol.TField NICS_FIELD_DESC = new org.apache.thrift.protocol.TField("nics", org.apache.thrift.protocol.TType.LIST, (short)10); private static final org.apache.thrift.protocol.TField ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("allowedUsers", org.apache.thrift.protocol.TType.LIST, (short)11); @@ -64,7 +63,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu public boolean isEnabled; // required public long startTime; // required public long endTime; // required - public String ownerId; // required public String runscript; // required public List<String> nics; // required public List<String> allowedUsers; // optional @@ -82,7 +80,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu IS_ENABLED((short)5, "isEnabled"), START_TIME((short)6, "startTime"), END_TIME((short)7, "endTime"), - OWNER_ID((short)8, "ownerId"), RUNSCRIPT((short)9, "runscript"), NICS((short)10, "nics"), ALLOWED_USERS((short)11, "allowedUsers"), @@ -118,8 +115,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return START_TIME; case 7: // END_TIME return END_TIME; - case 8: // OWNER_ID - return OWNER_ID; case 9: // RUNSCRIPT return RUNSCRIPT; case 10: // NICS @@ -199,8 +194,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.END_TIME, new org.apache.thrift.meta_data.FieldMetaData("endTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - tmpMap.put(_Fields.OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("ownerId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.RUNSCRIPT, new org.apache.thrift.meta_data.FieldMetaData("runscript", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NICS, new org.apache.thrift.meta_data.FieldMetaData("nics", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -233,7 +226,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu boolean isEnabled, long startTime, long endTime, - String ownerId, String runscript, List<String> nics, boolean isExam, @@ -252,7 +244,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu setStartTimeIsSet(true); this.endTime = endTime; setEndTimeIsSet(true); - this.ownerId = ownerId; this.runscript = runscript; this.nics = nics; this.isExam = isExam; @@ -280,9 +271,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.isEnabled = other.isEnabled; this.startTime = other.startTime; this.endTime = other.endTime; - if (other.isSetOwnerId()) { - this.ownerId = other.ownerId; - } if (other.isSetRunscript()) { this.runscript = other.runscript; } @@ -325,7 +313,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.startTime = 0; setEndTimeIsSet(false); this.endTime = 0; - this.ownerId = null; this.runscript = null; this.nics = null; this.allowedUsers = null; @@ -501,30 +488,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENDTIME_ISSET_ID, value); } - public String getOwnerId() { - return this.ownerId; - } - - public LectureWrite setOwnerId(String ownerId) { - this.ownerId = ownerId; - return this; - } - - public void unsetOwnerId() { - this.ownerId = null; - } - - /** Returns true if field ownerId is set (has been assigned a value) and false otherwise */ - public boolean isSetOwnerId() { - return this.ownerId != null; - } - - public void setOwnerIdIsSet(boolean value) { - if (!value) { - this.ownerId = null; - } - } - public String getRunscript() { return this.runscript; } @@ -794,14 +757,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } break; - case OWNER_ID: - if (value == null) { - unsetOwnerId(); - } else { - setOwnerId((String)value); - } - break; - case RUNSCRIPT: if (value == null) { unsetRunscript(); @@ -884,9 +839,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu case END_TIME: return Long.valueOf(getEndTime()); - case OWNER_ID: - return getOwnerId(); - case RUNSCRIPT: return getRunscript(); @@ -933,8 +885,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return isSetStartTime(); case END_TIME: return isSetEndTime(); - case OWNER_ID: - return isSetOwnerId(); case RUNSCRIPT: return isSetRunscript(); case NICS: @@ -1029,15 +979,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return false; } - boolean this_present_ownerId = true && this.isSetOwnerId(); - boolean that_present_ownerId = true && that.isSetOwnerId(); - if (this_present_ownerId || that_present_ownerId) { - if (!(this_present_ownerId && that_present_ownerId)) - return false; - if (!this.ownerId.equals(that.ownerId)) - return false; - } - boolean this_present_runscript = true && this.isSetRunscript(); boolean that_present_runscript = true && that.isSetRunscript(); if (this_present_runscript || that_present_runscript) { @@ -1187,16 +1128,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerId()).compareTo(other.isSetOwnerId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOwnerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerId, other.ownerId); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetRunscript()).compareTo(other.isSetRunscript()); if (lastComparison != 0) { return lastComparison; @@ -1327,14 +1258,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu sb.append(this.endTime); first = false; if (!first) sb.append(", "); - sb.append("ownerId:"); - if (this.ownerId == null) { - sb.append("null"); - } else { - sb.append(this.ownerId); - } - first = false; - if (!first) sb.append(", "); sb.append("runscript:"); if (this.runscript == null) { sb.append("null"); @@ -1490,14 +1413,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 8: // OWNER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ownerId = iprot.readString(); - struct.setOwnerIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 9: // RUNSCRIPT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.runscript = iprot.readString(); @@ -1628,11 +1543,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(END_TIME_FIELD_DESC); oprot.writeI64(struct.endTime); oprot.writeFieldEnd(); - if (struct.ownerId != null) { - oprot.writeFieldBegin(OWNER_ID_FIELD_DESC); - oprot.writeString(struct.ownerId); - oprot.writeFieldEnd(); - } if (struct.runscript != null) { oprot.writeFieldBegin(RUNSCRIPT_FIELD_DESC); oprot.writeString(struct.runscript); @@ -1728,31 +1638,28 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetEndTime()) { optionals.set(6); } - if (struct.isSetOwnerId()) { - optionals.set(7); - } if (struct.isSetRunscript()) { - optionals.set(8); + optionals.set(7); } if (struct.isSetNics()) { - optionals.set(9); + optionals.set(8); } if (struct.isSetAllowedUsers()) { - optionals.set(10); + optionals.set(9); } if (struct.isSetNetworkExceptions()) { - optionals.set(11); + optionals.set(10); } if (struct.isSetIsExam()) { - optionals.set(12); + optionals.set(11); } if (struct.isSetHasInternetAccess()) { - optionals.set(13); + optionals.set(12); } if (struct.isSetDefaultPermissions()) { - optionals.set(14); + optionals.set(13); } - oprot.writeBitSet(optionals, 15); + oprot.writeBitSet(optionals, 14); if (struct.isSetLectureName()) { oprot.writeString(struct.lectureName); } @@ -1774,9 +1681,6 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetEndTime()) { oprot.writeI64(struct.endTime); } - if (struct.isSetOwnerId()) { - oprot.writeString(struct.ownerId); - } if (struct.isSetRunscript()) { oprot.writeString(struct.runscript); } @@ -1821,7 +1725,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu @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(14); if (incoming.get(0)) { struct.lectureName = iprot.readString(); struct.setLectureNameIsSet(true); @@ -1851,14 +1755,10 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu struct.setEndTimeIsSet(true); } if (incoming.get(7)) { - struct.ownerId = iprot.readString(); - struct.setOwnerIdIsSet(true); - } - if (incoming.get(8)) { struct.runscript = iprot.readString(); struct.setRunscriptIsSet(true); } - if (incoming.get(9)) { + if (incoming.get(8)) { { org.apache.thrift.protocol.TList _list73 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.nics = new ArrayList<String>(_list73.size); @@ -1871,7 +1771,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } struct.setNicsIsSet(true); } - if (incoming.get(10)) { + if (incoming.get(9)) { { org.apache.thrift.protocol.TList _list76 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.allowedUsers = new ArrayList<String>(_list76.size); @@ -1884,7 +1784,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } struct.setAllowedUsersIsSet(true); } - if (incoming.get(11)) { + if (incoming.get(10)) { { org.apache.thrift.protocol.TList _list79 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.networkExceptions = new ArrayList<NetRule>(_list79.size); @@ -1898,15 +1798,15 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } struct.setNetworkExceptionsIsSet(true); } - if (incoming.get(12)) { + if (incoming.get(11)) { struct.isExam = iprot.readBool(); struct.setIsExamIsSet(true); } - if (incoming.get(13)) { + if (incoming.get(12)) { struct.hasInternetAccess = iprot.readBool(); struct.setHasInternetAccessIsSet(true); } - if (incoming.get(14)) { + if (incoming.get(13)) { struct.defaultPermissions = new LecturePermissions(); struct.defaultPermissions.read(iprot); struct.setDefaultPermissionsIsSet(true); |