summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/server/generated/Person.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/server/generated/Person.java')
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Person.java670
1 files changed, 666 insertions, 4 deletions
diff --git a/dozentenmodulserver/src/main/java/server/generated/Person.java b/dozentenmodulserver/src/main/java/server/generated/Person.java
index 19084ac9..8129579b 100644
--- a/dozentenmodulserver/src/main/java/server/generated/Person.java
+++ b/dozentenmodulserver/src/main/java/server/generated/Person.java
@@ -38,6 +38,13 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField IMAGE_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("image_read", org.apache.thrift.protocol.TType.BOOL, (short)4);
+ private static final org.apache.thrift.protocol.TField IMAGE_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("image_write", org.apache.thrift.protocol.TType.BOOL, (short)5);
+ private static final org.apache.thrift.protocol.TField IMAGE_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("image_admin", org.apache.thrift.protocol.TType.BOOL, (short)6);
+ private static final org.apache.thrift.protocol.TField IMAGE_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("image_link", org.apache.thrift.protocol.TType.BOOL, (short)7);
+ private static final org.apache.thrift.protocol.TField LECTURE_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture_read", org.apache.thrift.protocol.TType.BOOL, (short)8);
+ private static final org.apache.thrift.protocol.TField LECTURE_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture_write", org.apache.thrift.protocol.TType.BOOL, (short)9);
+ private static final org.apache.thrift.protocol.TField LECTURE_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture_admin", org.apache.thrift.protocol.TType.BOOL, (short)10);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -48,12 +55,26 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
public String userID; // required
public String Nachname; // required
public String Vorname; // required
+ public boolean image_read; // required
+ public boolean image_write; // required
+ public boolean image_admin; // required
+ public boolean image_link; // required
+ public boolean lecture_read; // required
+ public boolean lecture_write; // required
+ public boolean lecture_admin; // 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 {
USER_ID((short)1, "userID"),
NACHNAME((short)2, "Nachname"),
- VORNAME((short)3, "Vorname");
+ VORNAME((short)3, "Vorname"),
+ IMAGE_READ((short)4, "image_read"),
+ IMAGE_WRITE((short)5, "image_write"),
+ IMAGE_ADMIN((short)6, "image_admin"),
+ IMAGE_LINK((short)7, "image_link"),
+ LECTURE_READ((short)8, "lecture_read"),
+ LECTURE_WRITE((short)9, "lecture_write"),
+ LECTURE_ADMIN((short)10, "lecture_admin");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -74,6 +95,20 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
return NACHNAME;
case 3: // VORNAME
return VORNAME;
+ case 4: // IMAGE_READ
+ return IMAGE_READ;
+ case 5: // IMAGE_WRITE
+ return IMAGE_WRITE;
+ case 6: // IMAGE_ADMIN
+ return IMAGE_ADMIN;
+ case 7: // IMAGE_LINK
+ return IMAGE_LINK;
+ case 8: // LECTURE_READ
+ return LECTURE_READ;
+ case 9: // LECTURE_WRITE
+ return LECTURE_WRITE;
+ case 10: // LECTURE_ADMIN
+ return LECTURE_ADMIN;
default:
return null;
}
@@ -114,6 +149,14 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
}
// isset id assignments
+ private static final int __IMAGE_READ_ISSET_ID = 0;
+ private static final int __IMAGE_WRITE_ISSET_ID = 1;
+ private static final int __IMAGE_ADMIN_ISSET_ID = 2;
+ private static final int __IMAGE_LINK_ISSET_ID = 3;
+ private static final int __LECTURE_READ_ISSET_ID = 4;
+ private static final int __LECTURE_WRITE_ISSET_ID = 5;
+ private static final int __LECTURE_ADMIN_ISSET_ID = 6;
+ private byte __isset_bitfield = 0;
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);
@@ -123,6 +166,20 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGE_READ, new org.apache.thrift.meta_data.FieldMetaData("image_read", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.IMAGE_WRITE, new org.apache.thrift.meta_data.FieldMetaData("image_write", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.IMAGE_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("image_admin", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.IMAGE_LINK, new org.apache.thrift.meta_data.FieldMetaData("image_link", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.LECTURE_READ, new org.apache.thrift.meta_data.FieldMetaData("lecture_read", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.LECTURE_WRITE, new org.apache.thrift.meta_data.FieldMetaData("lecture_write", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.LECTURE_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("lecture_admin", 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(Person.class, metaDataMap);
}
@@ -133,18 +190,40 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
public Person(
String userID,
String Nachname,
- String Vorname)
+ String Vorname,
+ boolean image_read,
+ boolean image_write,
+ boolean image_admin,
+ boolean image_link,
+ boolean lecture_read,
+ boolean lecture_write,
+ boolean lecture_admin)
{
this();
this.userID = userID;
this.Nachname = Nachname;
this.Vorname = Vorname;
+ this.image_read = image_read;
+ setImage_readIsSet(true);
+ this.image_write = image_write;
+ setImage_writeIsSet(true);
+ this.image_admin = image_admin;
+ setImage_adminIsSet(true);
+ this.image_link = image_link;
+ setImage_linkIsSet(true);
+ this.lecture_read = lecture_read;
+ setLecture_readIsSet(true);
+ this.lecture_write = lecture_write;
+ setLecture_writeIsSet(true);
+ this.lecture_admin = lecture_admin;
+ setLecture_adminIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public Person(Person other) {
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetUserID()) {
this.userID = other.userID;
}
@@ -154,6 +233,13 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
if (other.isSetVorname()) {
this.Vorname = other.Vorname;
}
+ this.image_read = other.image_read;
+ this.image_write = other.image_write;
+ this.image_admin = other.image_admin;
+ this.image_link = other.image_link;
+ this.lecture_read = other.lecture_read;
+ this.lecture_write = other.lecture_write;
+ this.lecture_admin = other.lecture_admin;
}
public Person deepCopy() {
@@ -165,6 +251,20 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
this.userID = null;
this.Nachname = null;
this.Vorname = null;
+ setImage_readIsSet(false);
+ this.image_read = false;
+ setImage_writeIsSet(false);
+ this.image_write = false;
+ setImage_adminIsSet(false);
+ this.image_admin = false;
+ setImage_linkIsSet(false);
+ this.image_link = false;
+ setLecture_readIsSet(false);
+ this.lecture_read = false;
+ setLecture_writeIsSet(false);
+ this.lecture_write = false;
+ setLecture_adminIsSet(false);
+ this.lecture_admin = false;
}
public String getUserID() {
@@ -239,6 +339,167 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
}
}
+ public boolean isImage_read() {
+ return this.image_read;
+ }
+
+ public Person setImage_read(boolean image_read) {
+ this.image_read = image_read;
+ setImage_readIsSet(true);
+ return this;
+ }
+
+ public void unsetImage_read() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IMAGE_READ_ISSET_ID);
+ }
+
+ /** Returns true if field image_read is set (has been assigned a value) and false otherwise */
+ public boolean isSetImage_read() {
+ return EncodingUtils.testBit(__isset_bitfield, __IMAGE_READ_ISSET_ID);
+ }
+
+ public void setImage_readIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IMAGE_READ_ISSET_ID, value);
+ }
+
+ public boolean isImage_write() {
+ return this.image_write;
+ }
+
+ public Person setImage_write(boolean image_write) {
+ this.image_write = image_write;
+ setImage_writeIsSet(true);
+ return this;
+ }
+
+ public void unsetImage_write() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IMAGE_WRITE_ISSET_ID);
+ }
+
+ /** Returns true if field image_write is set (has been assigned a value) and false otherwise */
+ public boolean isSetImage_write() {
+ return EncodingUtils.testBit(__isset_bitfield, __IMAGE_WRITE_ISSET_ID);
+ }
+
+ public void setImage_writeIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IMAGE_WRITE_ISSET_ID, value);
+ }
+
+ public boolean isImage_admin() {
+ return this.image_admin;
+ }
+
+ public Person setImage_admin(boolean image_admin) {
+ this.image_admin = image_admin;
+ setImage_adminIsSet(true);
+ return this;
+ }
+
+ public void unsetImage_admin() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IMAGE_ADMIN_ISSET_ID);
+ }
+
+ /** Returns true if field image_admin is set (has been assigned a value) and false otherwise */
+ public boolean isSetImage_admin() {
+ return EncodingUtils.testBit(__isset_bitfield, __IMAGE_ADMIN_ISSET_ID);
+ }
+
+ public void setImage_adminIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IMAGE_ADMIN_ISSET_ID, value);
+ }
+
+ public boolean isImage_link() {
+ return this.image_link;
+ }
+
+ public Person setImage_link(boolean image_link) {
+ this.image_link = image_link;
+ setImage_linkIsSet(true);
+ return this;
+ }
+
+ public void unsetImage_link() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IMAGE_LINK_ISSET_ID);
+ }
+
+ /** Returns true if field image_link is set (has been assigned a value) and false otherwise */
+ public boolean isSetImage_link() {
+ return EncodingUtils.testBit(__isset_bitfield, __IMAGE_LINK_ISSET_ID);
+ }
+
+ public void setImage_linkIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IMAGE_LINK_ISSET_ID, value);
+ }
+
+ public boolean isLecture_read() {
+ return this.lecture_read;
+ }
+
+ public Person setLecture_read(boolean lecture_read) {
+ this.lecture_read = lecture_read;
+ setLecture_readIsSet(true);
+ return this;
+ }
+
+ public void unsetLecture_read() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LECTURE_READ_ISSET_ID);
+ }
+
+ /** Returns true if field lecture_read is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecture_read() {
+ return EncodingUtils.testBit(__isset_bitfield, __LECTURE_READ_ISSET_ID);
+ }
+
+ public void setLecture_readIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LECTURE_READ_ISSET_ID, value);
+ }
+
+ public boolean isLecture_write() {
+ return this.lecture_write;
+ }
+
+ public Person setLecture_write(boolean lecture_write) {
+ this.lecture_write = lecture_write;
+ setLecture_writeIsSet(true);
+ return this;
+ }
+
+ public void unsetLecture_write() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LECTURE_WRITE_ISSET_ID);
+ }
+
+ /** Returns true if field lecture_write is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecture_write() {
+ return EncodingUtils.testBit(__isset_bitfield, __LECTURE_WRITE_ISSET_ID);
+ }
+
+ public void setLecture_writeIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LECTURE_WRITE_ISSET_ID, value);
+ }
+
+ public boolean isLecture_admin() {
+ return this.lecture_admin;
+ }
+
+ public Person setLecture_admin(boolean lecture_admin) {
+ this.lecture_admin = lecture_admin;
+ setLecture_adminIsSet(true);
+ return this;
+ }
+
+ public void unsetLecture_admin() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LECTURE_ADMIN_ISSET_ID);
+ }
+
+ /** Returns true if field lecture_admin is set (has been assigned a value) and false otherwise */
+ public boolean isSetLecture_admin() {
+ return EncodingUtils.testBit(__isset_bitfield, __LECTURE_ADMIN_ISSET_ID);
+ }
+
+ public void setLecture_adminIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LECTURE_ADMIN_ISSET_ID, value);
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case USER_ID:
@@ -265,6 +526,62 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
}
break;
+ case IMAGE_READ:
+ if (value == null) {
+ unsetImage_read();
+ } else {
+ setImage_read((Boolean)value);
+ }
+ break;
+
+ case IMAGE_WRITE:
+ if (value == null) {
+ unsetImage_write();
+ } else {
+ setImage_write((Boolean)value);
+ }
+ break;
+
+ case IMAGE_ADMIN:
+ if (value == null) {
+ unsetImage_admin();
+ } else {
+ setImage_admin((Boolean)value);
+ }
+ break;
+
+ case IMAGE_LINK:
+ if (value == null) {
+ unsetImage_link();
+ } else {
+ setImage_link((Boolean)value);
+ }
+ break;
+
+ case LECTURE_READ:
+ if (value == null) {
+ unsetLecture_read();
+ } else {
+ setLecture_read((Boolean)value);
+ }
+ break;
+
+ case LECTURE_WRITE:
+ if (value == null) {
+ unsetLecture_write();
+ } else {
+ setLecture_write((Boolean)value);
+ }
+ break;
+
+ case LECTURE_ADMIN:
+ if (value == null) {
+ unsetLecture_admin();
+ } else {
+ setLecture_admin((Boolean)value);
+ }
+ break;
+
}
}
@@ -279,6 +596,27 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
case VORNAME:
return getVorname();
+ case IMAGE_READ:
+ return Boolean.valueOf(isImage_read());
+
+ case IMAGE_WRITE:
+ return Boolean.valueOf(isImage_write());
+
+ case IMAGE_ADMIN:
+ return Boolean.valueOf(isImage_admin());
+
+ case IMAGE_LINK:
+ return Boolean.valueOf(isImage_link());
+
+ case LECTURE_READ:
+ return Boolean.valueOf(isLecture_read());
+
+ case LECTURE_WRITE:
+ return Boolean.valueOf(isLecture_write());
+
+ case LECTURE_ADMIN:
+ return Boolean.valueOf(isLecture_admin());
+
}
throw new IllegalStateException();
}
@@ -296,6 +634,20 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
return isSetNachname();
case VORNAME:
return isSetVorname();
+ case IMAGE_READ:
+ return isSetImage_read();
+ case IMAGE_WRITE:
+ return isSetImage_write();
+ case IMAGE_ADMIN:
+ return isSetImage_admin();
+ case IMAGE_LINK:
+ return isSetImage_link();
+ case LECTURE_READ:
+ return isSetLecture_read();
+ case LECTURE_WRITE:
+ return isSetLecture_write();
+ case LECTURE_ADMIN:
+ return isSetLecture_admin();
}
throw new IllegalStateException();
}
@@ -340,6 +692,69 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
return false;
}
+ boolean this_present_image_read = true;
+ boolean that_present_image_read = true;
+ if (this_present_image_read || that_present_image_read) {
+ if (!(this_present_image_read && that_present_image_read))
+ return false;
+ if (this.image_read != that.image_read)
+ return false;
+ }
+
+ boolean this_present_image_write = true;
+ boolean that_present_image_write = true;
+ if (this_present_image_write || that_present_image_write) {
+ if (!(this_present_image_write && that_present_image_write))
+ return false;
+ if (this.image_write != that.image_write)
+ return false;
+ }
+
+ boolean this_present_image_admin = true;
+ boolean that_present_image_admin = true;
+ if (this_present_image_admin || that_present_image_admin) {
+ if (!(this_present_image_admin && that_present_image_admin))
+ return false;
+ if (this.image_admin != that.image_admin)
+ return false;
+ }
+
+ boolean this_present_image_link = true;
+ boolean that_present_image_link = true;
+ if (this_present_image_link || that_present_image_link) {
+ if (!(this_present_image_link && that_present_image_link))
+ return false;
+ if (this.image_link != that.image_link)
+ return false;
+ }
+
+ boolean this_present_lecture_read = true;
+ boolean that_present_lecture_read = true;
+ if (this_present_lecture_read || that_present_lecture_read) {
+ if (!(this_present_lecture_read && that_present_lecture_read))
+ return false;
+ if (this.lecture_read != that.lecture_read)
+ return false;
+ }
+
+ boolean this_present_lecture_write = true;
+ boolean that_present_lecture_write = true;
+ if (this_present_lecture_write || that_present_lecture_write) {
+ if (!(this_present_lecture_write && that_present_lecture_write))
+ return false;
+ if (this.lecture_write != that.lecture_write)
+ return false;
+ }
+
+ boolean this_present_lecture_admin = true;
+ boolean that_present_lecture_admin = true;
+ if (this_present_lecture_admin || that_present_lecture_admin) {
+ if (!(this_present_lecture_admin && that_present_lecture_admin))
+ return false;
+ if (this.lecture_admin != that.lecture_admin)
+ return false;
+ }
+
return true;
}
@@ -386,6 +801,76 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetImage_read()).compareTo(other.isSetImage_read());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImage_read()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_read, other.image_read);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImage_write()).compareTo(other.isSetImage_write());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImage_write()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_write, other.image_write);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImage_admin()).compareTo(other.isSetImage_admin());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImage_admin()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_admin, other.image_admin);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetImage_link()).compareTo(other.isSetImage_link());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImage_link()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image_link, other.image_link);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecture_read()).compareTo(other.isSetLecture_read());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecture_read()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture_read, other.lecture_read);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecture_write()).compareTo(other.isSetLecture_write());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecture_write()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture_write, other.lecture_write);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLecture_admin()).compareTo(other.isSetLecture_admin());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLecture_admin()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture_admin, other.lecture_admin);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -429,6 +914,34 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
sb.append(this.Vorname);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("image_read:");
+ sb.append(this.image_read);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("image_write:");
+ sb.append(this.image_write);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("image_admin:");
+ sb.append(this.image_admin);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("image_link:");
+ sb.append(this.image_link);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecture_read:");
+ sb.append(this.lecture_read);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecture_write:");
+ sb.append(this.lecture_write);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("lecture_admin:");
+ sb.append(this.lecture_admin);
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -448,6 +961,8 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -496,6 +1011,62 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 4: // IMAGE_READ
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.image_read = iprot.readBool();
+ struct.setImage_readIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 5: // IMAGE_WRITE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.image_write = iprot.readBool();
+ struct.setImage_writeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 6: // IMAGE_ADMIN
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.image_admin = iprot.readBool();
+ struct.setImage_adminIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 7: // IMAGE_LINK
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.image_link = iprot.readBool();
+ struct.setImage_linkIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 8: // LECTURE_READ
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.lecture_read = iprot.readBool();
+ struct.setLecture_readIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 9: // LECTURE_WRITE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.lecture_write = iprot.readBool();
+ struct.setLecture_writeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 10: // LECTURE_ADMIN
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.lecture_admin = iprot.readBool();
+ struct.setLecture_adminIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -526,6 +1097,27 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
oprot.writeString(struct.Vorname);
oprot.writeFieldEnd();
}
+ oprot.writeFieldBegin(IMAGE_READ_FIELD_DESC);
+ oprot.writeBool(struct.image_read);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(IMAGE_WRITE_FIELD_DESC);
+ oprot.writeBool(struct.image_write);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(IMAGE_ADMIN_FIELD_DESC);
+ oprot.writeBool(struct.image_admin);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(IMAGE_LINK_FIELD_DESC);
+ oprot.writeBool(struct.image_link);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(LECTURE_READ_FIELD_DESC);
+ oprot.writeBool(struct.lecture_read);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(LECTURE_WRITE_FIELD_DESC);
+ oprot.writeBool(struct.lecture_write);
+ oprot.writeFieldEnd();
+ oprot.writeFieldBegin(LECTURE_ADMIN_FIELD_DESC);
+ oprot.writeBool(struct.lecture_admin);
+ oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -553,7 +1145,28 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
if (struct.isSetVorname()) {
optionals.set(2);
}
- oprot.writeBitSet(optionals, 3);
+ if (struct.isSetImage_read()) {
+ optionals.set(3);
+ }
+ if (struct.isSetImage_write()) {
+ optionals.set(4);
+ }
+ if (struct.isSetImage_admin()) {
+ optionals.set(5);
+ }
+ if (struct.isSetImage_link()) {
+ optionals.set(6);
+ }
+ if (struct.isSetLecture_read()) {
+ optionals.set(7);
+ }
+ if (struct.isSetLecture_write()) {
+ optionals.set(8);
+ }
+ if (struct.isSetLecture_admin()) {
+ optionals.set(9);
+ }
+ oprot.writeBitSet(optionals, 10);
if (struct.isSetUserID()) {
oprot.writeString(struct.userID);
}
@@ -563,12 +1176,33 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
if (struct.isSetVorname()) {
oprot.writeString(struct.Vorname);
}
+ if (struct.isSetImage_read()) {
+ oprot.writeBool(struct.image_read);
+ }
+ if (struct.isSetImage_write()) {
+ oprot.writeBool(struct.image_write);
+ }
+ if (struct.isSetImage_admin()) {
+ oprot.writeBool(struct.image_admin);
+ }
+ if (struct.isSetImage_link()) {
+ oprot.writeBool(struct.image_link);
+ }
+ if (struct.isSetLecture_read()) {
+ oprot.writeBool(struct.lecture_read);
+ }
+ if (struct.isSetLecture_write()) {
+ oprot.writeBool(struct.lecture_write);
+ }
+ if (struct.isSetLecture_admin()) {
+ oprot.writeBool(struct.lecture_admin);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Person struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ BitSet incoming = iprot.readBitSet(10);
if (incoming.get(0)) {
struct.userID = iprot.readString();
struct.setUserIDIsSet(true);
@@ -581,6 +1215,34 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>,
struct.Vorname = iprot.readString();
struct.setVornameIsSet(true);
}
+ if (incoming.get(3)) {
+ struct.image_read = iprot.readBool();
+ struct.setImage_readIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.image_write = iprot.readBool();
+ struct.setImage_writeIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.image_admin = iprot.readBool();
+ struct.setImage_adminIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.image_link = iprot.readBool();
+ struct.setImage_linkIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.lecture_read = iprot.readBool();
+ struct.setLecture_readIsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.lecture_write = iprot.readBool();
+ struct.setLecture_writeIsSet(true);
+ }
+ if (incoming.get(9)) {
+ struct.lecture_admin = iprot.readBool();
+ struct.setLecture_adminIsSet(true);
+ }
}
}