diff options
| author | Nino Breuer | 2014-10-28 20:03:48 +0100 |
|---|---|---|
| committer | Nino Breuer | 2014-10-28 20:03:48 +0100 |
| commit | 27f8ecc87220d588ff889e7be1ba5ec419a942ba (patch) | |
| tree | 0e79413dc22c3eb857e88ee833c8329baff0b901 /dozentenmodulserver/src/main/java/server/generated | |
| parent | changed implementation of full text search in some classes (diff) | |
| parent | Serverseitiges Read und Write von Rechten korrigiert (diff) | |
| download | tutor-module-27f8ecc87220d588ff889e7be1ba5ec419a942ba.tar.gz tutor-module-27f8ecc87220d588ff889e7be1ba5ec419a942ba.tar.xz tutor-module-27f8ecc87220d588ff889e7be1ba5ec419a942ba.zip | |
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Conflicts:
dozentenmodul/src/main/java/gui/image/PermissionCreateImage_GUI.java
Diffstat (limited to 'dozentenmodulserver/src/main/java/server/generated')
| -rw-r--r-- | dozentenmodulserver/src/main/java/server/generated/Person.java | 186 | ||||
| -rw-r--r-- | dozentenmodulserver/src/main/java/server/generated/Server.java | 5943 |
2 files changed, 5123 insertions, 1006 deletions
diff --git a/dozentenmodulserver/src/main/java/server/generated/Person.java b/dozentenmodulserver/src/main/java/server/generated/Person.java index 8129579b..d1bdac76 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Person.java +++ b/dozentenmodulserver/src/main/java/server/generated/Person.java @@ -38,13 +38,14 @@ 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 org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)5); + 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)6); + 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)7); + 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)8); + 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)9); + 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)10); + 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)11); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -55,6 +56,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, public String userID; // required public String Nachname; // required public String Vorname; // required + public String mail; // required public boolean image_read; // required public boolean image_write; // required public boolean image_admin; // required @@ -68,13 +70,14 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, USER_ID((short)1, "userID"), NACHNAME((short)2, "Nachname"), 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"); + MAIL((short)4, "mail"), + IMAGE_READ((short)5, "image_read"), + IMAGE_WRITE((short)6, "image_write"), + IMAGE_ADMIN((short)7, "image_admin"), + IMAGE_LINK((short)8, "image_link"), + LECTURE_READ((short)9, "lecture_read"), + LECTURE_WRITE((short)10, "lecture_write"), + LECTURE_ADMIN((short)11, "lecture_admin"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -95,19 +98,21 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, return NACHNAME; case 3: // VORNAME return VORNAME; - case 4: // IMAGE_READ + case 4: // MAIL + return MAIL; + case 5: // IMAGE_READ return IMAGE_READ; - case 5: // IMAGE_WRITE + case 6: // IMAGE_WRITE return IMAGE_WRITE; - case 6: // IMAGE_ADMIN + case 7: // IMAGE_ADMIN return IMAGE_ADMIN; - case 7: // IMAGE_LINK + case 8: // IMAGE_LINK return IMAGE_LINK; - case 8: // LECTURE_READ + case 9: // LECTURE_READ return LECTURE_READ; - case 9: // LECTURE_WRITE + case 10: // LECTURE_WRITE return LECTURE_WRITE; - case 10: // LECTURE_ADMIN + case 11: // LECTURE_ADMIN return LECTURE_ADMIN; default: return null; @@ -166,6 +171,8 @@ 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.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", 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, @@ -191,6 +198,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, String userID, String Nachname, String Vorname, + String mail, boolean image_read, boolean image_write, boolean image_admin, @@ -203,6 +211,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, this.userID = userID; this.Nachname = Nachname; this.Vorname = Vorname; + this.mail = mail; this.image_read = image_read; setImage_readIsSet(true); this.image_write = image_write; @@ -233,6 +242,9 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, if (other.isSetVorname()) { this.Vorname = other.Vorname; } + if (other.isSetMail()) { + this.mail = other.mail; + } this.image_read = other.image_read; this.image_write = other.image_write; this.image_admin = other.image_admin; @@ -251,6 +263,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, this.userID = null; this.Nachname = null; this.Vorname = null; + this.mail = null; setImage_readIsSet(false); this.image_read = false; setImage_writeIsSet(false); @@ -339,6 +352,30 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, } } + public String getMail() { + return this.mail; + } + + public Person setMail(String mail) { + this.mail = mail; + return this; + } + + public void unsetMail() { + this.mail = null; + } + + /** Returns true if field mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.mail = null; + } + } + public boolean isImage_read() { return this.image_read; } @@ -526,6 +563,14 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, } break; + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + case IMAGE_READ: if (value == null) { unsetImage_read(); @@ -596,6 +641,9 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, case VORNAME: return getVorname(); + case MAIL: + return getMail(); + case IMAGE_READ: return Boolean.valueOf(isImage_read()); @@ -634,6 +682,8 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, return isSetNachname(); case VORNAME: return isSetVorname(); + case MAIL: + return isSetMail(); case IMAGE_READ: return isSetImage_read(); case IMAGE_WRITE: @@ -692,6 +742,15 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, return false; } + boolean this_present_mail = true && this.isSetMail(); + boolean that_present_mail = true && that.isSetMail(); + if (this_present_mail || that_present_mail) { + if (!(this_present_mail && that_present_mail)) + return false; + if (!this.mail.equals(that.mail)) + return false; + } + boolean this_present_image_read = true; boolean that_present_image_read = true; if (this_present_image_read || that_present_image_read) { @@ -801,6 +860,16 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, return lastComparison; } } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetImage_read()).compareTo(other.isSetImage_read()); if (lastComparison != 0) { return lastComparison; @@ -915,6 +984,14 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, } first = false; if (!first) sb.append(", "); + sb.append("mail:"); + if (this.mail == null) { + sb.append("null"); + } else { + sb.append(this.mail); + } + first = false; + if (!first) sb.append(", "); sb.append("image_read:"); sb.append(this.image_read); first = false; @@ -1011,7 +1088,15 @@ 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 + case 4: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // IMAGE_READ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.image_read = iprot.readBool(); struct.setImage_readIsSet(true); @@ -1019,7 +1104,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // IMAGE_WRITE + case 6: // IMAGE_WRITE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.image_write = iprot.readBool(); struct.setImage_writeIsSet(true); @@ -1027,7 +1112,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // IMAGE_ADMIN + case 7: // IMAGE_ADMIN if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.image_admin = iprot.readBool(); struct.setImage_adminIsSet(true); @@ -1035,7 +1120,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 7: // IMAGE_LINK + case 8: // IMAGE_LINK if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.image_link = iprot.readBool(); struct.setImage_linkIsSet(true); @@ -1043,7 +1128,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 8: // LECTURE_READ + case 9: // LECTURE_READ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.lecture_read = iprot.readBool(); struct.setLecture_readIsSet(true); @@ -1051,7 +1136,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 9: // LECTURE_WRITE + case 10: // LECTURE_WRITE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.lecture_write = iprot.readBool(); struct.setLecture_writeIsSet(true); @@ -1059,7 +1144,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 10: // LECTURE_ADMIN + case 11: // LECTURE_ADMIN if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.lecture_admin = iprot.readBool(); struct.setLecture_adminIsSet(true); @@ -1097,6 +1182,11 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, oprot.writeString(struct.Vorname); oprot.writeFieldEnd(); } + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } oprot.writeFieldBegin(IMAGE_READ_FIELD_DESC); oprot.writeBool(struct.image_read); oprot.writeFieldEnd(); @@ -1145,28 +1235,31 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, if (struct.isSetVorname()) { optionals.set(2); } - if (struct.isSetImage_read()) { + if (struct.isSetMail()) { optionals.set(3); } - if (struct.isSetImage_write()) { + if (struct.isSetImage_read()) { optionals.set(4); } - if (struct.isSetImage_admin()) { + if (struct.isSetImage_write()) { optionals.set(5); } - if (struct.isSetImage_link()) { + if (struct.isSetImage_admin()) { optionals.set(6); } - if (struct.isSetLecture_read()) { + if (struct.isSetImage_link()) { optionals.set(7); } - if (struct.isSetLecture_write()) { + if (struct.isSetLecture_read()) { optionals.set(8); } - if (struct.isSetLecture_admin()) { + if (struct.isSetLecture_write()) { optionals.set(9); } - oprot.writeBitSet(optionals, 10); + if (struct.isSetLecture_admin()) { + optionals.set(10); + } + oprot.writeBitSet(optionals, 11); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } @@ -1176,6 +1269,9 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, if (struct.isSetVorname()) { oprot.writeString(struct.Vorname); } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } if (struct.isSetImage_read()) { oprot.writeBool(struct.image_read); } @@ -1202,7 +1298,7 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, @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(10); + BitSet incoming = iprot.readBitSet(11); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); @@ -1216,30 +1312,34 @@ public class Person implements org.apache.thrift.TBase<Person, Person._Fields>, struct.setVornameIsSet(true); } if (incoming.get(3)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(4)) { struct.image_read = iprot.readBool(); struct.setImage_readIsSet(true); } - if (incoming.get(4)) { + if (incoming.get(5)) { struct.image_write = iprot.readBool(); struct.setImage_writeIsSet(true); } - if (incoming.get(5)) { + if (incoming.get(6)) { struct.image_admin = iprot.readBool(); struct.setImage_adminIsSet(true); } - if (incoming.get(6)) { + if (incoming.get(7)) { struct.image_link = iprot.readBool(); struct.setImage_linkIsSet(true); } - if (incoming.get(7)) { + if (incoming.get(8)) { struct.lecture_read = iprot.readBool(); struct.setLecture_readIsSet(true); } - if (incoming.get(8)) { + if (incoming.get(9)) { struct.lecture_write = iprot.readBool(); struct.setLecture_writeIsSet(true); } - if (incoming.get(9)) { + if (incoming.get(10)) { struct.lecture_admin = iprot.readBool(); struct.setLecture_adminIsSet(true); } diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index 39763c69..c87659ae 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -52,6 +52,8 @@ public class Server { public List<Image> getImageListPermissionLink(String userID) throws org.apache.thrift.TException; + public List<Image> getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List<Lecture> getLectureList() throws org.apache.thrift.TException; public List<Lecture> getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; @@ -94,16 +96,22 @@ public class Server { public boolean writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; + public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException; + public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException; - public List<Person> getAllOtherSatelliteUsers(String userID) throws org.apache.thrift.TException; + public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException; - public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException; + public List<Person> getAllOtherSatelliteUsers(List<String> userID) throws org.apache.thrift.TException; public List<Person> getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException; + public List<Person> getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException; + public void deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException; + public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -124,6 +132,8 @@ public class Server { public void getImageListPermissionLink(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -166,16 +176,22 @@ public class Server { public void writeImageRights(String imagename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllOtherSatelliteUsers(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllOtherSatelliteUsers(List<String> userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getPermissionForUserAndImage(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllAdditionalImagePermissions(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllAdditionalLecturePermissions(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -399,6 +415,29 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionLink failed: unknown result"); } + public List<Image> getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + send_getImageListPermissionAdmin(userID); + return recv_getImageListPermissionAdmin(); + } + + public void send_getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); + args.setUserID(userID); + sendBase("getImageListPermissionAdmin", args); + } + + public List<Image> recv_getImageListPermissionAdmin() throws org.apache.thrift.TException + { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + receiveBase(result, "getImageListPermissionAdmin"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionAdmin failed: unknown result"); + } + public List<Lecture> getLectureList() throws org.apache.thrift.TException { send_getLectureList(); @@ -939,6 +978,34 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeImageRights failed: unknown result"); } + public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + { + send_writeAdditionalImageRights(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin); + return recv_writeAdditionalImageRights(); + } + + public void send_writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + { + writeAdditionalImageRights_args args = new writeAdditionalImageRights_args(); + args.setImageName(imageName); + args.setUserID(userID); + args.setIsRead(isRead); + args.setIsWrite(isWrite); + args.setIsLinkAllowed(isLinkAllowed); + args.setIsAdmin(isAdmin); + sendBase("writeAdditionalImageRights", args); + } + + public boolean recv_writeAdditionalImageRights() throws org.apache.thrift.TException + { + writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + receiveBase(result, "writeAdditionalImageRights"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeAdditionalImageRights failed: unknown result"); + } + public boolean writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role) throws org.apache.thrift.TException { send_writeLectureRights(lecturename, username, lastName, firstName, mail, university, role); @@ -968,55 +1035,54 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLectureRights failed: unknown result"); } - public List<Person> getAllOtherSatelliteUsers(String userID) throws org.apache.thrift.TException + public boolean writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException { - send_getAllOtherSatelliteUsers(userID); - return recv_getAllOtherSatelliteUsers(); + send_writeAdditionalLectureRights(lectureName, userID, isRead, isWrite, isAdmin); + return recv_writeAdditionalLectureRights(); } - public void send_getAllOtherSatelliteUsers(String userID) throws org.apache.thrift.TException + public void send_writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin) throws org.apache.thrift.TException { - getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); + writeAdditionalLectureRights_args args = new writeAdditionalLectureRights_args(); + args.setLectureName(lectureName); args.setUserID(userID); - sendBase("getAllOtherSatelliteUsers", args); + args.setIsRead(isRead); + args.setIsWrite(isWrite); + args.setIsAdmin(isAdmin); + sendBase("writeAdditionalLectureRights", args); } - public List<Person> recv_getAllOtherSatelliteUsers() throws org.apache.thrift.TException + public boolean recv_writeAdditionalLectureRights() throws org.apache.thrift.TException { - getAllOtherSatelliteUsers_result result = new getAllOtherSatelliteUsers_result(); - receiveBase(result, "getAllOtherSatelliteUsers"); + writeAdditionalLectureRights_result result = new writeAdditionalLectureRights_result(); + receiveBase(result, "writeAdditionalLectureRights"); if (result.isSetSuccess()) { return result.success; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOtherSatelliteUsers failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeAdditionalLectureRights failed: unknown result"); } - public boolean writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + public List<Person> getAllOtherSatelliteUsers(List<String> userID) throws org.apache.thrift.TException { - send_writeAdditionalImageRights(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin); - return recv_writeAdditionalImageRights(); + send_getAllOtherSatelliteUsers(userID); + return recv_getAllOtherSatelliteUsers(); } - public void send_writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin) throws org.apache.thrift.TException + public void send_getAllOtherSatelliteUsers(List<String> userID) throws org.apache.thrift.TException { - writeAdditionalImageRights_args args = new writeAdditionalImageRights_args(); - args.setImageName(imageName); + getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); args.setUserID(userID); - args.setIsRead(isRead); - args.setIsWrite(isWrite); - args.setIsLinkAllowed(isLinkAllowed); - args.setIsAdmin(isAdmin); - sendBase("writeAdditionalImageRights", args); + sendBase("getAllOtherSatelliteUsers", args); } - public boolean recv_writeAdditionalImageRights() throws org.apache.thrift.TException + public List<Person> recv_getAllOtherSatelliteUsers() throws org.apache.thrift.TException { - writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); - receiveBase(result, "writeAdditionalImageRights"); + getAllOtherSatelliteUsers_result result = new getAllOtherSatelliteUsers_result(); + receiveBase(result, "getAllOtherSatelliteUsers"); if (result.isSetSuccess()) { return result.success; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeAdditionalImageRights failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOtherSatelliteUsers failed: unknown result"); } public List<Person> getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException @@ -1043,6 +1109,30 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionForUserAndImage failed: unknown result"); } + public List<Person> getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException + { + send_getPermissionForUserAndLecture(userID, lectureID); + return recv_getPermissionForUserAndLecture(); + } + + public void send_getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException + { + getPermissionForUserAndLecture_args args = new getPermissionForUserAndLecture_args(); + args.setUserID(userID); + args.setLectureID(lectureID); + sendBase("getPermissionForUserAndLecture", args); + } + + public List<Person> recv_getPermissionForUserAndLecture() throws org.apache.thrift.TException + { + getPermissionForUserAndLecture_result result = new getPermissionForUserAndLecture_result(); + receiveBase(result, "getPermissionForUserAndLecture"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionForUserAndLecture failed: unknown result"); + } + public void deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException { send_deleteAllAdditionalImagePermissions(imageID, userID); @@ -1064,6 +1154,27 @@ public class Server { return; } + public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException + { + send_deleteAllAdditionalLecturePermissions(lectureID, userID); + recv_deleteAllAdditionalLecturePermissions(); + } + + public void send_deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException + { + deleteAllAdditionalLecturePermissions_args args = new deleteAllAdditionalLecturePermissions_args(); + args.setLectureID(lectureID); + args.setUserID(userID); + sendBase("deleteAllAdditionalLecturePermissions", args); + } + + public void recv_deleteAllAdditionalLecturePermissions() throws org.apache.thrift.TException + { + deleteAllAdditionalLecturePermissions_result result = new deleteAllAdditionalLecturePermissions_result(); + receiveBase(result, "deleteAllAdditionalLecturePermissions"); + return; + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { @@ -1389,6 +1500,38 @@ public class Server { } } + public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getImageListPermissionAdmin_call method_call = new getImageListPermissionAdmin_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getImageListPermissionAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getImageListPermissionAdmin_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); + args.setUserID(userID); + args.write(prot); + prot.writeMessageEnd(); + } + + public List<Image> getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getImageListPermissionAdmin(); + } + } + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport); @@ -2241,6 +2384,53 @@ public class Server { } } + public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + writeAdditionalImageRights_call method_call = new writeAdditionalImageRights_call(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class writeAdditionalImageRights_call extends org.apache.thrift.async.TAsyncMethodCall { + private String imageName; + private String userID; + private boolean isRead; + private boolean isWrite; + private boolean isLinkAllowed; + private boolean isAdmin; + public writeAdditionalImageRights_call(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.imageName = imageName; + this.userID = userID; + this.isRead = isRead; + this.isWrite = isWrite; + this.isLinkAllowed = isLinkAllowed; + this.isAdmin = isAdmin; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeAdditionalImageRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); + writeAdditionalImageRights_args args = new writeAdditionalImageRights_args(); + args.setImageName(imageName); + args.setUserID(userID); + args.setIsRead(isRead); + args.setIsWrite(isWrite); + args.setIsLinkAllowed(isLinkAllowed); + args.setIsAdmin(isAdmin); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_writeAdditionalImageRights(); + } + } + public void writeLectureRights(String lecturename, String username, String lastName, String firstName, String mail, String university, String role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeLectureRights_call method_call = new writeLectureRights_call(lecturename, username, lastName, firstName, mail, university, role, resultHandler, this, ___protocolFactory, ___transport); @@ -2291,82 +2481,79 @@ public class Server { } } - public void getAllOtherSatelliteUsers(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeAdditionalLectureRights(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllOtherSatelliteUsers_call method_call = new getAllOtherSatelliteUsers_call(userID, resultHandler, this, ___protocolFactory, ___transport); + writeAdditionalLectureRights_call method_call = new writeAdditionalLectureRights_call(lectureName, userID, isRead, isWrite, isAdmin, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllOtherSatelliteUsers_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class writeAdditionalLectureRights_call extends org.apache.thrift.async.TAsyncMethodCall { + private String lectureName; private String userID; - public getAllOtherSatelliteUsers_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private boolean isRead; + private boolean isWrite; + private boolean isAdmin; + public writeAdditionalLectureRights_call(String lectureName, String userID, boolean isRead, boolean isWrite, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); + this.lectureName = lectureName; this.userID = userID; + this.isRead = isRead; + this.isWrite = isWrite; + this.isAdmin = isAdmin; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOtherSatelliteUsers", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeAdditionalLectureRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); + writeAdditionalLectureRights_args args = new writeAdditionalLectureRights_args(); + args.setLectureName(lectureName); args.setUserID(userID); + args.setIsRead(isRead); + args.setIsWrite(isWrite); + args.setIsAdmin(isAdmin); args.write(prot); prot.writeMessageEnd(); } - public List<Person> getResult() throws org.apache.thrift.TException { + public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getAllOtherSatelliteUsers(); + return (new Client(prot)).recv_writeAdditionalLectureRights(); } } - public void writeAdditionalImageRights(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllOtherSatelliteUsers(List<String> userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - writeAdditionalImageRights_call method_call = new writeAdditionalImageRights_call(imageName, userID, isRead, isWrite, isLinkAllowed, isAdmin, resultHandler, this, ___protocolFactory, ___transport); + getAllOtherSatelliteUsers_call method_call = new getAllOtherSatelliteUsers_call(userID, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class writeAdditionalImageRights_call extends org.apache.thrift.async.TAsyncMethodCall { - private String imageName; - private String userID; - private boolean isRead; - private boolean isWrite; - private boolean isLinkAllowed; - private boolean isAdmin; - public writeAdditionalImageRights_call(String imageName, String userID, boolean isRead, boolean isWrite, boolean isLinkAllowed, boolean isAdmin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class getAllOtherSatelliteUsers_call extends org.apache.thrift.async.TAsyncMethodCall { + private List<String> userID; + public getAllOtherSatelliteUsers_call(List<String> userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); - this.imageName = imageName; this.userID = userID; - this.isRead = isRead; - this.isWrite = isWrite; - this.isLinkAllowed = isLinkAllowed; - this.isAdmin = isAdmin; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeAdditionalImageRights", org.apache.thrift.protocol.TMessageType.CALL, 0)); - writeAdditionalImageRights_args args = new writeAdditionalImageRights_args(); - args.setImageName(imageName); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOtherSatelliteUsers", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getAllOtherSatelliteUsers_args args = new getAllOtherSatelliteUsers_args(); args.setUserID(userID); - args.setIsRead(isRead); - args.setIsWrite(isWrite); - args.setIsLinkAllowed(isLinkAllowed); - args.setIsAdmin(isAdmin); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws org.apache.thrift.TException { + public List<Person> getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_writeAdditionalImageRights(); + return (new Client(prot)).recv_getAllOtherSatelliteUsers(); } } @@ -2405,6 +2592,41 @@ public class Server { } } + public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getPermissionForUserAndLecture_call method_call = new getPermissionForUserAndLecture_call(userID, lectureID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getPermissionForUserAndLecture_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + private String lectureID; + public getPermissionForUserAndLecture_call(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + this.lectureID = lectureID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionForUserAndLecture", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getPermissionForUserAndLecture_args args = new getPermissionForUserAndLecture_args(); + args.setUserID(userID); + args.setLectureID(lectureID); + args.write(prot); + prot.writeMessageEnd(); + } + + public List<Person> getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getPermissionForUserAndLecture(); + } + } + public void deleteAllAdditionalImagePermissions(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteAllAdditionalImagePermissions_call method_call = new deleteAllAdditionalImagePermissions_call(imageID, userID, resultHandler, this, ___protocolFactory, ___transport); @@ -2440,6 +2662,41 @@ public class Server { } } + public void deleteAllAdditionalLecturePermissions(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + deleteAllAdditionalLecturePermissions_call method_call = new deleteAllAdditionalLecturePermissions_call(lectureID, userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class deleteAllAdditionalLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { + private String lectureID; + private String userID; + public deleteAllAdditionalLecturePermissions_call(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.lectureID = lectureID; + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllAdditionalLecturePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0)); + deleteAllAdditionalLecturePermissions_args args = new deleteAllAdditionalLecturePermissions_args(); + args.setLectureID(lectureID); + args.setUserID(userID); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + (new Client(prot)).recv_deleteAllAdditionalLecturePermissions(); + } + } + } public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor { @@ -2461,6 +2718,7 @@ public class Server { processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); + processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -2482,11 +2740,14 @@ public class Server { processMap.put("checkUser", new checkUser()); processMap.put("createUser", new createUser()); processMap.put("writeImageRights", new writeImageRights()); + processMap.put("writeAdditionalImageRights", new writeAdditionalImageRights()); processMap.put("writeLectureRights", new writeLectureRights()); + processMap.put("writeAdditionalLectureRights", new writeAdditionalLectureRights()); processMap.put("getAllOtherSatelliteUsers", new getAllOtherSatelliteUsers()); - processMap.put("writeAdditionalImageRights", new writeAdditionalImageRights()); processMap.put("getPermissionForUserAndImage", new getPermissionForUserAndImage()); + processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture()); processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions()); + processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions()); return processMap; } @@ -2652,6 +2913,26 @@ public class Server { } } + public static class getImageListPermissionAdmin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageListPermissionAdmin_args> { + public getImageListPermissionAdmin() { + super("getImageListPermissionAdmin"); + } + + public getImageListPermissionAdmin_args getEmptyArgsInstance() { + return new getImageListPermissionAdmin_args(); + } + + protected boolean isOneway() { + return false; + } + + public getImageListPermissionAdmin_result getResult(I iface, getImageListPermissionAdmin_args args) throws org.apache.thrift.TException { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + result.success = iface.getImageListPermissionAdmin(args.userID); + return result; + } + } + public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> { public getLectureList() { super("getLectureList"); @@ -3083,6 +3364,27 @@ public class Server { } } + public static class writeAdditionalImageRights<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeAdditionalImageRights_args> { + public writeAdditionalImageRights() { + super("writeAdditionalImageRights"); + } + + public writeAdditionalImageRights_args getEmptyArgsInstance() { + return new writeAdditionalImageRights_args(); + } + + protected boolean isOneway() { + return false; + } + + public writeAdditionalImageRights_result getResult(I iface, writeAdditionalImageRights_args args) throws org.apache.thrift.TException { + writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + result.success = iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin); + result.setSuccessIsSet(true); + return result; + } + } + public static class writeLectureRights<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeLectureRights_args> { public writeLectureRights() { super("writeLectureRights"); @@ -3104,43 +3406,43 @@ public class Server { } } - public static class getAllOtherSatelliteUsers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOtherSatelliteUsers_args> { - public getAllOtherSatelliteUsers() { - super("getAllOtherSatelliteUsers"); + public static class writeAdditionalLectureRights<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeAdditionalLectureRights_args> { + public writeAdditionalLectureRights() { + super("writeAdditionalLectureRights"); } - public getAllOtherSatelliteUsers_args getEmptyArgsInstance() { - return new getAllOtherSatelliteUsers_args(); + public writeAdditionalLectureRights_args getEmptyArgsInstance() { + return new writeAdditionalLectureRights_args(); } protected boolean isOneway() { return false; } - public getAllOtherSatelliteUsers_result getResult(I iface, getAllOtherSatelliteUsers_args args) throws org.apache.thrift.TException { - getAllOtherSatelliteUsers_result result = new getAllOtherSatelliteUsers_result(); - result.success = iface.getAllOtherSatelliteUsers(args.userID); + public writeAdditionalLectureRights_result getResult(I iface, writeAdditionalLectureRights_args args) throws org.apache.thrift.TException { + writeAdditionalLectureRights_result result = new writeAdditionalLectureRights_result(); + result.success = iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin); + result.setSuccessIsSet(true); return result; } } - public static class writeAdditionalImageRights<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeAdditionalImageRights_args> { - public writeAdditionalImageRights() { - super("writeAdditionalImageRights"); + public static class getAllOtherSatelliteUsers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOtherSatelliteUsers_args> { + public getAllOtherSatelliteUsers() { + super("getAllOtherSatelliteUsers"); } - public writeAdditionalImageRights_args getEmptyArgsInstance() { - return new writeAdditionalImageRights_args(); + public getAllOtherSatelliteUsers_args getEmptyArgsInstance() { + return new getAllOtherSatelliteUsers_args(); } protected boolean isOneway() { return false; } - public writeAdditionalImageRights_result getResult(I iface, writeAdditionalImageRights_args args) throws org.apache.thrift.TException { - writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); - result.success = iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin); - result.setSuccessIsSet(true); + public getAllOtherSatelliteUsers_result getResult(I iface, getAllOtherSatelliteUsers_args args) throws org.apache.thrift.TException { + getAllOtherSatelliteUsers_result result = new getAllOtherSatelliteUsers_result(); + result.success = iface.getAllOtherSatelliteUsers(args.userID); return result; } } @@ -3165,6 +3467,26 @@ public class Server { } } + public static class getPermissionForUserAndLecture<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionForUserAndLecture_args> { + public getPermissionForUserAndLecture() { + super("getPermissionForUserAndLecture"); + } + + public getPermissionForUserAndLecture_args getEmptyArgsInstance() { + return new getPermissionForUserAndLecture_args(); + } + + protected boolean isOneway() { + return false; + } + + public getPermissionForUserAndLecture_result getResult(I iface, getPermissionForUserAndLecture_args args) throws org.apache.thrift.TException { + getPermissionForUserAndLecture_result result = new getPermissionForUserAndLecture_result(); + result.success = iface.getPermissionForUserAndLecture(args.userID, args.lectureID); + return result; + } + } + public static class deleteAllAdditionalImagePermissions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllAdditionalImagePermissions_args> { public deleteAllAdditionalImagePermissions() { super("deleteAllAdditionalImagePermissions"); @@ -3185,6 +3507,26 @@ public class Server { } } + public static class deleteAllAdditionalLecturePermissions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllAdditionalLecturePermissions_args> { + public deleteAllAdditionalLecturePermissions() { + super("deleteAllAdditionalLecturePermissions"); + } + + public deleteAllAdditionalLecturePermissions_args getEmptyArgsInstance() { + return new deleteAllAdditionalLecturePermissions_args(); + } + + protected boolean isOneway() { + return false; + } + + public deleteAllAdditionalLecturePermissions_result getResult(I iface, deleteAllAdditionalLecturePermissions_args args) throws org.apache.thrift.TException { + deleteAllAdditionalLecturePermissions_result result = new deleteAllAdditionalLecturePermissions_result(); + iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.userID); + return result; + } + } + } public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> { @@ -3206,6 +3548,7 @@ public class Server { processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); + processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -3227,11 +3570,14 @@ public class Server { processMap.put("checkUser", new checkUser()); processMap.put("createUser", new createUser()); processMap.put("writeImageRights", new writeImageRights()); + processMap.put("writeAdditionalImageRights", new writeAdditionalImageRights()); processMap.put("writeLectureRights", new writeLectureRights()); + processMap.put("writeAdditionalLectureRights", new writeAdditionalLectureRights()); processMap.put("getAllOtherSatelliteUsers", new getAllOtherSatelliteUsers()); - processMap.put("writeAdditionalImageRights", new writeAdditionalImageRights()); processMap.put("getPermissionForUserAndImage", new getPermissionForUserAndImage()); + processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture()); processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions()); + processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions()); return processMap; } @@ -3645,6 +3991,57 @@ public class Server { } } + public static class getImageListPermissionAdmin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageListPermissionAdmin_args, List<Image>> { + public getImageListPermissionAdmin() { + super("getImageListPermissionAdmin"); + } + + public getImageListPermissionAdmin_args getEmptyArgsInstance() { + return new getImageListPermissionAdmin_args(); + } + + public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<List<Image>>() { + public void onComplete(List<Image> o) { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getImageListPermissionAdmin_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException { + iface.getImageListPermissionAdmin(args.userID,resultHandler); + } + } + public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> { public getLectureList() { super("getLectureList"); @@ -4726,6 +5123,58 @@ public class Server { } } + public static class writeAdditionalImageRights<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeAdditionalImageRights_args, Boolean> { + public writeAdditionalImageRights() { + super("writeAdditionalImageRights"); + } + + public writeAdditionalImageRights_args getEmptyArgsInstance() { + return new writeAdditionalImageRights_args(); + } + + public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<Boolean>() { + public void onComplete(Boolean o) { + writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, writeAdditionalImageRights_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException { + iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin,resultHandler); + } + } + public static class writeLectureRights<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeLectureRights_args, Boolean> { public writeLectureRights() { super("writeLectureRights"); @@ -4778,6 +5227,58 @@ public class Server { } } + public static class writeAdditionalLectureRights<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeAdditionalLectureRights_args, Boolean> { + public writeAdditionalLectureRights() { + super("writeAdditionalLectureRights"); + } + + public writeAdditionalLectureRights_args getEmptyArgsInstance() { + return new writeAdditionalLectureRights_args(); + } + + public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<Boolean>() { + public void onComplete(Boolean o) { + writeAdditionalLectureRights_result result = new writeAdditionalLectureRights_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + writeAdditionalLectureRights_result result = new writeAdditionalLectureRights_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, writeAdditionalLectureRights_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException { + iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin,resultHandler); + } + } + public static class getAllOtherSatelliteUsers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOtherSatelliteUsers_args, List<Person>> { public getAllOtherSatelliteUsers() { super("getAllOtherSatelliteUsers"); @@ -4829,22 +5330,21 @@ public class Server { } } - public static class writeAdditionalImageRights<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeAdditionalImageRights_args, Boolean> { - public writeAdditionalImageRights() { - super("writeAdditionalImageRights"); + public static class getPermissionForUserAndImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPermissionForUserAndImage_args, List<Person>> { + public getPermissionForUserAndImage() { + super("getPermissionForUserAndImage"); } - public writeAdditionalImageRights_args getEmptyArgsInstance() { - return new writeAdditionalImageRights_args(); + public getPermissionForUserAndImage_args getEmptyArgsInstance() { + return new getPermissionForUserAndImage_args(); } - public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback<List<Person>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback<Boolean>() { - public void onComplete(Boolean o) { - writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + return new AsyncMethodCallback<List<Person>>() { + public void onComplete(List<Person> o) { + getPermissionForUserAndImage_result result = new getPermissionForUserAndImage_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4856,7 +5356,7 @@ public class Server { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + getPermissionForUserAndImage_result result = new getPermissionForUserAndImage_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -4876,25 +5376,25 @@ public class Server { return false; } - public void start(I iface, writeAdditionalImageRights_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException { - iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin,resultHandler); + public void start(I iface, getPermissionForUserAndImage_args args, org.apache.thrift.async.AsyncMethodCallback<List<Person>> resultHandler) throws TException { + iface.getPermissionForUserAndImage(args.userID, args.imageID,resultHandler); } } - public static class getPermissionForUserAndImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPermissionForUserAndImage_args, List<Person>> { - public getPermissionForUserAndImage() { - super("getPermissionForUserAndImage"); + public static class getPermissionForUserAndLecture<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPermissionForUserAndLecture_args, List<Person>> { + public getPermissionForUserAndLecture() { + super("getPermissionForUserAndLecture"); } - public getPermissionForUserAndImage_args getEmptyArgsInstance() { - return new getPermissionForUserAndImage_args(); + public getPermissionForUserAndLecture_args getEmptyArgsInstance() { + return new getPermissionForUserAndLecture_args(); } public AsyncMethodCallback<List<Person>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<List<Person>>() { public void onComplete(List<Person> o) { - getPermissionForUserAndImage_result result = new getPermissionForUserAndImage_result(); + getPermissionForUserAndLecture_result result = new getPermissionForUserAndLecture_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -4907,7 +5407,7 @@ public class Server { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getPermissionForUserAndImage_result result = new getPermissionForUserAndImage_result(); + getPermissionForUserAndLecture_result result = new getPermissionForUserAndLecture_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -4927,8 +5427,8 @@ public class Server { return false; } - public void start(I iface, getPermissionForUserAndImage_args args, org.apache.thrift.async.AsyncMethodCallback<List<Person>> resultHandler) throws TException { - iface.getPermissionForUserAndImage(args.userID, args.imageID,resultHandler); + public void start(I iface, getPermissionForUserAndLecture_args args, org.apache.thrift.async.AsyncMethodCallback<List<Person>> resultHandler) throws TException { + iface.getPermissionForUserAndLecture(args.userID, args.lectureID,resultHandler); } } @@ -4982,6 +5482,56 @@ public class Server { } } + public static class deleteAllAdditionalLecturePermissions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteAllAdditionalLecturePermissions_args, Void> { + public deleteAllAdditionalLecturePermissions() { + super("deleteAllAdditionalLecturePermissions"); + } + + public deleteAllAdditionalLecturePermissions_args getEmptyArgsInstance() { + return new deleteAllAdditionalLecturePermissions_args(); + } + + public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<Void>() { + public void onComplete(Void o) { + deleteAllAdditionalLecturePermissions_result result = new deleteAllAdditionalLecturePermissions_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteAllAdditionalLecturePermissions_result result = new deleteAllAdditionalLecturePermissions_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteAllAdditionalLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { + iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.userID,resultHandler); + } + } + } public static class getFtpUser_args implements org.apache.thrift.TBase<getFtpUser_args, getFtpUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFtpUser_args> { @@ -12469,6 +13019,768 @@ public class Server { } + public static class getImageListPermissionAdmin_args implements org.apache.thrift.TBase<getImageListPermissionAdmin_args, getImageListPermissionAdmin_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListPermissionAdmin_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionAdmin_args"); + + 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 Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_argsTupleSchemeFactory()); + } + + public String userID; // 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"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + 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); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_args.class, metaDataMap); + } + + public getImageListPermissionAdmin_args() { + } + + public getImageListPermissionAdmin_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageListPermissionAdmin_args(getImageListPermissionAdmin_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionAdmin_args deepCopy() { + return new getImageListPermissionAdmin_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageListPermissionAdmin_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionAdmin_args) + return this.equals((getImageListPermissionAdmin_args)that); + return false; + } + + public boolean equals(getImageListPermissionAdmin_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionAdmin_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + 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); + } + } + + private static class getImageListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsStandardScheme getScheme() { + return new getImageListPermissionAdmin_argsStandardScheme(); + } + } + + private static class getImageListPermissionAdmin_argsStandardScheme extends StandardScheme<getImageListPermissionAdmin_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsTupleScheme getScheme() { + return new getImageListPermissionAdmin_argsTupleScheme(); + } + } + + private static class getImageListPermissionAdmin_argsTupleScheme extends TupleScheme<getImageListPermissionAdmin_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageListPermissionAdmin_result implements org.apache.thrift.TBase<getImageListPermissionAdmin_result, getImageListPermissionAdmin_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListPermissionAdmin_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionAdmin_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_resultTupleSchemeFactory()); + } + + public List<Image> success; // 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 { + SUCCESS((short)0, "success"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + 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); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, Image.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_result.class, metaDataMap); + } + + public getImageListPermissionAdmin_result() { + } + + public getImageListPermissionAdmin_result( + List<Image> success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageListPermissionAdmin_result(getImageListPermissionAdmin_result other) { + if (other.isSetSuccess()) { + List<Image> __this__success = new ArrayList<Image>(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageListPermissionAdmin_result deepCopy() { + return new getImageListPermissionAdmin_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator<Image> getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Image elem) { + if (this.success == null) { + this.success = new ArrayList<Image>(); + } + this.success.add(elem); + } + + public List<Image> getSuccess() { + return this.success; + } + + public getImageListPermissionAdmin_result setSuccess(List<Image> success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List<Image>)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionAdmin_result) + return this.equals((getImageListPermissionAdmin_result)that); + return false; + } + + public boolean equals(getImageListPermissionAdmin_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionAdmin_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + 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); + } + } + + private static class getImageListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultStandardScheme getScheme() { + return new getImageListPermissionAdmin_resultStandardScheme(); + } + } + + private static class getImageListPermissionAdmin_resultStandardScheme extends StandardScheme<getImageListPermissionAdmin_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList<Image>(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) + { + Image _elem26; + _elem26 = new Image(); + _elem26.read(iprot); + struct.success.add(_elem26); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter27 : struct.success) + { + _iter27.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultTupleScheme getScheme() { + return new getImageListPermissionAdmin_resultTupleScheme(); + } + } + + private static class getImageListPermissionAdmin_resultTupleScheme extends TupleScheme<getImageListPermissionAdmin_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Image _iter28 : struct.success) + { + _iter28.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Image>(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) + { + Image _elem31; + _elem31 = new Image(); + _elem31.read(iprot); + struct.success.add(_elem31); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args"); @@ -13024,14 +14336,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Lecture _elem26; - _elem26 = new Lecture(); - _elem26.read(iprot); - struct.success.add(_elem26); + Lecture _elem34; + _elem34 = new Lecture(); + _elem34.read(iprot); + struct.success.add(_elem34); } iprot.readListEnd(); } @@ -13059,9 +14371,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter27 : struct.success) + for (Lecture _iter35 : struct.success) { - _iter27.write(oprot); + _iter35.write(oprot); } oprot.writeListEnd(); } @@ -13092,9 +14404,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter28 : struct.success) + for (Lecture _iter36 : struct.success) { - _iter28.write(oprot); + _iter36.write(oprot); } } } @@ -13106,14 +14418,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list37.size); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Lecture _elem31; - _elem31 = new Lecture(); - _elem31.read(iprot); - struct.success.add(_elem31); + Lecture _elem39; + _elem39 = new Lecture(); + _elem39.read(iprot); + struct.success.add(_elem39); } } struct.setSuccessIsSet(true); @@ -13786,14 +15098,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - Lecture _elem34; - _elem34 = new Lecture(); - _elem34.read(iprot); - struct.success.add(_elem34); + Lecture _elem42; + _elem42 = new Lecture(); + _elem42.read(iprot); + struct.success.add(_elem42); } iprot.readListEnd(); } @@ -13821,9 +15133,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter35 : struct.success) + for (Lecture _iter43 : struct.success) { - _iter35.write(oprot); + _iter43.write(oprot); } oprot.writeListEnd(); } @@ -13854,9 +15166,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter36 : struct.success) + for (Lecture _iter44 : struct.success) { - _iter36.write(oprot); + _iter44.write(oprot); } } } @@ -13868,14 +15180,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - Lecture _elem39; - _elem39 = new Lecture(); - _elem39.read(iprot); - struct.success.add(_elem39); + Lecture _elem47; + _elem47 = new Lecture(); + _elem47.read(iprot); + struct.success.add(_elem47); } } struct.setSuccessIsSet(true); @@ -14548,14 +15860,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list48.size); + for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Lecture _elem42; - _elem42 = new Lecture(); - _elem42.read(iprot); - struct.success.add(_elem42); + Lecture _elem50; + _elem50 = new Lecture(); + _elem50.read(iprot); + struct.success.add(_elem50); } iprot.readListEnd(); } @@ -14583,9 +15895,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter43 : struct.success) + for (Lecture _iter51 : struct.success) { - _iter43.write(oprot); + _iter51.write(oprot); } oprot.writeListEnd(); } @@ -14616,9 +15928,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter44 : struct.success) + for (Lecture _iter52 : struct.success) { - _iter44.write(oprot); + _iter52.write(oprot); } } } @@ -14630,14 +15942,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list53.size); + for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Lecture _elem47; - _elem47 = new Lecture(); - _elem47.read(iprot); - struct.success.add(_elem47); + Lecture _elem55; + _elem55 = new Lecture(); + _elem55.read(iprot); + struct.success.add(_elem55); } } struct.setSuccessIsSet(true); @@ -15310,14 +16622,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - Lecture _elem50; - _elem50 = new Lecture(); - _elem50.read(iprot); - struct.success.add(_elem50); + Lecture _elem58; + _elem58 = new Lecture(); + _elem58.read(iprot); + struct.success.add(_elem58); } iprot.readListEnd(); } @@ -15345,9 +16657,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter51 : struct.success) + for (Lecture _iter59 : struct.success) { - _iter51.write(oprot); + _iter59.write(oprot); } oprot.writeListEnd(); } @@ -15378,9 +16690,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter52 : struct.success) + for (Lecture _iter60 : struct.success) { - _iter52.write(oprot); + _iter60.write(oprot); } } } @@ -15392,14 +16704,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list53.size); - for (int _i54 = 0; _i54 < _list53.size; ++_i54) + org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - Lecture _elem55; - _elem55 = new Lecture(); - _elem55.read(iprot); - struct.success.add(_elem55); + Lecture _elem63; + _elem63 = new Lecture(); + _elem63.read(iprot); + struct.success.add(_elem63); } } struct.setSuccessIsSet(true); @@ -15961,13 +17273,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - String _elem58; - _elem58 = iprot.readString(); - struct.success.add(_elem58); + String _elem66; + _elem66 = iprot.readString(); + struct.success.add(_elem66); } iprot.readListEnd(); } @@ -15995,9 +17307,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter59 : struct.success) + for (String _iter67 : struct.success) { - oprot.writeString(_iter59); + oprot.writeString(_iter67); } oprot.writeListEnd(); } @@ -16028,9 +17340,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter60 : struct.success) + for (String _iter68 : struct.success) { - oprot.writeString(_iter60); + oprot.writeString(_iter68); } } } @@ -16042,13 +17354,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list61.size); - for (int _i62 = 0; _i62 < _list61.size; ++_i62) + org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list69.size); + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - String _elem63; - _elem63 = iprot.readString(); - struct.success.add(_elem63); + String _elem71; + _elem71 = iprot.readString(); + struct.success.add(_elem71); } } struct.setSuccessIsSet(true); @@ -16610,13 +17922,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list72.size); + for (int _i73 = 0; _i73 < _list72.size; ++_i73) { - String _elem66; - _elem66 = iprot.readString(); - struct.success.add(_elem66); + String _elem74; + _elem74 = iprot.readString(); + struct.success.add(_elem74); } iprot.readListEnd(); } @@ -16644,9 +17956,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter67 : struct.success) + for (String _iter75 : struct.success) { - oprot.writeString(_iter67); + oprot.writeString(_iter75); } oprot.writeListEnd(); } @@ -16677,9 +17989,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter68 : struct.success) + for (String _iter76 : struct.success) { - oprot.writeString(_iter68); + oprot.writeString(_iter76); } } } @@ -16691,13 +18003,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list69.size); - for (int _i70 = 0; _i70 < _list69.size; ++_i70) + org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list77.size); + for (int _i78 = 0; _i78 < _list77.size; ++_i78) { - String _elem71; - _elem71 = iprot.readString(); - struct.success.add(_elem71); + String _elem79; + _elem79 = iprot.readString(); + struct.success.add(_elem79); } } struct.setSuccessIsSet(true); @@ -17464,15 +18776,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map72.size); - for (int _i73 = 0; _i73 < _map72.size; ++_i73) + org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map80.size); + for (int _i81 = 0; _i81 < _map80.size; ++_i81) { - String _key74; - String _val75; - _key74 = iprot.readString(); - _val75 = iprot.readString(); - struct.success.put(_key74, _val75); + String _key82; + String _val83; + _key82 = iprot.readString(); + _val83 = iprot.readString(); + struct.success.put(_key82, _val83); } iprot.readMapEnd(); } @@ -17500,10 +18812,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter76 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter84 : struct.success.entrySet()) { - oprot.writeString(_iter76.getKey()); - oprot.writeString(_iter76.getValue()); + oprot.writeString(_iter84.getKey()); + oprot.writeString(_iter84.getValue()); } oprot.writeMapEnd(); } @@ -17534,10 +18846,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter77 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter85 : struct.success.entrySet()) { - oprot.writeString(_iter77.getKey()); - oprot.writeString(_iter77.getValue()); + oprot.writeString(_iter85.getKey()); + oprot.writeString(_iter85.getValue()); } } } @@ -17549,15 +18861,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map78.size); - for (int _i79 = 0; _i79 < _map78.size; ++_i79) + org.apache.thrift.protocol.TMap _map86 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map86.size); + for (int _i87 = 0; _i87 < _map86.size; ++_i87) { - String _key80; - String _val81; - _key80 = iprot.readString(); - _val81 = iprot.readString(); - struct.success.put(_key80, _val81); + String _key88; + String _val89; + _key88 = iprot.readString(); + _val89 = iprot.readString(); + struct.success.put(_key88, _val89); } } struct.setSuccessIsSet(true); @@ -22038,15 +23350,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map82.size); - for (int _i83 = 0; _i83 < _map82.size; ++_i83) + org.apache.thrift.protocol.TMap _map90 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map90.size); + for (int _i91 = 0; _i91 < _map90.size; ++_i91) { - String _key84; - String _val85; - _key84 = iprot.readString(); - _val85 = iprot.readString(); - struct.success.put(_key84, _val85); + String _key92; + String _val93; + _key92 = iprot.readString(); + _val93 = iprot.readString(); + struct.success.put(_key92, _val93); } iprot.readMapEnd(); } @@ -22074,10 +23386,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter86 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter94 : struct.success.entrySet()) { - oprot.writeString(_iter86.getKey()); - oprot.writeString(_iter86.getValue()); + oprot.writeString(_iter94.getKey()); + oprot.writeString(_iter94.getValue()); } oprot.writeMapEnd(); } @@ -22108,10 +23420,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter87 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter95 : struct.success.entrySet()) { - oprot.writeString(_iter87.getKey()); - oprot.writeString(_iter87.getValue()); + oprot.writeString(_iter95.getKey()); + oprot.writeString(_iter95.getValue()); } } } @@ -22123,15 +23435,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map88.size); - for (int _i89 = 0; _i89 < _map88.size; ++_i89) + org.apache.thrift.protocol.TMap _map96 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map96.size); + for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _key90; - String _val91; - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.success.put(_key90, _val91); + String _key98; + String _val99; + _key98 = iprot.readString(); + _val99 = iprot.readString(); + struct.success.put(_key98, _val99); } } struct.setSuccessIsSet(true); @@ -22798,15 +24110,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map92.size); - for (int _i93 = 0; _i93 < _map92.size; ++_i93) + org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map100.size); + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - String _key94; - String _val95; - _key94 = iprot.readString(); - _val95 = iprot.readString(); - struct.success.put(_key94, _val95); + String _key102; + String _val103; + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.success.put(_key102, _val103); } iprot.readMapEnd(); } @@ -22834,10 +24146,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter96 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter104 : struct.success.entrySet()) { - oprot.writeString(_iter96.getKey()); - oprot.writeString(_iter96.getValue()); + oprot.writeString(_iter104.getKey()); + oprot.writeString(_iter104.getValue()); } oprot.writeMapEnd(); } @@ -22868,10 +24180,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter97 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter105 : struct.success.entrySet()) { - oprot.writeString(_iter97.getKey()); - oprot.writeString(_iter97.getValue()); + oprot.writeString(_iter105.getKey()); + oprot.writeString(_iter105.getValue()); } } } @@ -22883,15 +24195,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map98 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map98.size); - for (int _i99 = 0; _i99 < _map98.size; ++_i99) + org.apache.thrift.protocol.TMap _map106 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map106.size); + for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key100; - String _val101; - _key100 = iprot.readString(); - _val101 = iprot.readString(); - struct.success.put(_key100, _val101); + String _key108; + String _val109; + _key108 = iprot.readString(); + _val109 = iprot.readString(); + struct.success.put(_key108, _val109); } } struct.setSuccessIsSet(true); @@ -33633,6 +34945,1194 @@ public class Server { } + public static class writeAdditionalImageRights_args implements org.apache.thrift.TBase<writeAdditionalImageRights_args, writeAdditionalImageRights_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalImageRights_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_args"); + + private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)1); + 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)2); + private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField IS_LINK_ALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("isLinkAllowed", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)6); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); + } + + public String imageName; // required + public String userID; // required + public boolean isRead; // required + public boolean isWrite; // required + public boolean isLinkAllowed; // required + public boolean isAdmin; // 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 { + IMAGE_NAME((short)1, "imageName"), + USER_ID((short)2, "userID"), + IS_READ((short)3, "isRead"), + IS_WRITE((short)4, "isWrite"), + IS_LINK_ALLOWED((short)5, "isLinkAllowed"), + IS_ADMIN((short)6, "isAdmin"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // IMAGE_NAME + return IMAGE_NAME; + case 2: // USER_ID + return USER_ID; + case 3: // IS_READ + return IS_READ; + case 4: // IS_WRITE + return IS_WRITE; + case 5: // IS_LINK_ALLOWED + return IS_LINK_ALLOWED; + case 6: // IS_ADMIN + return IS_ADMIN; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __ISREAD_ISSET_ID = 0; + private static final int __ISWRITE_ISSET_ID = 1; + private static final int __ISLINKALLOWED_ISSET_ID = 2; + private static final int __ISADMIN_ISSET_ID = 3; + 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); + tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_LINK_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("isLinkAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", 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(writeAdditionalImageRights_args.class, metaDataMap); + } + + public writeAdditionalImageRights_args() { + } + + public writeAdditionalImageRights_args( + String imageName, + String userID, + boolean isRead, + boolean isWrite, + boolean isLinkAllowed, + boolean isAdmin) + { + this(); + this.imageName = imageName; + this.userID = userID; + this.isRead = isRead; + setIsReadIsSet(true); + this.isWrite = isWrite; + setIsWriteIsSet(true); + this.isLinkAllowed = isLinkAllowed; + setIsLinkAllowedIsSet(true); + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetImageName()) { + this.imageName = other.imageName; + } + if (other.isSetUserID()) { + this.userID = other.userID; + } + this.isRead = other.isRead; + this.isWrite = other.isWrite; + this.isLinkAllowed = other.isLinkAllowed; + this.isAdmin = other.isAdmin; + } + + public writeAdditionalImageRights_args deepCopy() { + return new writeAdditionalImageRights_args(this); + } + + @Override + public void clear() { + this.imageName = null; + this.userID = null; + setIsReadIsSet(false); + this.isRead = false; + setIsWriteIsSet(false); + this.isWrite = false; + setIsLinkAllowedIsSet(false); + this.isLinkAllowed = false; + setIsAdminIsSet(false); + this.isAdmin = false; + } + + public String getImageName() { + return this.imageName; + } + + public writeAdditionalImageRights_args setImageName(String imageName) { + this.imageName = imageName; + return this; + } + + public void unsetImageName() { + this.imageName = null; + } + + /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ + public boolean isSetImageName() { + return this.imageName != null; + } + + public void setImageNameIsSet(boolean value) { + if (!value) { + this.imageName = null; + } + } + + public String getUserID() { + return this.userID; + } + + public writeAdditionalImageRights_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public boolean isIsRead() { + return this.isRead; + } + + public writeAdditionalImageRights_args setIsRead(boolean isRead) { + this.isRead = isRead; + setIsReadIsSet(true); + return this; + } + + public void unsetIsRead() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); + } + + /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ + public boolean isSetIsRead() { + return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); + } + + public void setIsReadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); + } + + public boolean isIsWrite() { + return this.isWrite; + } + + public writeAdditionalImageRights_args setIsWrite(boolean isWrite) { + this.isWrite = isWrite; + setIsWriteIsSet(true); + return this; + } + + public void unsetIsWrite() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); + } + + /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ + public boolean isSetIsWrite() { + return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); + } + + public void setIsWriteIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); + } + + public boolean isIsLinkAllowed() { + return this.isLinkAllowed; + } + + public writeAdditionalImageRights_args setIsLinkAllowed(boolean isLinkAllowed) { + this.isLinkAllowed = isLinkAllowed; + setIsLinkAllowedIsSet(true); + return this; + } + + public void unsetIsLinkAllowed() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); + } + + /** Returns true if field isLinkAllowed is set (has been assigned a value) and false otherwise */ + public boolean isSetIsLinkAllowed() { + return EncodingUtils.testBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); + } + + public void setIsLinkAllowedIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID, value); + } + + public boolean isIsAdmin() { + return this.isAdmin; + } + + public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + return this; + } + + public void unsetIsAdmin() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + } + + /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ + public boolean isSetIsAdmin() { + return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); + } + + public void setIsAdminIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case IMAGE_NAME: + if (value == null) { + unsetImageName(); + } else { + setImageName((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + case IS_READ: + if (value == null) { + unsetIsRead(); + } else { + setIsRead((Boolean)value); + } + break; + + case IS_WRITE: + if (value == null) { + unsetIsWrite(); + } else { + setIsWrite((Boolean)value); + } + break; + + case IS_LINK_ALLOWED: + if (value == null) { + unsetIsLinkAllowed(); + } else { + setIsLinkAllowed((Boolean)value); + } + break; + + case IS_ADMIN: + if (value == null) { + unsetIsAdmin(); + } else { + setIsAdmin((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case IMAGE_NAME: + return getImageName(); + + case USER_ID: + return getUserID(); + + case IS_READ: + return Boolean.valueOf(isIsRead()); + + case IS_WRITE: + return Boolean.valueOf(isIsWrite()); + + case IS_LINK_ALLOWED: + return Boolean.valueOf(isIsLinkAllowed()); + + case IS_ADMIN: + return Boolean.valueOf(isIsAdmin()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case IMAGE_NAME: + return isSetImageName(); + case USER_ID: + return isSetUserID(); + case IS_READ: + return isSetIsRead(); + case IS_WRITE: + return isSetIsWrite(); + case IS_LINK_ALLOWED: + return isSetIsLinkAllowed(); + case IS_ADMIN: + return isSetIsAdmin(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeAdditionalImageRights_args) + return this.equals((writeAdditionalImageRights_args)that); + return false; + } + + public boolean equals(writeAdditionalImageRights_args that) { + if (that == null) + return false; + + boolean this_present_imageName = true && this.isSetImageName(); + boolean that_present_imageName = true && that.isSetImageName(); + if (this_present_imageName || that_present_imageName) { + if (!(this_present_imageName && that_present_imageName)) + return false; + if (!this.imageName.equals(that.imageName)) + return false; + } + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + boolean this_present_isRead = true; + boolean that_present_isRead = true; + if (this_present_isRead || that_present_isRead) { + if (!(this_present_isRead && that_present_isRead)) + return false; + if (this.isRead != that.isRead) + return false; + } + + boolean this_present_isWrite = true; + boolean that_present_isWrite = true; + if (this_present_isWrite || that_present_isWrite) { + if (!(this_present_isWrite && that_present_isWrite)) + return false; + if (this.isWrite != that.isWrite) + return false; + } + + boolean this_present_isLinkAllowed = true; + boolean that_present_isLinkAllowed = true; + if (this_present_isLinkAllowed || that_present_isLinkAllowed) { + if (!(this_present_isLinkAllowed && that_present_isLinkAllowed)) + return false; + if (this.isLinkAllowed != that.isLinkAllowed) + return false; + } + + boolean this_present_isAdmin = true; + boolean that_present_isAdmin = true; + if (this_present_isAdmin || that_present_isAdmin) { + if (!(this_present_isAdmin && that_present_isAdmin)) + return false; + if (this.isAdmin != that.isAdmin) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeAdditionalImageRights_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsRead()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsWrite()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsLinkAllowed()).compareTo(other.isSetIsLinkAllowed()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsLinkAllowed()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isLinkAllowed, other.isLinkAllowed); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsAdmin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeAdditionalImageRights_args("); + boolean first = true; + + sb.append("imageName:"); + if (this.imageName == null) { + sb.append("null"); + } else { + sb.append(this.imageName); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + if (!first) sb.append(", "); + sb.append("isRead:"); + sb.append(this.isRead); + first = false; + if (!first) sb.append(", "); + sb.append("isWrite:"); + sb.append(this.isWrite); + first = false; + if (!first) sb.append(", "); + sb.append("isLinkAllowed:"); + sb.append(this.isLinkAllowed); + first = false; + if (!first) sb.append(", "); + sb.append("isAdmin:"); + sb.append(this.isAdmin); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + 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); + } + } + + private static class writeAdditionalImageRights_argsStandardSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_argsStandardScheme getScheme() { + return new writeAdditionalImageRights_argsStandardScheme(); + } + } + + private static class writeAdditionalImageRights_argsStandardScheme extends StandardScheme<writeAdditionalImageRights_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // IMAGE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IS_READ + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // IS_WRITE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // IS_LINK_ALLOWED + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isLinkAllowed = iprot.readBool(); + struct.setIsLinkAllowedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // IS_ADMIN + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.imageName != null) { + oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); + oprot.writeString(struct.imageName); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_READ_FIELD_DESC); + oprot.writeBool(struct.isRead); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); + oprot.writeBool(struct.isWrite); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_LINK_ALLOWED_FIELD_DESC); + oprot.writeBool(struct.isLinkAllowed); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); + oprot.writeBool(struct.isAdmin); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeAdditionalImageRights_argsTupleSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_argsTupleScheme getScheme() { + return new writeAdditionalImageRights_argsTupleScheme(); + } + } + + private static class writeAdditionalImageRights_argsTupleScheme extends TupleScheme<writeAdditionalImageRights_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetImageName()) { + optionals.set(0); + } + if (struct.isSetUserID()) { + optionals.set(1); + } + if (struct.isSetIsRead()) { + optionals.set(2); + } + if (struct.isSetIsWrite()) { + optionals.set(3); + } + if (struct.isSetIsLinkAllowed()) { + optionals.set(4); + } + if (struct.isSetIsAdmin()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + if (struct.isSetImageName()) { + oprot.writeString(struct.imageName); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + if (struct.isSetIsRead()) { + oprot.writeBool(struct.isRead); + } + if (struct.isSetIsWrite()) { + oprot.writeBool(struct.isWrite); + } + if (struct.isSetIsLinkAllowed()) { + oprot.writeBool(struct.isLinkAllowed); + } + if (struct.isSetIsAdmin()) { + oprot.writeBool(struct.isAdmin); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); + } + if (incoming.get(1)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + if (incoming.get(2)) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); + } + if (incoming.get(3)) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); + } + if (incoming.get(4)) { + struct.isLinkAllowed = iprot.readBool(); + struct.setIsLinkAllowedIsSet(true); + } + if (incoming.get(5)) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); + } + } + } + + } + + public static class writeAdditionalImageRights_result implements org.apache.thrift.TBase<writeAdditionalImageRights_result, writeAdditionalImageRights_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalImageRights_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeAdditionalImageRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalImageRights_resultTupleSchemeFactory()); + } + + public boolean success; // 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 { + SUCCESS((short)0, "success"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + 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); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", 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(writeAdditionalImageRights_result.class, metaDataMap); + } + + public writeAdditionalImageRights_result() { + } + + public writeAdditionalImageRights_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public writeAdditionalImageRights_result(writeAdditionalImageRights_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public writeAdditionalImageRights_result deepCopy() { + return new writeAdditionalImageRights_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public writeAdditionalImageRights_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeAdditionalImageRights_result) + return this.equals((writeAdditionalImageRights_result)that); + return false; + } + + public boolean equals(writeAdditionalImageRights_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeAdditionalImageRights_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeAdditionalImageRights_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + 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); + } + } + + private static class writeAdditionalImageRights_resultStandardSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_resultStandardScheme getScheme() { + return new writeAdditionalImageRights_resultStandardScheme(); + } + } + + private static class writeAdditionalImageRights_resultStandardScheme extends StandardScheme<writeAdditionalImageRights_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeAdditionalImageRights_resultTupleSchemeFactory implements SchemeFactory { + public writeAdditionalImageRights_resultTupleScheme getScheme() { + return new writeAdditionalImageRights_resultTupleScheme(); + } + } + + private static class writeAdditionalImageRights_resultTupleScheme extends TupleScheme<writeAdditionalImageRights_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + public static class writeLectureRights_args implements org.apache.thrift.TBase<writeLectureRights_args, writeLectureRights_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeLectureRights_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_args"); @@ -34941,10 +37441,1104 @@ public class Server { } + public static class writeAdditionalLectureRights_args implements org.apache.thrift.TBase<writeAdditionalLectureRights_args, writeAdditionalLectureRights_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalLectureRights_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalLectureRights_args"); + + private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)1); + 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)2); + private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)5); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeAdditionalLectureRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalLectureRights_argsTupleSchemeFactory()); + } + + public String lectureName; // required + public String userID; // required + public boolean isRead; // required + public boolean isWrite; // required + public boolean isAdmin; // 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 { + LECTURE_NAME((short)1, "lectureName"), + USER_ID((short)2, "userID"), + IS_READ((short)3, "isRead"), + IS_WRITE((short)4, "isWrite"), + IS_ADMIN((short)5, "isAdmin"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // LECTURE_NAME + return LECTURE_NAME; + case 2: // USER_ID + return USER_ID; + case 3: // IS_READ + return IS_READ; + case 4: // IS_WRITE + return IS_WRITE; + case 5: // IS_ADMIN + return IS_ADMIN; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __ISREAD_ISSET_ID = 0; + private static final int __ISWRITE_ISSET_ID = 1; + private static final int __ISADMIN_ISSET_ID = 2; + 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); + tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", 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(writeAdditionalLectureRights_args.class, metaDataMap); + } + + public writeAdditionalLectureRights_args() { + } + + public writeAdditionalLectureRights_args( + String lectureName, + String userID, + boolean isRead, + boolean isWrite, + boolean isAdmin) + { + this(); + this.lectureName = lectureName; + this.userID = userID; + this.isRead = isRead; + setIsReadIsSet(true); + this.isWrite = isWrite; + setIsWriteIsSet(true); + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public writeAdditionalLectureRights_args(writeAdditionalLectureRights_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetLectureName()) { + this.lectureName = other.lectureName; + } + if (other.isSetUserID()) { + this.userID = other.userID; + } + this.isRead = other.isRead; + this.isWrite = other.isWrite; + this.isAdmin = other.isAdmin; + } + + public writeAdditionalLectureRights_args deepCopy() { + return new writeAdditionalLectureRights_args(this); + } + + @Override + public void clear() { + this.lectureName = null; + this.userID = null; + setIsReadIsSet(false); + this.isRead = false; + setIsWriteIsSet(false); + this.isWrite = false; + setIsAdminIsSet(false); + this.isAdmin = false; + } + + public String getLectureName() { + return this.lectureName; + } + + public writeAdditionalLectureRights_args setLectureName(String lectureName) { + this.lectureName = lectureName; + return this; + } + + public void unsetLectureName() { + this.lectureName = null; + } + + /** Returns true if field lectureName is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureName() { + return this.lectureName != null; + } + + public void setLectureNameIsSet(boolean value) { + if (!value) { + this.lectureName = null; + } + } + + public String getUserID() { + return this.userID; + } + + public writeAdditionalLectureRights_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public boolean isIsRead() { + return this.isRead; + } + + public writeAdditionalLectureRights_args setIsRead(boolean isRead) { + this.isRead = isRead; + setIsReadIsSet(true); + return this; + } + + public void unsetIsRead() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); + } + + /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ + public boolean isSetIsRead() { + return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); + } + + public void setIsReadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); + } + + public boolean isIsWrite() { + return this.isWrite; + } + + public writeAdditionalLectureRights_args setIsWrite(boolean isWrite) { + this.isWrite = isWrite; + setIsWriteIsSet(true); + return this; + } + + public void unsetIsWrite() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); + } + + /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ + public boolean isSetIsWrite() { + return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); + } + + public void setIsWriteIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); + } + + public boolean isIsAdmin() { + return this.isAdmin; + } + + public writeAdditionalLectureRights_args setIsAdmin(boolean isAdmin) { + this.isAdmin = isAdmin; + setIsAdminIsSet(true); + return this; + } + + public void unsetIsAdmin() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + } + + /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ + public boolean isSetIsAdmin() { + return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); + } + + public void setIsAdminIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case LECTURE_NAME: + if (value == null) { + unsetLectureName(); + } else { + setLectureName((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + case IS_READ: + if (value == null) { + unsetIsRead(); + } else { + setIsRead((Boolean)value); + } + break; + + case IS_WRITE: + if (value == null) { + unsetIsWrite(); + } else { + setIsWrite((Boolean)value); + } + break; + + case IS_ADMIN: + if (value == null) { + unsetIsAdmin(); + } else { + setIsAdmin((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case LECTURE_NAME: + return getLectureName(); + + case USER_ID: + return getUserID(); + + case IS_READ: + return Boolean.valueOf(isIsRead()); + + case IS_WRITE: + return Boolean.valueOf(isIsWrite()); + + case IS_ADMIN: + return Boolean.valueOf(isIsAdmin()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case LECTURE_NAME: + return isSetLectureName(); + case USER_ID: + return isSetUserID(); + case IS_READ: + return isSetIsRead(); + case IS_WRITE: + return isSetIsWrite(); + case IS_ADMIN: + return isSetIsAdmin(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeAdditionalLectureRights_args) + return this.equals((writeAdditionalLectureRights_args)that); + return false; + } + + public boolean equals(writeAdditionalLectureRights_args that) { + if (that == null) + return false; + + boolean this_present_lectureName = true && this.isSetLectureName(); + boolean that_present_lectureName = true && that.isSetLectureName(); + if (this_present_lectureName || that_present_lectureName) { + if (!(this_present_lectureName && that_present_lectureName)) + return false; + if (!this.lectureName.equals(that.lectureName)) + return false; + } + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + boolean this_present_isRead = true; + boolean that_present_isRead = true; + if (this_present_isRead || that_present_isRead) { + if (!(this_present_isRead && that_present_isRead)) + return false; + if (this.isRead != that.isRead) + return false; + } + + boolean this_present_isWrite = true; + boolean that_present_isWrite = true; + if (this_present_isWrite || that_present_isWrite) { + if (!(this_present_isWrite && that_present_isWrite)) + return false; + if (this.isWrite != that.isWrite) + return false; + } + + boolean this_present_isAdmin = true; + boolean that_present_isAdmin = true; + if (this_present_isAdmin || that_present_isAdmin) { + if (!(this_present_isAdmin && that_present_isAdmin)) + return false; + if (this.isAdmin != that.isAdmin) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeAdditionalLectureRights_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureName, other.lectureName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsRead()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsWrite()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsAdmin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_args("); + boolean first = true; + + sb.append("lectureName:"); + if (this.lectureName == null) { + sb.append("null"); + } else { + sb.append(this.lectureName); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + if (!first) sb.append(", "); + sb.append("isRead:"); + sb.append(this.isRead); + first = false; + if (!first) sb.append(", "); + sb.append("isWrite:"); + sb.append(this.isWrite); + first = false; + if (!first) sb.append(", "); + sb.append("isAdmin:"); + sb.append(this.isAdmin); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + 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); + } + } + + private static class writeAdditionalLectureRights_argsStandardSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_argsStandardScheme getScheme() { + return new writeAdditionalLectureRights_argsStandardScheme(); + } + } + + private static class writeAdditionalLectureRights_argsStandardScheme extends StandardScheme<writeAdditionalLectureRights_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // LECTURE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureName = iprot.readString(); + struct.setLectureNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IS_READ + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // IS_WRITE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // IS_ADMIN + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.lectureName != null) { + oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC); + oprot.writeString(struct.lectureName); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_READ_FIELD_DESC); + oprot.writeBool(struct.isRead); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); + oprot.writeBool(struct.isWrite); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); + oprot.writeBool(struct.isAdmin); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeAdditionalLectureRights_argsTupleSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_argsTupleScheme getScheme() { + return new writeAdditionalLectureRights_argsTupleScheme(); + } + } + + private static class writeAdditionalLectureRights_argsTupleScheme extends TupleScheme<writeAdditionalLectureRights_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetLectureName()) { + optionals.set(0); + } + if (struct.isSetUserID()) { + optionals.set(1); + } + if (struct.isSetIsRead()) { + optionals.set(2); + } + if (struct.isSetIsWrite()) { + optionals.set(3); + } + if (struct.isSetIsAdmin()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetLectureName()) { + oprot.writeString(struct.lectureName); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + if (struct.isSetIsRead()) { + oprot.writeBool(struct.isRead); + } + if (struct.isSetIsWrite()) { + oprot.writeBool(struct.isWrite); + } + if (struct.isSetIsAdmin()) { + oprot.writeBool(struct.isAdmin); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.lectureName = iprot.readString(); + struct.setLectureNameIsSet(true); + } + if (incoming.get(1)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + if (incoming.get(2)) { + struct.isRead = iprot.readBool(); + struct.setIsReadIsSet(true); + } + if (incoming.get(3)) { + struct.isWrite = iprot.readBool(); + struct.setIsWriteIsSet(true); + } + if (incoming.get(4)) { + struct.isAdmin = iprot.readBool(); + struct.setIsAdminIsSet(true); + } + } + } + + } + + public static class writeAdditionalLectureRights_result implements org.apache.thrift.TBase<writeAdditionalLectureRights_result, writeAdditionalLectureRights_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalLectureRights_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalLectureRights_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeAdditionalLectureRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalLectureRights_resultTupleSchemeFactory()); + } + + public boolean success; // 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 { + SUCCESS((short)0, "success"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + 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); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", 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(writeAdditionalLectureRights_result.class, metaDataMap); + } + + public writeAdditionalLectureRights_result() { + } + + public writeAdditionalLectureRights_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public writeAdditionalLectureRights_result(writeAdditionalLectureRights_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public writeAdditionalLectureRights_result deepCopy() { + return new writeAdditionalLectureRights_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public writeAdditionalLectureRights_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeAdditionalLectureRights_result) + return this.equals((writeAdditionalLectureRights_result)that); + return false; + } + + public boolean equals(writeAdditionalLectureRights_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeAdditionalLectureRights_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + 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); + } + } + + private static class writeAdditionalLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultStandardScheme getScheme() { + return new writeAdditionalLectureRights_resultStandardScheme(); + } + } + + private static class writeAdditionalLectureRights_resultStandardScheme extends StandardScheme<writeAdditionalLectureRights_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeAdditionalLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultTupleScheme getScheme() { + return new writeAdditionalLectureRights_resultTupleScheme(); + } + } + + private static class writeAdditionalLectureRights_resultTupleScheme extends TupleScheme<writeAdditionalLectureRights_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + public static class getAllOtherSatelliteUsers_args implements org.apache.thrift.TBase<getAllOtherSatelliteUsers_args, getAllOtherSatelliteUsers_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOtherSatelliteUsers_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_args"); - 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 USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -34952,7 +38546,7 @@ public class Server { schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); } - public String userID; // required + public List<String> userID; // 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 { @@ -35017,7 +38611,8 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_args.class, metaDataMap); } @@ -35026,7 +38621,7 @@ public class Server { } public getAllOtherSatelliteUsers_args( - String userID) + List<String> userID) { this(); this.userID = userID; @@ -35037,7 +38632,8 @@ public class Server { */ public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { if (other.isSetUserID()) { - this.userID = other.userID; + List<String> __this__userID = new ArrayList<String>(other.userID); + this.userID = __this__userID; } } @@ -35050,11 +38646,26 @@ public class Server { this.userID = null; } - public String getUserID() { + public int getUserIDSize() { + return (this.userID == null) ? 0 : this.userID.size(); + } + + public java.util.Iterator<String> getUserIDIterator() { + return (this.userID == null) ? null : this.userID.iterator(); + } + + public void addToUserID(String elem) { + if (this.userID == null) { + this.userID = new ArrayList<String>(); + } + this.userID.add(elem); + } + + public List<String> getUserID() { return this.userID; } - public getAllOtherSatelliteUsers_args setUserID(String userID) { + public getAllOtherSatelliteUsers_args setUserID(List<String> userID) { this.userID = userID; return this; } @@ -35080,7 +38691,7 @@ public class Server { if (value == null) { unsetUserID(); } else { - setUserID((String)value); + setUserID((List<String>)value); } break; @@ -35228,8 +38839,18 @@ public class Server { } switch (schemeField.id) { case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); + struct.userID = new ArrayList<String>(_list110.size); + for (int _i111 = 0; _i111 < _list110.size; ++_i111) + { + String _elem112; + _elem112 = iprot.readString(); + struct.userID.add(_elem112); + } + iprot.readListEnd(); + } struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -35252,7 +38873,14 @@ public class Server { oprot.writeStructBegin(STRUCT_DESC); if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); + for (String _iter113 : struct.userID) + { + oprot.writeString(_iter113); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -35278,7 +38906,13 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + { + oprot.writeI32(struct.userID.size()); + for (String _iter114 : struct.userID) + { + oprot.writeString(_iter114); + } + } } } @@ -35287,7 +38921,16 @@ public class Server { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userID = iprot.readString(); + { + org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList<String>(_list115.size); + for (int _i116 = 0; _i116 < _list115.size; ++_i116) + { + String _elem117; + _elem117 = iprot.readString(); + struct.userID.add(_elem117); + } + } struct.setUserIDIsSet(true); } } @@ -35604,14 +39247,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list102.size); - for (int _i103 = 0; _i103 < _list102.size; ++_i103) + org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list118.size); + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - Person _elem104; - _elem104 = new Person(); - _elem104.read(iprot); - struct.success.add(_elem104); + Person _elem120; + _elem120 = new Person(); + _elem120.read(iprot); + struct.success.add(_elem120); } iprot.readListEnd(); } @@ -35639,9 +39282,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter105 : struct.success) + for (Person _iter121 : struct.success) { - _iter105.write(oprot); + _iter121.write(oprot); } oprot.writeListEnd(); } @@ -35672,9 +39315,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter106 : struct.success) + for (Person _iter122 : struct.success) { - _iter106.write(oprot); + _iter122.write(oprot); } } } @@ -35686,14 +39329,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list107.size); - for (int _i108 = 0; _i108 < _list107.size; ++_i108) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list123.size); + for (int _i124 = 0; _i124 < _list123.size; ++_i124) { - Person _elem109; - _elem109 = new Person(); - _elem109.read(iprot); - struct.success.add(_elem109); + Person _elem125; + _elem125 = new Person(); + _elem125.read(iprot); + struct.success.add(_elem125); } } struct.setSuccessIsSet(true); @@ -35703,37 +39346,25 @@ public class Server { } - public static class writeAdditionalImageRights_args implements org.apache.thrift.TBase<writeAdditionalImageRights_args, writeAdditionalImageRights_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalImageRights_args> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_args"); + public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase<getPermissionForUserAndImage_args, getPermissionForUserAndImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndImage_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_args"); - private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); - private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField IS_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("isWrite", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField IS_LINK_ALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("isLinkAllowed", org.apache.thrift.protocol.TType.BOOL, (short)5); - private static final org.apache.thrift.protocol.TField IS_ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("isAdmin", org.apache.thrift.protocol.TType.BOOL, (short)6); + 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 IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); } - public String imageName; // required public String userID; // required - public boolean isRead; // required - public boolean isWrite; // required - public boolean isLinkAllowed; // required - public boolean isAdmin; // required + public String imageID; // 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 { - IMAGE_NAME((short)1, "imageName"), - USER_ID((short)2, "userID"), - IS_READ((short)3, "isRead"), - IS_WRITE((short)4, "isWrite"), - IS_LINK_ALLOWED((short)5, "isLinkAllowed"), - IS_ADMIN((short)6, "isAdmin"); + USER_ID((short)1, "userID"), + IMAGE_ID((short)2, "imageID"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -35748,18 +39379,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_NAME - return IMAGE_NAME; - case 2: // USER_ID + case 1: // USER_ID return USER_ID; - case 3: // IS_READ - return IS_READ; - case 4: // IS_WRITE - return IS_WRITE; - case 5: // IS_LINK_ALLOWED - return IS_LINK_ALLOWED; - case 6: // IS_ADMIN - return IS_ADMIN; + case 2: // IMAGE_ID + return IMAGE_ID; default: return null; } @@ -35800,118 +39423,56 @@ public class Server { } // isset id assignments - private static final int __ISREAD_ISSET_ID = 0; - private static final int __ISWRITE_ISSET_ID = 1; - private static final int __ISLINKALLOWED_ISSET_ID = 2; - private static final int __ISADMIN_ISSET_ID = 3; - 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); - tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_WRITE, new org.apache.thrift.meta_data.FieldMetaData("isWrite", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_LINK_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("isLinkAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IS_ADMIN, new org.apache.thrift.meta_data.FieldMetaData("isAdmin", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); } - public writeAdditionalImageRights_args() { + public getPermissionForUserAndImage_args() { } - public writeAdditionalImageRights_args( - String imageName, + public getPermissionForUserAndImage_args( String userID, - boolean isRead, - boolean isWrite, - boolean isLinkAllowed, - boolean isAdmin) + String imageID) { this(); - this.imageName = imageName; this.userID = userID; - this.isRead = isRead; - setIsReadIsSet(true); - this.isWrite = isWrite; - setIsWriteIsSet(true); - this.isLinkAllowed = isLinkAllowed; - setIsLinkAllowedIsSet(true); - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + this.imageID = imageID; } /** * Performs a deep copy on <i>other</i>. */ - public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetImageName()) { - this.imageName = other.imageName; - } + public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { if (other.isSetUserID()) { this.userID = other.userID; } - this.isRead = other.isRead; - this.isWrite = other.isWrite; - this.isLinkAllowed = other.isLinkAllowed; - this.isAdmin = other.isAdmin; + if (other.isSetImageID()) { + this.imageID = other.imageID; + } } - public writeAdditionalImageRights_args deepCopy() { - return new writeAdditionalImageRights_args(this); + public getPermissionForUserAndImage_args deepCopy() { + return new getPermissionForUserAndImage_args(this); } @Override public void clear() { - this.imageName = null; this.userID = null; - setIsReadIsSet(false); - this.isRead = false; - setIsWriteIsSet(false); - this.isWrite = false; - setIsLinkAllowedIsSet(false); - this.isLinkAllowed = false; - setIsAdminIsSet(false); - this.isAdmin = false; - } - - public String getImageName() { - return this.imageName; - } - - public writeAdditionalImageRights_args setImageName(String imageName) { - this.imageName = imageName; - return this; - } - - public void unsetImageName() { - this.imageName = null; - } - - /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ - public boolean isSetImageName() { - return this.imageName != null; - } - - public void setImageNameIsSet(boolean value) { - if (!value) { - this.imageName = null; - } + this.imageID = null; } public String getUserID() { return this.userID; } - public writeAdditionalImageRights_args setUserID(String userID) { + public getPermissionForUserAndImage_args setUserID(String userID) { this.userID = userID; return this; } @@ -35931,108 +39492,32 @@ public class Server { } } - public boolean isIsRead() { - return this.isRead; - } - - public writeAdditionalImageRights_args setIsRead(boolean isRead) { - this.isRead = isRead; - setIsReadIsSet(true); - return this; - } - - public void unsetIsRead() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - /** Returns true if field isRead is set (has been assigned a value) and false otherwise */ - public boolean isSetIsRead() { - return EncodingUtils.testBit(__isset_bitfield, __ISREAD_ISSET_ID); - } - - public void setIsReadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); - } - - public boolean isIsWrite() { - return this.isWrite; - } - - public writeAdditionalImageRights_args setIsWrite(boolean isWrite) { - this.isWrite = isWrite; - setIsWriteIsSet(true); - return this; - } - - public void unsetIsWrite() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); - } - - /** Returns true if field isWrite is set (has been assigned a value) and false otherwise */ - public boolean isSetIsWrite() { - return EncodingUtils.testBit(__isset_bitfield, __ISWRITE_ISSET_ID); - } - - public void setIsWriteIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); - } - - public boolean isIsLinkAllowed() { - return this.isLinkAllowed; - } - - public writeAdditionalImageRights_args setIsLinkAllowed(boolean isLinkAllowed) { - this.isLinkAllowed = isLinkAllowed; - setIsLinkAllowedIsSet(true); - return this; - } - - public void unsetIsLinkAllowed() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); - } - - /** Returns true if field isLinkAllowed is set (has been assigned a value) and false otherwise */ - public boolean isSetIsLinkAllowed() { - return EncodingUtils.testBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); - } - - public void setIsLinkAllowedIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID, value); - } - - public boolean isIsAdmin() { - return this.isAdmin; + public String getImageID() { + return this.imageID; } - public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + public getPermissionForUserAndImage_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetIsAdmin() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field isAdmin is set (has been assigned a value) and false otherwise */ - public boolean isSetIsAdmin() { - return EncodingUtils.testBit(__isset_bitfield, __ISADMIN_ISSET_ID); + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setIsAdminIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + public void setImageIDIsSet(boolean value) { + if (!value) { + this.imageID = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_NAME: - if (value == null) { - unsetImageName(); - } else { - setImageName((String)value); - } - break; - case USER_ID: if (value == null) { unsetUserID(); @@ -36041,35 +39526,11 @@ public class Server { } break; - case IS_READ: - if (value == null) { - unsetIsRead(); - } else { - setIsRead((Boolean)value); - } - break; - - case IS_WRITE: - if (value == null) { - unsetIsWrite(); - } else { - setIsWrite((Boolean)value); - } - break; - - case IS_LINK_ALLOWED: - if (value == null) { - unsetIsLinkAllowed(); - } else { - setIsLinkAllowed((Boolean)value); - } - break; - - case IS_ADMIN: + case IMAGE_ID: if (value == null) { - unsetIsAdmin(); + unsetImageID(); } else { - setIsAdmin((Boolean)value); + setImageID((String)value); } break; @@ -36078,23 +39539,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_NAME: - return getImageName(); - case USER_ID: return getUserID(); - case IS_READ: - return Boolean.valueOf(isIsRead()); - - case IS_WRITE: - return Boolean.valueOf(isIsWrite()); - - case IS_LINK_ALLOWED: - return Boolean.valueOf(isIsLinkAllowed()); - - case IS_ADMIN: - return Boolean.valueOf(isIsAdmin()); + case IMAGE_ID: + return getImageID(); } throw new IllegalStateException(); @@ -36107,18 +39556,10 @@ public class Server { } switch (field) { - case IMAGE_NAME: - return isSetImageName(); case USER_ID: return isSetUserID(); - case IS_READ: - return isSetIsRead(); - case IS_WRITE: - return isSetIsWrite(); - case IS_LINK_ALLOWED: - return isSetIsLinkAllowed(); - case IS_ADMIN: - return isSetIsAdmin(); + case IMAGE_ID: + return isSetImageID(); } throw new IllegalStateException(); } @@ -36127,24 +39568,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalImageRights_args) - return this.equals((writeAdditionalImageRights_args)that); + if (that instanceof getPermissionForUserAndImage_args) + return this.equals((getPermissionForUserAndImage_args)that); return false; } - public boolean equals(writeAdditionalImageRights_args that) { + public boolean equals(getPermissionForUserAndImage_args that) { if (that == null) return false; - boolean this_present_imageName = true && this.isSetImageName(); - boolean that_present_imageName = true && that.isSetImageName(); - if (this_present_imageName || that_present_imageName) { - if (!(this_present_imageName && that_present_imageName)) - return false; - if (!this.imageName.equals(that.imageName)) - return false; - } - boolean this_present_userID = true && this.isSetUserID(); boolean that_present_userID = true && that.isSetUserID(); if (this_present_userID || that_present_userID) { @@ -36154,39 +39586,12 @@ public class Server { return false; } - boolean this_present_isRead = true; - boolean that_present_isRead = true; - if (this_present_isRead || that_present_isRead) { - if (!(this_present_isRead && that_present_isRead)) - return false; - if (this.isRead != that.isRead) - return false; - } - - boolean this_present_isWrite = true; - boolean that_present_isWrite = true; - if (this_present_isWrite || that_present_isWrite) { - if (!(this_present_isWrite && that_present_isWrite)) - return false; - if (this.isWrite != that.isWrite) - return false; - } - - boolean this_present_isLinkAllowed = true; - boolean that_present_isLinkAllowed = true; - if (this_present_isLinkAllowed || that_present_isLinkAllowed) { - if (!(this_present_isLinkAllowed && that_present_isLinkAllowed)) - return false; - if (this.isLinkAllowed != that.isLinkAllowed) - return false; - } - - boolean this_present_isAdmin = true; - boolean that_present_isAdmin = true; - if (this_present_isAdmin || that_present_isAdmin) { - if (!(this_present_isAdmin && that_present_isAdmin)) + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) return false; - if (this.isAdmin != that.isAdmin) + if (!this.imageID.equals(that.imageID)) return false; } @@ -36199,23 +39604,13 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_args other) { + public int compareTo(getPermissionForUserAndImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; @@ -36226,42 +39621,12 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsRead()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsWrite()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsLinkAllowed()).compareTo(other.isSetIsLinkAllowed()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsLinkAllowed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isLinkAllowed, other.isLinkAllowed); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIsAdmin()).compareTo(other.isSetIsAdmin()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsAdmin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); if (lastComparison != 0) { return lastComparison; } @@ -36283,17 +39648,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); boolean first = true; - sb.append("imageName:"); - if (this.imageName == null) { - sb.append("null"); - } else { - sb.append(this.imageName); - } - first = false; - if (!first) sb.append(", "); sb.append("userID:"); if (this.userID == null) { sb.append("null"); @@ -36302,20 +39659,12 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("isRead:"); - sb.append(this.isRead); - first = false; - if (!first) sb.append(", "); - sb.append("isWrite:"); - sb.append(this.isWrite); - first = false; - if (!first) sb.append(", "); - sb.append("isLinkAllowed:"); - sb.append(this.isLinkAllowed); - first = false; - if (!first) sb.append(", "); - sb.append("isAdmin:"); - sb.append(this.isAdmin); + sb.append("imageID:"); + if (this.imageID == null) { + sb.append("null"); + } else { + sb.append(this.imageID); + } first = false; sb.append(")"); return sb.toString(); @@ -36336,23 +39685,21 @@ public class Server { 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); } } - private static class writeAdditionalImageRights_argsStandardSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_argsStandardScheme getScheme() { - return new writeAdditionalImageRights_argsStandardScheme(); + private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsStandardScheme getScheme() { + return new getPermissionForUserAndImage_argsStandardScheme(); } } - private static class writeAdditionalImageRights_argsStandardScheme extends StandardScheme<writeAdditionalImageRights_args> { + private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme<getPermissionForUserAndImage_args> { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36362,15 +39709,7 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USER_ID + case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); @@ -36378,34 +39717,10 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IS_READ - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // IS_WRITE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // IS_LINK_ALLOWED - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isLinkAllowed = iprot.readBool(); - struct.setIsLinkAllowedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // IS_ADMIN - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + case 2: // IMAGE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -36421,134 +39736,82 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageName != null) { - oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); - oprot.writeString(struct.imageName); - oprot.writeFieldEnd(); - } if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(IS_READ_FIELD_DESC); - oprot.writeBool(struct.isRead); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_WRITE_FIELD_DESC); - oprot.writeBool(struct.isWrite); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_LINK_ALLOWED_FIELD_DESC); - oprot.writeBool(struct.isLinkAllowed); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(IS_ADMIN_FIELD_DESC); - oprot.writeBool(struct.isAdmin); - oprot.writeFieldEnd(); + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeAdditionalImageRights_argsTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_argsTupleScheme getScheme() { - return new writeAdditionalImageRights_argsTupleScheme(); + private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsTupleScheme getScheme() { + return new getPermissionForUserAndImage_argsTupleScheme(); } } - private static class writeAdditionalImageRights_argsTupleScheme extends TupleScheme<writeAdditionalImageRights_args> { + private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme<getPermissionForUserAndImage_args> { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageName()) { + if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetUserID()) { + if (struct.isSetImageID()) { optionals.set(1); } - if (struct.isSetIsRead()) { - optionals.set(2); - } - if (struct.isSetIsWrite()) { - optionals.set(3); - } - if (struct.isSetIsLinkAllowed()) { - optionals.set(4); - } - if (struct.isSetIsAdmin()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); - if (struct.isSetImageName()) { - oprot.writeString(struct.imageName); - } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } - if (struct.isSetIsRead()) { - oprot.writeBool(struct.isRead); - } - if (struct.isSetIsWrite()) { - oprot.writeBool(struct.isWrite); - } - if (struct.isSetIsLinkAllowed()) { - oprot.writeBool(struct.isLinkAllowed); - } - if (struct.isSetIsAdmin()) { - oprot.writeBool(struct.isAdmin); + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); - } - if (incoming.get(1)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } - if (incoming.get(2)) { - struct.isRead = iprot.readBool(); - struct.setIsReadIsSet(true); - } - if (incoming.get(3)) { - struct.isWrite = iprot.readBool(); - struct.setIsWriteIsSet(true); - } - if (incoming.get(4)) { - struct.isLinkAllowed = iprot.readBool(); - struct.setIsLinkAllowedIsSet(true); - } - if (incoming.get(5)) { - struct.isAdmin = iprot.readBool(); - struct.setIsAdminIsSet(true); + if (incoming.get(1)) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } } } } - public static class writeAdditionalImageRights_result implements org.apache.thrift.TBase<writeAdditionalImageRights_result, writeAdditionalImageRights_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeAdditionalImageRights_result> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_result"); + public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase<getPermissionForUserAndImage_result, getPermissionForUserAndImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndImage_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); } - public boolean success; // required + public List<Person> success; // 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 { @@ -36609,67 +39872,85 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - 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); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); } - public writeAdditionalImageRights_result() { + public getPermissionForUserAndImage_result() { } - public writeAdditionalImageRights_result( - boolean success) + public getPermissionForUserAndImage_result( + List<Person> success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ - public writeAdditionalImageRights_result(writeAdditionalImageRights_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { + if (other.isSetSuccess()) { + List<Person> __this__success = new ArrayList<Person>(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } + this.success = __this__success; + } } - public writeAdditionalImageRights_result deepCopy() { - return new writeAdditionalImageRights_result(this); + public getPermissionForUserAndImage_result deepCopy() { + return new getPermissionForUserAndImage_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator<Person> getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Person elem) { + if (this.success == null) { + this.success = new ArrayList<Person>(); + } + this.success.add(elem); + } + + public List<Person> getSuccess() { return this.success; } - public writeAdditionalImageRights_result setSuccess(boolean success) { + public getPermissionForUserAndImage_result setSuccess(List<Person> success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -36678,7 +39959,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List<Person>)value); } break; @@ -36688,7 +39969,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -36711,21 +39992,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeAdditionalImageRights_result) - return this.equals((writeAdditionalImageRights_result)that); + if (that instanceof getPermissionForUserAndImage_result) + return this.equals((getPermissionForUserAndImage_result)that); return false; } - public boolean equals(writeAdditionalImageRights_result that) { + public boolean equals(getPermissionForUserAndImage_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -36738,7 +40019,7 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_result other) { + public int compareTo(getPermissionForUserAndImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -36772,11 +40053,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -36797,23 +40082,21 @@ public class Server { 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); } } - private static class writeAdditionalImageRights_resultStandardSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_resultStandardScheme getScheme() { - return new writeAdditionalImageRights_resultStandardScheme(); + private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultStandardScheme getScheme() { + return new getPermissionForUserAndImage_resultStandardScheme(); } } - private static class writeAdditionalImageRights_resultStandardScheme extends StandardScheme<writeAdditionalImageRights_result> { + private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme<getPermissionForUserAndImage_result> { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36824,8 +40107,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) + { + Person _elem128; + _elem128 = new Person(); + _elem128.read(iprot); + struct.success.add(_elem128); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -36842,13 +40136,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter129 : struct.success) + { + _iter129.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -36857,16 +40158,16 @@ public class Server { } - private static class writeAdditionalImageRights_resultTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_resultTupleScheme getScheme() { - return new writeAdditionalImageRights_resultTupleScheme(); + private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultTupleScheme getScheme() { + return new getPermissionForUserAndImage_resultTupleScheme(); } } - private static class writeAdditionalImageRights_resultTupleScheme extends TupleScheme<writeAdditionalImageRights_result> { + private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme<getPermissionForUserAndImage_result> { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -36874,16 +40175,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Person _iter130 : struct.success) + { + _iter130.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) + { + Person _elem133; + _elem133 = new Person(); + _elem133.read(iprot); + struct.success.add(_elem133); + } + } struct.setSuccessIsSet(true); } } @@ -36891,25 +40208,25 @@ public class Server { } - public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase<getPermissionForUserAndImage_args, getPermissionForUserAndImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndImage_args> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_args"); + public static class getPermissionForUserAndLecture_args implements org.apache.thrift.TBase<getPermissionForUserAndLecture_args, getPermissionForUserAndLecture_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndLecture_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_args"); 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 IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_argsTupleSchemeFactory()); } public String userID; // required - public String imageID; // required + public String lectureID; // 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"), - IMAGE_ID((short)2, "imageID"); + LECTURE_ID((short)2, "lectureID"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -36926,8 +40243,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; - case 2: // IMAGE_ID - return IMAGE_ID; + case 2: // LECTURE_ID + return LECTURE_ID; default: return null; } @@ -36973,51 +40290,51 @@ public class Server { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_args.class, metaDataMap); } - public getPermissionForUserAndImage_args() { + public getPermissionForUserAndLecture_args() { } - public getPermissionForUserAndImage_args( + public getPermissionForUserAndLecture_args( String userID, - String imageID) + String lectureID) { this(); this.userID = userID; - this.imageID = imageID; + this.lectureID = lectureID; } /** * Performs a deep copy on <i>other</i>. */ - public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { + public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_args other) { if (other.isSetUserID()) { this.userID = other.userID; } - if (other.isSetImageID()) { - this.imageID = other.imageID; + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; } } - public getPermissionForUserAndImage_args deepCopy() { - return new getPermissionForUserAndImage_args(this); + public getPermissionForUserAndLecture_args deepCopy() { + return new getPermissionForUserAndLecture_args(this); } @Override public void clear() { this.userID = null; - this.imageID = null; + this.lectureID = null; } public String getUserID() { return this.userID; } - public getPermissionForUserAndImage_args setUserID(String userID) { + public getPermissionForUserAndLecture_args setUserID(String userID) { this.userID = userID; return this; } @@ -37037,27 +40354,27 @@ public class Server { } } - public String getImageID() { - return this.imageID; + public String getLectureID() { + return this.lectureID; } - public getPermissionForUserAndImage_args setImageID(String imageID) { - this.imageID = imageID; + public getPermissionForUserAndLecture_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setImageIDIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.lectureID = null; } } @@ -37071,11 +40388,11 @@ public class Server { } break; - case IMAGE_ID: + case LECTURE_ID: if (value == null) { - unsetImageID(); + unsetLectureID(); } else { - setImageID((String)value); + setLectureID((String)value); } break; @@ -37087,8 +40404,8 @@ public class Server { case USER_ID: return getUserID(); - case IMAGE_ID: - return getImageID(); + case LECTURE_ID: + return getLectureID(); } throw new IllegalStateException(); @@ -37103,8 +40420,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); - case IMAGE_ID: - return isSetImageID(); + case LECTURE_ID: + return isSetLectureID(); } throw new IllegalStateException(); } @@ -37113,12 +40430,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_args) - return this.equals((getPermissionForUserAndImage_args)that); + if (that instanceof getPermissionForUserAndLecture_args) + return this.equals((getPermissionForUserAndLecture_args)that); return false; } - public boolean equals(getPermissionForUserAndImage_args that) { + public boolean equals(getPermissionForUserAndLecture_args that) { if (that == null) return false; @@ -37131,12 +40448,12 @@ public class Server { return false; } - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) return false; - if (!this.imageID.equals(that.imageID)) + if (!this.lectureID.equals(that.lectureID)) return false; } @@ -37149,7 +40466,7 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_args other) { + public int compareTo(getPermissionForUserAndLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37166,12 +40483,12 @@ public class Server { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); if (lastComparison != 0) { return lastComparison; } @@ -37193,7 +40510,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_args("); boolean first = true; sb.append("userID:"); @@ -37204,11 +40521,11 @@ public class Server { } first = false; if (!first) sb.append(", "); - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.lectureID); } first = false; sb.append(")"); @@ -37236,15 +40553,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsStandardScheme getScheme() { - return new getPermissionForUserAndImage_argsStandardScheme(); + private static class getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsStandardScheme getScheme() { + return new getPermissionForUserAndLecture_argsStandardScheme(); } } - private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme<getPermissionForUserAndImage_args> { + private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme<getPermissionForUserAndLecture_args> { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37262,10 +40579,10 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_ID + case 2: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37281,7 +40598,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37290,9 +40607,9 @@ public class Server { oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -37301,35 +40618,35 @@ public class Server { } - private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsTupleScheme getScheme() { - return new getPermissionForUserAndImage_argsTupleScheme(); + private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsTupleScheme getScheme() { + return new getPermissionForUserAndLecture_argsTupleScheme(); } } - private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme<getPermissionForUserAndImage_args> { + private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme<getPermissionForUserAndLecture_args> { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetImageID()) { + if (struct.isSetLectureID()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -37337,23 +40654,23 @@ public class Server { struct.setUserIDIsSet(true); } if (incoming.get(1)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } } } } - public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase<getPermissionForUserAndImage_result, getPermissionForUserAndImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndImage_result> { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_result"); + public static class getPermissionForUserAndLecture_result implements org.apache.thrift.TBase<getPermissionForUserAndLecture_result, getPermissionForUserAndLecture_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndLecture_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_resultTupleSchemeFactory()); } public List<Person> success; // required @@ -37424,13 +40741,13 @@ public class Server { 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, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_result.class, metaDataMap); } - public getPermissionForUserAndImage_result() { + public getPermissionForUserAndLecture_result() { } - public getPermissionForUserAndImage_result( + public getPermissionForUserAndLecture_result( List<Person> success) { this(); @@ -37440,7 +40757,7 @@ public class Server { /** * Performs a deep copy on <i>other</i>. */ - public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { + public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { if (other.isSetSuccess()) { List<Person> __this__success = new ArrayList<Person>(other.success.size()); for (Person other_element : other.success) { @@ -37450,8 +40767,8 @@ public class Server { } } - public getPermissionForUserAndImage_result deepCopy() { - return new getPermissionForUserAndImage_result(this); + public getPermissionForUserAndLecture_result deepCopy() { + return new getPermissionForUserAndLecture_result(this); } @Override @@ -37478,7 +40795,7 @@ public class Server { return this.success; } - public getPermissionForUserAndImage_result setSuccess(List<Person> success) { + public getPermissionForUserAndLecture_result setSuccess(List<Person> success) { this.success = success; return this; } @@ -37537,12 +40854,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_result) - return this.equals((getPermissionForUserAndImage_result)that); + if (that instanceof getPermissionForUserAndLecture_result) + return this.equals((getPermissionForUserAndLecture_result)that); return false; } - public boolean equals(getPermissionForUserAndImage_result that) { + public boolean equals(getPermissionForUserAndLecture_result that) { if (that == null) return false; @@ -37564,7 +40881,7 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_result other) { + public int compareTo(getPermissionForUserAndLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37598,7 +40915,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_result("); boolean first = true; sb.append("success:"); @@ -37633,15 +40950,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultStandardScheme getScheme() { - return new getPermissionForUserAndImage_resultStandardScheme(); + private static class getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultStandardScheme getScheme() { + return new getPermissionForUserAndLecture_resultStandardScheme(); } } - private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme<getPermissionForUserAndImage_result> { + private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme<getPermissionForUserAndLecture_result> { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37654,14 +40971,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list110.size); - for (int _i111 = 0; _i111 < _list110.size; ++_i111) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list134.size); + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - Person _elem112; - _elem112 = new Person(); - _elem112.read(iprot); - struct.success.add(_elem112); + Person _elem136; + _elem136 = new Person(); + _elem136.read(iprot); + struct.success.add(_elem136); } iprot.readListEnd(); } @@ -37681,7 +40998,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37689,9 +41006,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter113 : struct.success) + for (Person _iter137 : struct.success) { - _iter113.write(oprot); + _iter137.write(oprot); } oprot.writeListEnd(); } @@ -37703,16 +41020,16 @@ public class Server { } - private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultTupleScheme getScheme() { - return new getPermissionForUserAndImage_resultTupleScheme(); + private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultTupleScheme getScheme() { + return new getPermissionForUserAndLecture_resultTupleScheme(); } } - private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme<getPermissionForUserAndImage_result> { + private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme<getPermissionForUserAndLecture_result> { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -37722,28 +41039,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter114 : struct.success) + for (Person _iter138 : struct.success) { - _iter114.write(oprot); + _iter138.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list115.size); - for (int _i116 = 0; _i116 < _list115.size; ++_i116) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list139.size); + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - Person _elem117; - _elem117 = new Person(); - _elem117.read(iprot); - struct.success.add(_elem117); + Person _elem141; + _elem141 = new Person(); + _elem141.read(iprot); + struct.success.add(_elem141); } } struct.setSuccessIsSet(true); @@ -38453,4 +41770,704 @@ public class Server { } + public static class deleteAllAdditionalLecturePermissions_args implements org.apache.thrift.TBase<deleteAllAdditionalLecturePermissions_args, deleteAllAdditionalLecturePermissions_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteAllAdditionalLecturePermissions_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_args"); + + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); + 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)2); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); + } + + public String lectureID; // required + public String userID; // 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 { + LECTURE_ID((short)1, "lectureID"), + USER_ID((short)2, "userID"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // LECTURE_ID + return LECTURE_ID; + case 2: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + 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); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); + } + + public deleteAllAdditionalLecturePermissions_args() { + } + + public deleteAllAdditionalLecturePermissions_args( + String lectureID, + String userID) + { + this(); + this.lectureID = lectureID; + this.userID = userID; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; + } + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public deleteAllAdditionalLecturePermissions_args deepCopy() { + return new deleteAllAdditionalLecturePermissions_args(this); + } + + @Override + public void clear() { + this.lectureID = null; + this.userID = null; + } + + public String getLectureID() { + return this.lectureID; + } + + public deleteAllAdditionalLecturePermissions_args setLectureID(String lectureID) { + this.lectureID = lectureID; + return this; + } + + public void unsetLectureID() { + this.lectureID = null; + } + + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; + } + + public void setLectureIDIsSet(boolean value) { + if (!value) { + this.lectureID = null; + } + } + + public String getUserID() { + return this.userID; + } + + public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case LECTURE_ID: + if (value == null) { + unsetLectureID(); + } else { + setLectureID((String)value); + } + break; + + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case LECTURE_ID: + return getLectureID(); + + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case LECTURE_ID: + return isSetLectureID(); + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllAdditionalLecturePermissions_args) + return this.equals((deleteAllAdditionalLecturePermissions_args)that); + return false; + } + + public boolean equals(deleteAllAdditionalLecturePermissions_args that) { + if (that == null) + return false; + + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) + return false; + if (!this.lectureID.equals(that.lectureID)) + return false; + } + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteAllAdditionalLecturePermissions_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); + boolean first = true; + + sb.append("lectureID:"); + if (this.lectureID == null) { + sb.append("null"); + } else { + sb.append(this.lectureID); + } + first = false; + if (!first) sb.append(", "); + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + 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); + } + } + + private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); + } + } + + private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme<deleteAllAdditionalLecturePermissions_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); + } + } + + private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme<deleteAllAdditionalLecturePermissions_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetLectureID()) { + optionals.set(0); + } + if (struct.isSetUserID()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); + } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); + } + if (incoming.get(1)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class deleteAllAdditionalLecturePermissions_result implements org.apache.thrift.TBase<deleteAllAdditionalLecturePermissions_result, deleteAllAdditionalLecturePermissions_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteAllAdditionalLecturePermissions_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_result"); + + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); + } + + public deleteAllAdditionalLecturePermissions_result() { + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { + } + + public deleteAllAdditionalLecturePermissions_result deepCopy() { + return new deleteAllAdditionalLecturePermissions_result(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllAdditionalLecturePermissions_result) + return this.equals((deleteAllAdditionalLecturePermissions_result)that); + return false; + } + + public boolean equals(deleteAllAdditionalLecturePermissions_result that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteAllAdditionalLecturePermissions_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + 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); + } + } + + private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); + } + } + + private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme<deleteAllAdditionalLecturePermissions_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); + } + } + + private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme<deleteAllAdditionalLecturePermissions_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + } |
