diff options
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.java | 838 |
1 files changed, 731 insertions, 107 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 1075a49..be1aa0c 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 = "2018-06-13") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") 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"); @@ -67,6 +67,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture private static final org.apache.thrift.protocol.TField HAS_USB_ACCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("hasUsbAccess", org.apache.thrift.protocol.TType.BOOL, (short)28); private static final org.apache.thrift.protocol.TField NETWORK_SHARES_FIELD_DESC = new org.apache.thrift.protocol.TField("networkShares", org.apache.thrift.protocol.TType.LIST, (short)29); private static final org.apache.thrift.protocol.TField LDAP_FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("ldapFilters", org.apache.thrift.protocol.TType.LIST, (short)30); + private static final org.apache.thrift.protocol.TField PRESET_SCRIPT_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetScriptIds", org.apache.thrift.protocol.TType.LIST, (short)31); + private static final org.apache.thrift.protocol.TField PRESET_NETWORK_SHARES_FIELD_DESC = new org.apache.thrift.protocol.TField("presetNetworkShares", org.apache.thrift.protocol.TType.LIST, (short)32); + private static final org.apache.thrift.protocol.TField PRESET_LDAP_FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetLdapFilters", org.apache.thrift.protocol.TType.LIST, (short)33); + private static final org.apache.thrift.protocol.TField PRESET_NETWORK_EXCEPTION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetNetworkExceptionIds", org.apache.thrift.protocol.TType.LIST, (short)34); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -103,6 +107,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture public boolean hasUsbAccess; // required public List<NetShare> networkShares; // optional public List<LdapFilter> ldapFilters; // optional + public List<Integer> presetScriptIds; // optional + public List<Integer> presetNetworkShares; // optional + public List<Integer> presetLdapFilters; // optional + public List<Integer> presetNetworkExceptionIds; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -134,7 +142,11 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture LIMIT_TO_ALLOWED_USERS((short)27, "limitToAllowedUsers"), HAS_USB_ACCESS((short)28, "hasUsbAccess"), NETWORK_SHARES((short)29, "networkShares"), - LDAP_FILTERS((short)30, "ldapFilters"); + LDAP_FILTERS((short)30, "ldapFilters"), + PRESET_SCRIPT_IDS((short)31, "presetScriptIds"), + PRESET_NETWORK_SHARES((short)32, "presetNetworkShares"), + PRESET_LDAP_FILTERS((short)33, "presetLdapFilters"), + PRESET_NETWORK_EXCEPTION_IDS((short)34, "presetNetworkExceptionIds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -207,6 +219,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return NETWORK_SHARES; case 30: // LDAP_FILTERS return LDAP_FILTERS; + case 31: // PRESET_SCRIPT_IDS + return PRESET_SCRIPT_IDS; + case 32: // PRESET_NETWORK_SHARES + return PRESET_NETWORK_SHARES; + case 33: // PRESET_LDAP_FILTERS + return PRESET_LDAP_FILTERS; + case 34: // PRESET_NETWORK_EXCEPTION_IDS + return PRESET_NETWORK_EXCEPTION_IDS; default: return null; } @@ -261,7 +281,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture private static final int __LIMITTOALLOWEDUSERS_ISSET_ID = 11; private static final int __HASUSBACCESS_ISSET_ID = 12; private short __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.USER_PERMISSIONS,_Fields.NETWORK_SHARES,_Fields.LDAP_FILTERS}; + private static final _Fields optionals[] = {_Fields.USER_PERMISSIONS,_Fields.NETWORK_SHARES,_Fields.LDAP_FILTERS,_Fields.PRESET_SCRIPT_IDS,_Fields.PRESET_NETWORK_SHARES,_Fields.PRESET_LDAP_FILTERS,_Fields.PRESET_NETWORK_EXCEPTION_IDS}; 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); @@ -329,6 +349,18 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture tmpMap.put(_Fields.LDAP_FILTERS, new org.apache.thrift.meta_data.FieldMetaData("ldapFilters", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LdapFilter.class)))); + tmpMap.put(_Fields.PRESET_SCRIPT_IDS, new org.apache.thrift.meta_data.FieldMetaData("presetScriptIds", 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.I32)))); + tmpMap.put(_Fields.PRESET_NETWORK_SHARES, new org.apache.thrift.meta_data.FieldMetaData("presetNetworkShares", 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.I32)))); + tmpMap.put(_Fields.PRESET_LDAP_FILTERS, new org.apache.thrift.meta_data.FieldMetaData("presetLdapFilters", 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.I32)))); + tmpMap.put(_Fields.PRESET_NETWORK_EXCEPTION_IDS, new org.apache.thrift.meta_data.FieldMetaData("presetNetworkExceptionIds", 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.I32)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LectureRead.class, metaDataMap); } @@ -487,6 +519,22 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } this.ldapFilters = __this__ldapFilters; } + if (other.isSetPresetScriptIds()) { + List<Integer> __this__presetScriptIds = new ArrayList<Integer>(other.presetScriptIds); + this.presetScriptIds = __this__presetScriptIds; + } + if (other.isSetPresetNetworkShares()) { + List<Integer> __this__presetNetworkShares = new ArrayList<Integer>(other.presetNetworkShares); + this.presetNetworkShares = __this__presetNetworkShares; + } + if (other.isSetPresetLdapFilters()) { + List<Integer> __this__presetLdapFilters = new ArrayList<Integer>(other.presetLdapFilters); + this.presetLdapFilters = __this__presetLdapFilters; + } + if (other.isSetPresetNetworkExceptionIds()) { + List<Integer> __this__presetNetworkExceptionIds = new ArrayList<Integer>(other.presetNetworkExceptionIds); + this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; + } } public LectureRead deepCopy() { @@ -537,6 +585,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture this.hasUsbAccess = false; this.networkShares = null; this.ldapFilters = null; + this.presetScriptIds = null; + this.presetNetworkShares = null; + this.presetLdapFilters = null; + this.presetNetworkExceptionIds = null; } public String getLectureId() { @@ -1312,6 +1364,162 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } + public int getPresetScriptIdsSize() { + return (this.presetScriptIds == null) ? 0 : this.presetScriptIds.size(); + } + + public java.util.Iterator<Integer> getPresetScriptIdsIterator() { + return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); + } + + public void addToPresetScriptIds(int elem) { + if (this.presetScriptIds == null) { + this.presetScriptIds = new ArrayList<Integer>(); + } + this.presetScriptIds.add(elem); + } + + public List<Integer> getPresetScriptIds() { + return this.presetScriptIds; + } + + public LectureRead setPresetScriptIds(List<Integer> presetScriptIds) { + this.presetScriptIds = presetScriptIds; + return this; + } + + public void unsetPresetScriptIds() { + this.presetScriptIds = null; + } + + /** Returns true if field presetScriptIds is set (has been assigned a value) and false otherwise */ + public boolean isSetPresetScriptIds() { + return this.presetScriptIds != null; + } + + public void setPresetScriptIdsIsSet(boolean value) { + if (!value) { + this.presetScriptIds = null; + } + } + + public int getPresetNetworkSharesSize() { + return (this.presetNetworkShares == null) ? 0 : this.presetNetworkShares.size(); + } + + public java.util.Iterator<Integer> getPresetNetworkSharesIterator() { + return (this.presetNetworkShares == null) ? null : this.presetNetworkShares.iterator(); + } + + public void addToPresetNetworkShares(int elem) { + if (this.presetNetworkShares == null) { + this.presetNetworkShares = new ArrayList<Integer>(); + } + this.presetNetworkShares.add(elem); + } + + public List<Integer> getPresetNetworkShares() { + return this.presetNetworkShares; + } + + public LectureRead setPresetNetworkShares(List<Integer> presetNetworkShares) { + this.presetNetworkShares = presetNetworkShares; + return this; + } + + public void unsetPresetNetworkShares() { + this.presetNetworkShares = null; + } + + /** Returns true if field presetNetworkShares is set (has been assigned a value) and false otherwise */ + public boolean isSetPresetNetworkShares() { + return this.presetNetworkShares != null; + } + + public void setPresetNetworkSharesIsSet(boolean value) { + if (!value) { + this.presetNetworkShares = null; + } + } + + public int getPresetLdapFiltersSize() { + return (this.presetLdapFilters == null) ? 0 : this.presetLdapFilters.size(); + } + + public java.util.Iterator<Integer> getPresetLdapFiltersIterator() { + return (this.presetLdapFilters == null) ? null : this.presetLdapFilters.iterator(); + } + + public void addToPresetLdapFilters(int elem) { + if (this.presetLdapFilters == null) { + this.presetLdapFilters = new ArrayList<Integer>(); + } + this.presetLdapFilters.add(elem); + } + + public List<Integer> getPresetLdapFilters() { + return this.presetLdapFilters; + } + + public LectureRead setPresetLdapFilters(List<Integer> presetLdapFilters) { + this.presetLdapFilters = presetLdapFilters; + return this; + } + + public void unsetPresetLdapFilters() { + this.presetLdapFilters = null; + } + + /** Returns true if field presetLdapFilters is set (has been assigned a value) and false otherwise */ + public boolean isSetPresetLdapFilters() { + return this.presetLdapFilters != null; + } + + public void setPresetLdapFiltersIsSet(boolean value) { + if (!value) { + this.presetLdapFilters = null; + } + } + + public int getPresetNetworkExceptionIdsSize() { + return (this.presetNetworkExceptionIds == null) ? 0 : this.presetNetworkExceptionIds.size(); + } + + public java.util.Iterator<Integer> getPresetNetworkExceptionIdsIterator() { + return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); + } + + public void addToPresetNetworkExceptionIds(int elem) { + if (this.presetNetworkExceptionIds == null) { + this.presetNetworkExceptionIds = new ArrayList<Integer>(); + } + this.presetNetworkExceptionIds.add(elem); + } + + public List<Integer> getPresetNetworkExceptionIds() { + return this.presetNetworkExceptionIds; + } + + public LectureRead setPresetNetworkExceptionIds(List<Integer> presetNetworkExceptionIds) { + this.presetNetworkExceptionIds = presetNetworkExceptionIds; + return this; + } + + public void unsetPresetNetworkExceptionIds() { + this.presetNetworkExceptionIds = null; + } + + /** Returns true if field presetNetworkExceptionIds is set (has been assigned a value) and false otherwise */ + public boolean isSetPresetNetworkExceptionIds() { + return this.presetNetworkExceptionIds != null; + } + + public void setPresetNetworkExceptionIdsIsSet(boolean value) { + if (!value) { + this.presetNetworkExceptionIds = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_ID: @@ -1546,6 +1754,38 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } break; + case PRESET_SCRIPT_IDS: + if (value == null) { + unsetPresetScriptIds(); + } else { + setPresetScriptIds((List<Integer>)value); + } + break; + + case PRESET_NETWORK_SHARES: + if (value == null) { + unsetPresetNetworkShares(); + } else { + setPresetNetworkShares((List<Integer>)value); + } + break; + + case PRESET_LDAP_FILTERS: + if (value == null) { + unsetPresetLdapFilters(); + } else { + setPresetLdapFilters((List<Integer>)value); + } + break; + + case PRESET_NETWORK_EXCEPTION_IDS: + if (value == null) { + unsetPresetNetworkExceptionIds(); + } else { + setPresetNetworkExceptionIds((List<Integer>)value); + } + break; + } } @@ -1638,6 +1878,18 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case LDAP_FILTERS: return getLdapFilters(); + case PRESET_SCRIPT_IDS: + return getPresetScriptIds(); + + case PRESET_NETWORK_SHARES: + return getPresetNetworkShares(); + + case PRESET_LDAP_FILTERS: + return getPresetLdapFilters(); + + case PRESET_NETWORK_EXCEPTION_IDS: + return getPresetNetworkExceptionIds(); + } throw new IllegalStateException(); } @@ -1707,6 +1959,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return isSetNetworkShares(); case LDAP_FILTERS: return isSetLdapFilters(); + case PRESET_SCRIPT_IDS: + return isSetPresetScriptIds(); + case PRESET_NETWORK_SHARES: + return isSetPresetNetworkShares(); + case PRESET_LDAP_FILTERS: + return isSetPresetLdapFilters(); + case PRESET_NETWORK_EXCEPTION_IDS: + return isSetPresetNetworkExceptionIds(); } throw new IllegalStateException(); } @@ -1985,6 +2245,42 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return false; } + boolean this_present_presetScriptIds = true && this.isSetPresetScriptIds(); + boolean that_present_presetScriptIds = true && that.isSetPresetScriptIds(); + if (this_present_presetScriptIds || that_present_presetScriptIds) { + if (!(this_present_presetScriptIds && that_present_presetScriptIds)) + return false; + if (!this.presetScriptIds.equals(that.presetScriptIds)) + return false; + } + + boolean this_present_presetNetworkShares = true && this.isSetPresetNetworkShares(); + boolean that_present_presetNetworkShares = true && that.isSetPresetNetworkShares(); + if (this_present_presetNetworkShares || that_present_presetNetworkShares) { + if (!(this_present_presetNetworkShares && that_present_presetNetworkShares)) + return false; + if (!this.presetNetworkShares.equals(that.presetNetworkShares)) + return false; + } + + boolean this_present_presetLdapFilters = true && this.isSetPresetLdapFilters(); + boolean that_present_presetLdapFilters = true && that.isSetPresetLdapFilters(); + if (this_present_presetLdapFilters || that_present_presetLdapFilters) { + if (!(this_present_presetLdapFilters && that_present_presetLdapFilters)) + return false; + if (!this.presetLdapFilters.equals(that.presetLdapFilters)) + return false; + } + + boolean this_present_presetNetworkExceptionIds = true && this.isSetPresetNetworkExceptionIds(); + boolean that_present_presetNetworkExceptionIds = true && that.isSetPresetNetworkExceptionIds(); + if (this_present_presetNetworkExceptionIds || that_present_presetNetworkExceptionIds) { + if (!(this_present_presetNetworkExceptionIds && that_present_presetNetworkExceptionIds)) + return false; + if (!this.presetNetworkExceptionIds.equals(that.presetNetworkExceptionIds)) + return false; + } + return true; } @@ -2137,6 +2433,26 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (present_ldapFilters) list.add(ldapFilters); + boolean present_presetScriptIds = true && (isSetPresetScriptIds()); + list.add(present_presetScriptIds); + if (present_presetScriptIds) + list.add(presetScriptIds); + + boolean present_presetNetworkShares = true && (isSetPresetNetworkShares()); + list.add(present_presetNetworkShares); + if (present_presetNetworkShares) + list.add(presetNetworkShares); + + boolean present_presetLdapFilters = true && (isSetPresetLdapFilters()); + list.add(present_presetLdapFilters); + if (present_presetLdapFilters) + list.add(presetLdapFilters); + + boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); + list.add(present_presetNetworkExceptionIds); + if (present_presetNetworkExceptionIds) + list.add(presetNetworkExceptionIds); + return list.hashCode(); } @@ -2438,6 +2754,46 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPresetScriptIds()).compareTo(other.isSetPresetScriptIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPresetScriptIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetScriptIds, other.presetScriptIds); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPresetNetworkShares()).compareTo(other.isSetPresetNetworkShares()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPresetNetworkShares()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetNetworkShares, other.presetNetworkShares); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPresetLdapFilters()).compareTo(other.isSetPresetLdapFilters()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPresetLdapFilters()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetLdapFilters, other.presetLdapFilters); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPresetNetworkExceptionIds()).compareTo(other.isSetPresetNetworkExceptionIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPresetNetworkExceptionIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetNetworkExceptionIds, other.presetNetworkExceptionIds); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -2643,6 +2999,46 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } first = false; } + if (isSetPresetScriptIds()) { + if (!first) sb.append(", "); + sb.append("presetScriptIds:"); + if (this.presetScriptIds == null) { + sb.append("null"); + } else { + sb.append(this.presetScriptIds); + } + first = false; + } + if (isSetPresetNetworkShares()) { + if (!first) sb.append(", "); + sb.append("presetNetworkShares:"); + if (this.presetNetworkShares == null) { + sb.append("null"); + } else { + sb.append(this.presetNetworkShares); + } + first = false; + } + if (isSetPresetLdapFilters()) { + if (!first) sb.append(", "); + sb.append("presetLdapFilters:"); + if (this.presetLdapFilters == null) { + sb.append("null"); + } else { + sb.append(this.presetLdapFilters); + } + first = false; + } + if (isSetPresetNetworkExceptionIds()) { + if (!first) sb.append(", "); + sb.append("presetNetworkExceptionIds:"); + if (this.presetNetworkExceptionIds == null) { + sb.append("null"); + } else { + sb.append(this.presetNetworkExceptionIds); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -2825,13 +3221,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 _list146 = iprot.readListBegin(); - struct.nics = new ArrayList<String>(_list146.size); - String _elem147; - for (int _i148 = 0; _i148 < _list146.size; ++_i148) + org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); + struct.nics = new ArrayList<String>(_list202.size); + String _elem203; + for (int _i204 = 0; _i204 < _list202.size; ++_i204) { - _elem147 = iprot.readString(); - struct.nics.add(_elem147); + _elem203 = iprot.readString(); + struct.nics.add(_elem203); } iprot.readListEnd(); } @@ -2843,13 +3239,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 _list149 = iprot.readListBegin(); - struct.allowedUsers = new ArrayList<String>(_list149.size); - String _elem150; - for (int _i151 = 0; _i151 < _list149.size; ++_i151) + org.apache.thrift.protocol.TList _list205 = iprot.readListBegin(); + struct.allowedUsers = new ArrayList<String>(_list205.size); + String _elem206; + for (int _i207 = 0; _i207 < _list205.size; ++_i207) { - _elem150 = iprot.readString(); - struct.allowedUsers.add(_elem150); + _elem206 = iprot.readString(); + struct.allowedUsers.add(_elem206); } iprot.readListEnd(); } @@ -2861,14 +3257,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 _list152 = iprot.readListBegin(); - struct.networkExceptions = new ArrayList<NetRule>(_list152.size); - NetRule _elem153; - for (int _i154 = 0; _i154 < _list152.size; ++_i154) + org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); + struct.networkExceptions = new ArrayList<NetRule>(_list208.size); + NetRule _elem209; + for (int _i210 = 0; _i210 < _list208.size; ++_i210) { - _elem153 = new NetRule(); - _elem153.read(iprot); - struct.networkExceptions.add(_elem153); + _elem209 = new NetRule(); + _elem209.read(iprot); + struct.networkExceptions.add(_elem209); } iprot.readListEnd(); } @@ -2914,13 +3310,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 25: // LOCATION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list155 = iprot.readListBegin(); - struct.locationIds = new ArrayList<Integer>(_list155.size); - int _elem156; - for (int _i157 = 0; _i157 < _list155.size; ++_i157) + org.apache.thrift.protocol.TList _list211 = iprot.readListBegin(); + struct.locationIds = new ArrayList<Integer>(_list211.size); + int _elem212; + for (int _i213 = 0; _i213 < _list211.size; ++_i213) { - _elem156 = iprot.readI32(); - struct.locationIds.add(_elem156); + _elem212 = iprot.readI32(); + struct.locationIds.add(_elem212); } iprot.readListEnd(); } @@ -2956,14 +3352,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 29: // NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); - struct.networkShares = new ArrayList<NetShare>(_list158.size); - NetShare _elem159; - for (int _i160 = 0; _i160 < _list158.size; ++_i160) + org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); + struct.networkShares = new ArrayList<NetShare>(_list214.size); + NetShare _elem215; + for (int _i216 = 0; _i216 < _list214.size; ++_i216) { - _elem159 = new NetShare(); - _elem159.read(iprot); - struct.networkShares.add(_elem159); + _elem215 = new NetShare(); + _elem215.read(iprot); + struct.networkShares.add(_elem215); } iprot.readListEnd(); } @@ -2975,14 +3371,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 30: // LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list161 = iprot.readListBegin(); - struct.ldapFilters = new ArrayList<LdapFilter>(_list161.size); - LdapFilter _elem162; - for (int _i163 = 0; _i163 < _list161.size; ++_i163) + org.apache.thrift.protocol.TList _list217 = iprot.readListBegin(); + struct.ldapFilters = new ArrayList<LdapFilter>(_list217.size); + LdapFilter _elem218; + for (int _i219 = 0; _i219 < _list217.size; ++_i219) { - _elem162 = new LdapFilter(); - _elem162.read(iprot); - struct.ldapFilters.add(_elem162); + _elem218 = new LdapFilter(); + _elem218.read(iprot); + struct.ldapFilters.add(_elem218); } iprot.readListEnd(); } @@ -2991,6 +3387,78 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 31: // PRESET_SCRIPT_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list220 = iprot.readListBegin(); + struct.presetScriptIds = new ArrayList<Integer>(_list220.size); + int _elem221; + for (int _i222 = 0; _i222 < _list220.size; ++_i222) + { + _elem221 = iprot.readI32(); + struct.presetScriptIds.add(_elem221); + } + iprot.readListEnd(); + } + struct.setPresetScriptIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 32: // PRESET_NETWORK_SHARES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list223 = iprot.readListBegin(); + struct.presetNetworkShares = new ArrayList<Integer>(_list223.size); + int _elem224; + for (int _i225 = 0; _i225 < _list223.size; ++_i225) + { + _elem224 = iprot.readI32(); + struct.presetNetworkShares.add(_elem224); + } + iprot.readListEnd(); + } + struct.setPresetNetworkSharesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 33: // PRESET_LDAP_FILTERS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); + struct.presetLdapFilters = new ArrayList<Integer>(_list226.size); + int _elem227; + for (int _i228 = 0; _i228 < _list226.size; ++_i228) + { + _elem227 = iprot.readI32(); + struct.presetLdapFilters.add(_elem227); + } + iprot.readListEnd(); + } + struct.setPresetLdapFiltersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 34: // PRESET_NETWORK_EXCEPTION_IDS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list229 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new ArrayList<Integer>(_list229.size); + int _elem230; + for (int _i231 = 0; _i231 < _list229.size; ++_i231) + { + _elem230 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem230); + } + iprot.readListEnd(); + } + struct.setPresetNetworkExceptionIdsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3058,9 +3526,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 _iter164 : struct.nics) + for (String _iter232 : struct.nics) { - oprot.writeString(_iter164); + oprot.writeString(_iter232); } oprot.writeListEnd(); } @@ -3070,9 +3538,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 _iter165 : struct.allowedUsers) + for (String _iter233 : struct.allowedUsers) { - oprot.writeString(_iter165); + oprot.writeString(_iter233); } oprot.writeListEnd(); } @@ -3082,9 +3550,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 _iter166 : struct.networkExceptions) + for (NetRule _iter234 : struct.networkExceptions) { - _iter166.write(oprot); + _iter234.write(oprot); } oprot.writeListEnd(); } @@ -3128,9 +3596,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter167 : struct.locationIds) + for (int _iter235 : struct.locationIds) { - oprot.writeI32(_iter167); + oprot.writeI32(_iter235); } oprot.writeListEnd(); } @@ -3150,9 +3618,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(NETWORK_SHARES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.networkShares.size())); - for (NetShare _iter168 : struct.networkShares) + for (NetShare _iter236 : struct.networkShares) { - _iter168.write(oprot); + _iter236.write(oprot); } oprot.writeListEnd(); } @@ -3164,9 +3632,65 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(LDAP_FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.ldapFilters.size())); - for (LdapFilter _iter169 : struct.ldapFilters) + for (LdapFilter _iter237 : struct.ldapFilters) { - _iter169.write(oprot); + _iter237.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.presetScriptIds != null) { + if (struct.isSetPresetScriptIds()) { + oprot.writeFieldBegin(PRESET_SCRIPT_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetScriptIds.size())); + for (int _iter238 : struct.presetScriptIds) + { + oprot.writeI32(_iter238); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.presetNetworkShares != null) { + if (struct.isSetPresetNetworkShares()) { + oprot.writeFieldBegin(PRESET_NETWORK_SHARES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetNetworkShares.size())); + for (int _iter239 : struct.presetNetworkShares) + { + oprot.writeI32(_iter239); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.presetLdapFilters != null) { + if (struct.isSetPresetLdapFilters()) { + oprot.writeFieldBegin(PRESET_LDAP_FILTERS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetLdapFilters.size())); + for (int _iter240 : struct.presetLdapFilters) + { + oprot.writeI32(_iter240); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.presetNetworkExceptionIds != null) { + if (struct.isSetPresetNetworkExceptionIds()) { + oprot.writeFieldBegin(PRESET_NETWORK_EXCEPTION_IDS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetNetworkExceptionIds.size())); + for (int _iter241 : struct.presetNetworkExceptionIds) + { + oprot.writeI32(_iter241); } oprot.writeListEnd(); } @@ -3278,7 +3802,19 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetLdapFilters()) { optionals.set(28); } - oprot.writeBitSet(optionals, 29); + if (struct.isSetPresetScriptIds()) { + optionals.set(29); + } + if (struct.isSetPresetNetworkShares()) { + optionals.set(30); + } + if (struct.isSetPresetLdapFilters()) { + optionals.set(31); + } + if (struct.isSetPresetNetworkExceptionIds()) { + optionals.set(32); + } + oprot.writeBitSet(optionals, 33); if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } @@ -3330,27 +3866,27 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetNics()) { { oprot.writeI32(struct.nics.size()); - for (String _iter170 : struct.nics) + for (String _iter242 : struct.nics) { - oprot.writeString(_iter170); + oprot.writeString(_iter242); } } } if (struct.isSetAllowedUsers()) { { oprot.writeI32(struct.allowedUsers.size()); - for (String _iter171 : struct.allowedUsers) + for (String _iter243 : struct.allowedUsers) { - oprot.writeString(_iter171); + oprot.writeString(_iter243); } } } if (struct.isSetNetworkExceptions()) { { oprot.writeI32(struct.networkExceptions.size()); - for (NetRule _iter172 : struct.networkExceptions) + for (NetRule _iter244 : struct.networkExceptions) { - _iter172.write(oprot); + _iter244.write(oprot); } } } @@ -3369,9 +3905,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetLocationIds()) { { oprot.writeI32(struct.locationIds.size()); - for (int _iter173 : struct.locationIds) + for (int _iter245 : struct.locationIds) { - oprot.writeI32(_iter173); + oprot.writeI32(_iter245); } } } @@ -3387,18 +3923,54 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetNetworkShares()) { { oprot.writeI32(struct.networkShares.size()); - for (NetShare _iter174 : struct.networkShares) + for (NetShare _iter246 : struct.networkShares) { - _iter174.write(oprot); + _iter246.write(oprot); } } } if (struct.isSetLdapFilters()) { { oprot.writeI32(struct.ldapFilters.size()); - for (LdapFilter _iter175 : struct.ldapFilters) + for (LdapFilter _iter247 : struct.ldapFilters) + { + _iter247.write(oprot); + } + } + } + if (struct.isSetPresetScriptIds()) { + { + oprot.writeI32(struct.presetScriptIds.size()); + for (int _iter248 : struct.presetScriptIds) + { + oprot.writeI32(_iter248); + } + } + } + if (struct.isSetPresetNetworkShares()) { + { + oprot.writeI32(struct.presetNetworkShares.size()); + for (int _iter249 : struct.presetNetworkShares) { - _iter175.write(oprot); + oprot.writeI32(_iter249); + } + } + } + if (struct.isSetPresetLdapFilters()) { + { + oprot.writeI32(struct.presetLdapFilters.size()); + for (int _iter250 : struct.presetLdapFilters) + { + oprot.writeI32(_iter250); + } + } + } + if (struct.isSetPresetNetworkExceptionIds()) { + { + oprot.writeI32(struct.presetNetworkExceptionIds.size()); + for (int _iter251 : struct.presetNetworkExceptionIds) + { + oprot.writeI32(_iter251); } } } @@ -3407,7 +3979,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture @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(29); + BitSet incoming = iprot.readBitSet(33); if (incoming.get(0)) { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); @@ -3474,40 +4046,40 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(16)) { { - org.apache.thrift.protocol.TList _list176 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.nics = new ArrayList<String>(_list176.size); - String _elem177; - for (int _i178 = 0; _i178 < _list176.size; ++_i178) + org.apache.thrift.protocol.TList _list252 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList<String>(_list252.size); + String _elem253; + for (int _i254 = 0; _i254 < _list252.size; ++_i254) { - _elem177 = iprot.readString(); - struct.nics.add(_elem177); + _elem253 = iprot.readString(); + struct.nics.add(_elem253); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList<String>(_list179.size); - String _elem180; - for (int _i181 = 0; _i181 < _list179.size; ++_i181) + org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.allowedUsers = new ArrayList<String>(_list255.size); + String _elem256; + for (int _i257 = 0; _i257 < _list255.size; ++_i257) { - _elem180 = iprot.readString(); - struct.allowedUsers.add(_elem180); + _elem256 = iprot.readString(); + struct.allowedUsers.add(_elem256); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list182 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList<NetRule>(_list182.size); - NetRule _elem183; - for (int _i184 = 0; _i184 < _list182.size; ++_i184) + org.apache.thrift.protocol.TList _list258 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList<NetRule>(_list258.size); + NetRule _elem259; + for (int _i260 = 0; _i260 < _list258.size; ++_i260) { - _elem183 = new NetRule(); - _elem183.read(iprot); - struct.networkExceptions.add(_elem183); + _elem259 = new NetRule(); + _elem259.read(iprot); + struct.networkExceptions.add(_elem259); } } struct.setNetworkExceptionsIsSet(true); @@ -3532,13 +4104,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(23)) { { - org.apache.thrift.protocol.TList _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList<Integer>(_list185.size); - int _elem186; - for (int _i187 = 0; _i187 < _list185.size; ++_i187) + org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.locationIds = new ArrayList<Integer>(_list261.size); + int _elem262; + for (int _i263 = 0; _i263 < _list261.size; ++_i263) { - _elem186 = iprot.readI32(); - struct.locationIds.add(_elem186); + _elem262 = iprot.readI32(); + struct.locationIds.add(_elem262); } } struct.setLocationIdsIsSet(true); @@ -3557,32 +4129,84 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(27)) { { - org.apache.thrift.protocol.TList _list188 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkShares = new ArrayList<NetShare>(_list188.size); - NetShare _elem189; - for (int _i190 = 0; _i190 < _list188.size; ++_i190) + org.apache.thrift.protocol.TList _list264 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkShares = new ArrayList<NetShare>(_list264.size); + NetShare _elem265; + for (int _i266 = 0; _i266 < _list264.size; ++_i266) { - _elem189 = new NetShare(); - _elem189.read(iprot); - struct.networkShares.add(_elem189); + _elem265 = new NetShare(); + _elem265.read(iprot); + struct.networkShares.add(_elem265); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(28)) { { - org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList<LdapFilter>(_list191.size); - LdapFilter _elem192; - for (int _i193 = 0; _i193 < _list191.size; ++_i193) + org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.ldapFilters = new ArrayList<LdapFilter>(_list267.size); + LdapFilter _elem268; + for (int _i269 = 0; _i269 < _list267.size; ++_i269) { - _elem192 = new LdapFilter(); - _elem192.read(iprot); - struct.ldapFilters.add(_elem192); + _elem268 = new LdapFilter(); + _elem268.read(iprot); + struct.ldapFilters.add(_elem268); } } struct.setLdapFiltersIsSet(true); } + if (incoming.get(29)) { + { + org.apache.thrift.protocol.TList _list270 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.presetScriptIds = new ArrayList<Integer>(_list270.size); + int _elem271; + for (int _i272 = 0; _i272 < _list270.size; ++_i272) + { + _elem271 = iprot.readI32(); + struct.presetScriptIds.add(_elem271); + } + } + struct.setPresetScriptIdsIsSet(true); + } + if (incoming.get(30)) { + { + org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.presetNetworkShares = new ArrayList<Integer>(_list273.size); + int _elem274; + for (int _i275 = 0; _i275 < _list273.size; ++_i275) + { + _elem274 = iprot.readI32(); + struct.presetNetworkShares.add(_elem274); + } + } + struct.setPresetNetworkSharesIsSet(true); + } + if (incoming.get(31)) { + { + org.apache.thrift.protocol.TList _list276 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.presetLdapFilters = new ArrayList<Integer>(_list276.size); + int _elem277; + for (int _i278 = 0; _i278 < _list276.size; ++_i278) + { + _elem277 = iprot.readI32(); + struct.presetLdapFilters.add(_elem277); + } + } + struct.setPresetLdapFiltersIsSet(true); + } + if (incoming.get(32)) { + { + org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.presetNetworkExceptionIds = new ArrayList<Integer>(_list279.size); + int _elem280; + for (int _i281 = 0; _i281 < _list279.size; ++_i281) + { + _elem280 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem280); + } + } + struct.setPresetNetworkExceptionIdsIsSet(true); + } } } |