summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-03-03 17:56:31 +0100
committerJonathan Bauer2016-03-03 17:56:31 +0100
commite25460f7133cfeb2e30bebbe6d55c29589627992 (patch)
tree5e40c0f26e2d1285a1bf3a84aea42b5e4b09b72e /src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java
parent[vmware] Add addCdrom function (diff)
downloadmaster-sync-shared-e25460f7133cfeb2e30bebbe6d55c29589627992.tar.gz
master-sync-shared-e25460f7133cfeb2e30bebbe6d55c29589627992.tar.xz
master-sync-shared-e25460f7133cfeb2e30bebbe6d55c29589627992.zip
added hasUsbAccess field to Lecture* Struct
* TODO refactor NetRules
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.java109
1 files changed, 104 insertions, 5 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 2d872f9..3c5d305 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 = "2016-01-18")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-03-02")
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");
@@ -64,6 +64,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
private static final org.apache.thrift.protocol.TField LOCATION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("locationIds", org.apache.thrift.protocol.TType.LIST, (short)25);
private static final org.apache.thrift.protocol.TField LIMIT_TO_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("limitToLocations", org.apache.thrift.protocol.TType.BOOL, (short)26);
private static final org.apache.thrift.protocol.TField LIMIT_TO_ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("limitToAllowedUsers", org.apache.thrift.protocol.TType.BOOL, (short)27);
+ 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 Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -97,6 +98,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
public List<Integer> locationIds; // required
public boolean limitToLocations; // required
public boolean limitToAllowedUsers; // required
+ public boolean hasUsbAccess; // 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 {
@@ -125,7 +127,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
USER_PERMISSIONS((short)22, "userPermissions"),
LOCATION_IDS((short)25, "locationIds"),
LIMIT_TO_LOCATIONS((short)26, "limitToLocations"),
- LIMIT_TO_ALLOWED_USERS((short)27, "limitToAllowedUsers");
+ LIMIT_TO_ALLOWED_USERS((short)27, "limitToAllowedUsers"),
+ HAS_USB_ACCESS((short)28, "hasUsbAccess");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -192,6 +195,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return LIMIT_TO_LOCATIONS;
case 27: // LIMIT_TO_ALLOWED_USERS
return LIMIT_TO_ALLOWED_USERS;
+ case 28: // HAS_USB_ACCESS
+ return HAS_USB_ACCESS;
default:
return null;
}
@@ -244,6 +249,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
private static final int __HASINTERNETACCESS_ISSET_ID = 9;
private static final int __LIMITTOLOCATIONS_ISSET_ID = 10;
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};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
@@ -305,6 +311,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.LIMIT_TO_ALLOWED_USERS, new org.apache.thrift.meta_data.FieldMetaData("limitToAllowedUsers", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.HAS_USB_ACCESS, new org.apache.thrift.meta_data.FieldMetaData("hasUsbAccess", 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(LectureRead.class, metaDataMap);
}
@@ -337,7 +345,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
LecturePermissions defaultPermissions,
List<Integer> locationIds,
boolean limitToLocations,
- boolean limitToAllowedUsers)
+ boolean limitToAllowedUsers,
+ boolean hasUsbAccess)
{
this();
this.lectureId = lectureId;
@@ -377,6 +386,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
setLimitToLocationsIsSet(true);
this.limitToAllowedUsers = limitToAllowedUsers;
setLimitToAllowedUsersIsSet(true);
+ this.hasUsbAccess = hasUsbAccess;
+ setHasUsbAccessIsSet(true);
}
/**
@@ -445,6 +456,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
}
this.limitToLocations = other.limitToLocations;
this.limitToAllowedUsers = other.limitToAllowedUsers;
+ this.hasUsbAccess = other.hasUsbAccess;
}
public LectureRead deepCopy() {
@@ -491,6 +503,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
this.limitToLocations = false;
setLimitToAllowedUsersIsSet(false);
this.limitToAllowedUsers = false;
+ setHasUsbAccessIsSet(false);
+ this.hasUsbAccess = false;
}
public String getLectureId() {
@@ -1165,6 +1179,29 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID, value);
}
+ public boolean isHasUsbAccess() {
+ return this.hasUsbAccess;
+ }
+
+ public LectureRead setHasUsbAccess(boolean hasUsbAccess) {
+ this.hasUsbAccess = hasUsbAccess;
+ setHasUsbAccessIsSet(true);
+ return this;
+ }
+
+ public void unsetHasUsbAccess() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID);
+ }
+
+ /** Returns true if field hasUsbAccess is set (has been assigned a value) and false otherwise */
+ public boolean isSetHasUsbAccess() {
+ return EncodingUtils.testBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID);
+ }
+
+ public void setHasUsbAccessIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID, value);
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case LECTURE_ID:
@@ -1375,6 +1412,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
}
break;
+ case HAS_USB_ACCESS:
+ if (value == null) {
+ unsetHasUsbAccess();
+ } else {
+ setHasUsbAccess((Boolean)value);
+ }
+ break;
+
}
}
@@ -1458,6 +1503,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
case LIMIT_TO_ALLOWED_USERS:
return isLimitToAllowedUsers();
+ case HAS_USB_ACCESS:
+ return isHasUsbAccess();
+
}
throw new IllegalStateException();
}
@@ -1521,6 +1569,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return isSetLimitToLocations();
case LIMIT_TO_ALLOWED_USERS:
return isSetLimitToAllowedUsers();
+ case HAS_USB_ACCESS:
+ return isSetHasUsbAccess();
}
throw new IllegalStateException();
}
@@ -1772,6 +1822,15 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return false;
}
+ boolean this_present_hasUsbAccess = true;
+ boolean that_present_hasUsbAccess = true;
+ if (this_present_hasUsbAccess || that_present_hasUsbAccess) {
+ if (!(this_present_hasUsbAccess && that_present_hasUsbAccess))
+ return false;
+ if (this.hasUsbAccess != that.hasUsbAccess)
+ return false;
+ }
+
return true;
}
@@ -1909,6 +1968,11 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (present_limitToAllowedUsers)
list.add(limitToAllowedUsers);
+ boolean present_hasUsbAccess = true;
+ list.add(present_hasUsbAccess);
+ if (present_hasUsbAccess)
+ list.add(hasUsbAccess);
+
return list.hashCode();
}
@@ -2180,6 +2244,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetHasUsbAccess()).compareTo(other.isSetHasUsbAccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetHasUsbAccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUsbAccess, other.hasUsbAccess);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -2361,6 +2435,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
sb.append("limitToAllowedUsers:");
sb.append(this.limitToAllowedUsers);
first = false;
+ if (!first) sb.append(", ");
+ sb.append("hasUsbAccess:");
+ sb.append(this.hasUsbAccess);
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -2663,6 +2741,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 28: // HAS_USB_ACCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.hasUsbAccess = iprot.readBool();
+ struct.setHasUsbAccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -2814,6 +2900,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
oprot.writeFieldBegin(LIMIT_TO_ALLOWED_USERS_FIELD_DESC);
oprot.writeBool(struct.limitToAllowedUsers);
oprot.writeFieldEnd();
+ oprot.writeFieldBegin(HAS_USB_ACCESS_FIELD_DESC);
+ oprot.writeBool(struct.hasUsbAccess);
+ oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -2910,7 +2999,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (struct.isSetLimitToAllowedUsers()) {
optionals.set(25);
}
- oprot.writeBitSet(optionals, 26);
+ if (struct.isSetHasUsbAccess()) {
+ optionals.set(26);
+ }
+ oprot.writeBitSet(optionals, 27);
if (struct.isSetLectureId()) {
oprot.writeString(struct.lectureId);
}
@@ -3013,12 +3105,15 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
if (struct.isSetLimitToAllowedUsers()) {
oprot.writeBool(struct.limitToAllowedUsers);
}
+ if (struct.isSetHasUsbAccess()) {
+ oprot.writeBool(struct.hasUsbAccess);
+ }
}
@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(26);
+ BitSet incoming = iprot.readBitSet(27);
if (incoming.get(0)) {
struct.lectureId = iprot.readString();
struct.setLectureIdIsSet(true);
@@ -3162,6 +3257,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture
struct.limitToAllowedUsers = iprot.readBool();
struct.setLimitToAllowedUsersIsSet(true);
}
+ if (incoming.get(26)) {
+ struct.hasUsbAccess = iprot.readBool();
+ struct.setHasUsbAccessIsSet(true);
+ }
}
}