summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/server/generated
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/server/generated')
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Person.java186
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Server.java4709
2 files changed, 4059 insertions, 836 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..25c6496a 100644
--- a/dozentenmodulserver/src/main/java/server/generated/Server.java
+++ b/dozentenmodulserver/src/main/java/server/generated/Server.java
@@ -94,16 +94,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 {
@@ -166,16 +172,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 {
@@ -939,6 +951,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 +1008,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 +1082,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 +1127,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> {
@@ -2241,6 +2325,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 +2422,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 +2533,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 +2603,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 {
@@ -2482,11 +2680,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;
}
@@ -3083,6 +3284,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 +3326,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 +3387,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 +3427,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> {
@@ -3227,11 +3489,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;
}
@@ -4726,6 +4991,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 +5095,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 +5198,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 +5224,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 +5244,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 +5275,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 +5295,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 +5350,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> {
@@ -33633,6 +34051,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 +36547,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 +37652,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 +37717,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 +37727,7 @@ public class Server {
}
public getAllOtherSatelliteUsers_args(
- String userID)
+ List<String> userID)
{
this();
this.userID = userID;
@@ -35037,7 +37738,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 +37752,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 +37797,7 @@ public class Server {
if (value == null) {
unsetUserID();
} else {
- setUserID((String)value);
+ setUserID((List<String>)value);
}
break;
@@ -35228,8 +37945,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 _list102 = iprot.readListBegin();
+ struct.userID = new ArrayList<String>(_list102.size);
+ for (int _i103 = 0; _i103 < _list102.size; ++_i103)
+ {
+ String _elem104;
+ _elem104 = iprot.readString();
+ struct.userID.add(_elem104);
+ }
+ iprot.readListEnd();
+ }
struct.setUserIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -35252,7 +37979,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 _iter105 : struct.userID)
+ {
+ oprot.writeString(_iter105);
+ }
+ oprot.writeListEnd();
+ }
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -35278,7 +38012,13 @@ public class Server {
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetUserID()) {
- oprot.writeString(struct.userID);
+ {
+ oprot.writeI32(struct.userID.size());
+ for (String _iter106 : struct.userID)
+ {
+ oprot.writeString(_iter106);
+ }
+ }
}
}
@@ -35287,7 +38027,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 _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.userID = new ArrayList<String>(_list107.size);
+ for (int _i108 = 0; _i108 < _list107.size; ++_i108)
+ {
+ String _elem109;
+ _elem109 = iprot.readString();
+ struct.userID.add(_elem109);
+ }
+ }
struct.setUserIDIsSet(true);
}
}
@@ -35604,14 +38353,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 _list110 = iprot.readListBegin();
+ struct.success = new ArrayList<Person>(_list110.size);
+ for (int _i111 = 0; _i111 < _list110.size; ++_i111)
{
- Person _elem104;
- _elem104 = new Person();
- _elem104.read(iprot);
- struct.success.add(_elem104);
+ Person _elem112;
+ _elem112 = new Person();
+ _elem112.read(iprot);
+ struct.success.add(_elem112);
}
iprot.readListEnd();
}
@@ -35639,9 +38388,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 _iter113 : struct.success)
{
- _iter105.write(oprot);
+ _iter113.write(oprot);
}
oprot.writeListEnd();
}
@@ -35672,9 +38421,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Person _iter106 : struct.success)
+ for (Person _iter114 : struct.success)
{
- _iter106.write(oprot);
+ _iter114.write(oprot);
}
}
}
@@ -35686,14 +38435,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 _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)
{
- Person _elem109;
- _elem109 = new Person();
- _elem109.read(iprot);
- struct.success.add(_elem109);
+ Person _elem117;
+ _elem117 = new Person();
+ _elem117.read(iprot);
+ struct.success.add(_elem117);
}
}
struct.setSuccessIsSet(true);
@@ -35703,37 +38452,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 +38485,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 +38529,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 +38598,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 +38632,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 +38645,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 +38662,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 +38674,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 +38692,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 +38710,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 +38727,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 +38754,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 +38765,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 +38791,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 +38815,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 +38823,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 +38842,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 +38978,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 +39065,7 @@ public class Server {
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Boolean)value);
+ setSuccess((List<Person>)value);
}
break;
@@ -36688,7 +39075,7 @@ public class Server {
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
- return Boolean.valueOf(isSuccess());
+ return getSuccess();
}
throw new IllegalStateException();
@@ -36711,21 +39098,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 +39125,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 +39159,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 +39188,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 +39213,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 _list118 = iprot.readListBegin();
+ struct.success = new ArrayList<Person>(_list118.size);
+ for (int _i119 = 0; _i119 < _list118.size; ++_i119)
+ {
+ Person _elem120;
+ _elem120 = new Person();
+ _elem120.read(iprot);
+ struct.success.add(_elem120);
+ }
+ iprot.readListEnd();
+ }
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -36842,13 +39242,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 _iter121 : struct.success)
+ {
+ _iter121.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -36857,16 +39264,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 +39281,32 @@ public class Server {
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
- oprot.writeBool(struct.success);
+ {
+ oprot.writeI32(struct.success.size());
+ for (Person _iter122 : struct.success)
+ {
+ _iter122.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 _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 _elem125;
+ _elem125 = new Person();
+ _elem125.read(iprot);
+ struct.success.add(_elem125);
+ }
+ }
struct.setSuccessIsSet(true);
}
}
@@ -36891,25 +39314,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 +39349,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 +39396,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 +39460,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 +39494,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 +39510,8 @@ public class Server {
case USER_ID:
return getUserID();
- case IMAGE_ID:
- return getImageID();
+ case LECTURE_ID:
+ return getLectureID();
}
throw new IllegalStateException();
@@ -37103,8 +39526,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 +39536,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 +39554,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 +39572,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 +39589,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 +39616,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 +39627,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 +39659,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 +39685,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 +39704,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 +39713,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 +39724,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 +39760,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 +39847,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 +39863,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 +39873,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 +39901,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 +39960,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 +39987,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 +40021,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 +40056,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 +40077,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 _list126 = iprot.readListBegin();
+ struct.success = new ArrayList<Person>(_list126.size);
+ for (int _i127 = 0; _i127 < _list126.size; ++_i127)
{
- Person _elem112;
- _elem112 = new Person();
- _elem112.read(iprot);
- struct.success.add(_elem112);
+ Person _elem128;
+ _elem128 = new Person();
+ _elem128.read(iprot);
+ struct.success.add(_elem128);
}
iprot.readListEnd();
}
@@ -37681,7 +40104,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 +40112,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 _iter129 : struct.success)
{
- _iter113.write(oprot);
+ _iter129.write(oprot);
}
oprot.writeListEnd();
}
@@ -37703,16 +40126,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 +40145,28 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Person _iter114 : struct.success)
+ for (Person _iter130 : struct.success)
{
- _iter114.write(oprot);
+ _iter130.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 _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 _elem117;
- _elem117 = new Person();
- _elem117.read(iprot);
- struct.success.add(_elem117);
+ Person _elem133;
+ _elem133 = new Person();
+ _elem133.read(iprot);
+ struct.success.add(_elem133);
}
}
struct.setSuccessIsSet(true);
@@ -38453,4 +40876,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;
+ }
+ }
+
+ }
+
}