From 0ed4549c028e2523534a09fd6e41c49c9d178ec1 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 27 Oct 2014 18:13:20 +0100 Subject: Sämtliche Logik und Grafiken zur Vergabe und Verwaltung von Berechtigungen eingeführt. Kleinere Bugs sind bekannt, werden aktuell behoben --- .../src/main/java/server/generated/Server.java | 6571 +++++++++++++++----- 1 file changed, 4847 insertions(+), 1724 deletions(-) (limited to 'dozentenmodulserver/src/main/java/server/generated/Server.java') 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 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 getAllOtherSatelliteUsers(List userID) throws org.apache.thrift.TException; public List getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException; + public List 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 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 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 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 getAllOtherSatelliteUsers(List 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 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 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 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 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 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 { @@ -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 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 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 userID; + public getAllOtherSatelliteUsers_call(List 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 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 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 extends org.apache.thrift.TBaseProcessor 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 extends org.apache.thrift.ProcessFunction { + 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 extends org.apache.thrift.ProcessFunction { public writeLectureRights() { super("writeLectureRights"); @@ -3104,43 +3326,43 @@ public class Server { } } - public static class getAllOtherSatelliteUsers extends org.apache.thrift.ProcessFunction { - public getAllOtherSatelliteUsers() { - super("getAllOtherSatelliteUsers"); + public static class writeAdditionalLectureRights extends org.apache.thrift.ProcessFunction { + 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 extends org.apache.thrift.ProcessFunction { - public writeAdditionalImageRights() { - super("writeAdditionalImageRights"); + public static class getAllOtherSatelliteUsers extends org.apache.thrift.ProcessFunction { + 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 extends org.apache.thrift.ProcessFunction { + 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 extends org.apache.thrift.ProcessFunction { public deleteAllAdditionalImagePermissions() { super("deleteAllAdditionalImagePermissions"); @@ -3185,6 +3427,26 @@ public class Server { } } + public static class deleteAllAdditionalLecturePermissions extends org.apache.thrift.ProcessFunction { + 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 extends org.apache.thrift.TBaseAsyncProcessor { @@ -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 extends org.apache.thrift.AsyncProcessFunction { + public writeAdditionalImageRights() { + super("writeAdditionalImageRights"); + } + + public writeAdditionalImageRights_args getEmptyArgsInstance() { + return new writeAdditionalImageRights_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + 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 resultHandler) throws TException { + iface.writeAdditionalImageRights(args.imageName, args.userID, args.isRead, args.isWrite, args.isLinkAllowed, args.isAdmin,resultHandler); + } + } + public static class writeLectureRights extends org.apache.thrift.AsyncProcessFunction { public writeLectureRights() { super("writeLectureRights"); @@ -4778,6 +5095,58 @@ public class Server { } } + public static class writeAdditionalLectureRights extends org.apache.thrift.AsyncProcessFunction { + public writeAdditionalLectureRights() { + super("writeAdditionalLectureRights"); + } + + public writeAdditionalLectureRights_args getEmptyArgsInstance() { + return new writeAdditionalLectureRights_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + 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 resultHandler) throws TException { + iface.writeAdditionalLectureRights(args.lectureName, args.userID, args.isRead, args.isWrite, args.isAdmin,resultHandler); + } + } + public static class getAllOtherSatelliteUsers extends org.apache.thrift.AsyncProcessFunction> { public getAllOtherSatelliteUsers() { super("getAllOtherSatelliteUsers"); @@ -4829,22 +5198,21 @@ public class Server { } } - public static class writeAdditionalImageRights extends org.apache.thrift.AsyncProcessFunction { - public writeAdditionalImageRights() { - super("writeAdditionalImageRights"); + public static class getPermissionForUserAndImage extends org.apache.thrift.AsyncProcessFunction> { + public getPermissionForUserAndImage() { + super("getPermissionForUserAndImage"); } - public writeAdditionalImageRights_args getEmptyArgsInstance() { - return new writeAdditionalImageRights_args(); + public getPermissionForUserAndImage_args getEmptyArgsInstance() { + return new getPermissionForUserAndImage_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - writeAdditionalImageRights_result result = new writeAdditionalImageRights_result(); + return new AsyncMethodCallback>() { + public void onComplete(List 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 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> resultHandler) throws TException { + iface.getPermissionForUserAndImage(args.userID, args.imageID,resultHandler); } } - public static class getPermissionForUserAndImage extends org.apache.thrift.AsyncProcessFunction> { - public getPermissionForUserAndImage() { - super("getPermissionForUserAndImage"); + public static class getPermissionForUserAndLecture extends org.apache.thrift.AsyncProcessFunction> { + public getPermissionForUserAndLecture() { + super("getPermissionForUserAndLecture"); } - public getPermissionForUserAndImage_args getEmptyArgsInstance() { - return new getPermissionForUserAndImage_args(); + public getPermissionForUserAndLecture_args getEmptyArgsInstance() { + return new getPermissionForUserAndLecture_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List 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> resultHandler) throws TException { - iface.getPermissionForUserAndImage(args.userID, args.imageID,resultHandler); + public void start(I iface, getPermissionForUserAndLecture_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getPermissionForUserAndLecture(args.userID, args.lectureID,resultHandler); } } @@ -4982,6 +5350,56 @@ public class Server { } } + public static class deleteAllAdditionalLecturePermissions extends org.apache.thrift.AsyncProcessFunction { + public deleteAllAdditionalLecturePermissions() { + super("deleteAllAdditionalLecturePermissions"); + } + + public deleteAllAdditionalLecturePermissions_args getEmptyArgsInstance() { + return new deleteAllAdditionalLecturePermissions_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + 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 resultHandler) throws TException { + iface.deleteAllAdditionalLecturePermissions(args.lectureID, args.userID,resultHandler); + } + } + } public static class getFtpUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33633,40 +34051,37 @@ public class Server { } - public static class writeLectureRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_args"); + public static class writeAdditionalImageRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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 LECTURENAME_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 USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)4); - 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)5); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)7); + 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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLectureRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLectureRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); } - public String lecturename; // required - public String username; // required - public String lastName; // required - public String firstName; // required - public String mail; // required - public String university; // required - public String role; // required + 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 { - LECTURENAME((short)1, "lecturename"), - USERNAME((short)2, "username"), - LAST_NAME((short)3, "lastName"), - FIRST_NAME((short)4, "firstName"), - MAIL((short)5, "mail"), - UNIVERSITY((short)6, "university"), - ROLE((short)7, "role"); + 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 byName = new HashMap(); @@ -33681,20 +34096,18 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LECTURENAME - return LECTURENAME; - case 2: // USERNAME - return USERNAME; - case 3: // LAST_NAME - return LAST_NAME; - case 4: // FIRST_NAME - return FIRST_NAME; - case 5: // MAIL - return MAIL; - case 6: // UNIVERSITY - return UNIVERSITY; - case 7: // ROLE - return ROLE; + 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; } @@ -33735,314 +34148,276 @@ 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.LECTURENAME, 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.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", 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.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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(writeLectureRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeAdditionalImageRights_args.class, metaDataMap); } - public writeLectureRights_args() { + public writeAdditionalImageRights_args() { } - public writeLectureRights_args( - String lecturename, - String username, - String lastName, - String firstName, - String mail, - String university, - String role) + public writeAdditionalImageRights_args( + String imageName, + String userID, + boolean isRead, + boolean isWrite, + boolean isLinkAllowed, + boolean isAdmin) { this(); - this.lecturename = lecturename; - this.username = username; - this.lastName = lastName; - this.firstName = firstName; - this.mail = mail; - this.university = university; - this.role = role; + 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 other. */ - public writeLectureRights_args(writeLectureRights_args other) { - if (other.isSetLecturename()) { - this.lecturename = other.lecturename; - } - if (other.isSetUsername()) { - this.username = other.username; - } - if (other.isSetLastName()) { - this.lastName = other.lastName; - } - if (other.isSetFirstName()) { - this.firstName = other.firstName; - } - if (other.isSetMail()) { - this.mail = other.mail; - } - if (other.isSetUniversity()) { - this.university = other.university; + public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetImageName()) { + this.imageName = other.imageName; } - if (other.isSetRole()) { - this.role = other.role; + if (other.isSetUserID()) { + this.userID = other.userID; } + this.isRead = other.isRead; + this.isWrite = other.isWrite; + this.isLinkAllowed = other.isLinkAllowed; + this.isAdmin = other.isAdmin; } - public writeLectureRights_args deepCopy() { - return new writeLectureRights_args(this); + public writeAdditionalImageRights_args deepCopy() { + return new writeAdditionalImageRights_args(this); } @Override public void clear() { - this.lecturename = null; - this.username = null; - this.lastName = null; - this.firstName = null; - this.mail = null; - this.university = null; - this.role = null; - } - - public String getLecturename() { - return this.lecturename; - } - - public writeLectureRights_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; - } + 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 getUsername() { - return this.username; + public String getImageName() { + return this.imageName; } - public writeLectureRights_args setUsername(String username) { - this.username = username; + public writeAdditionalImageRights_args setImageName(String imageName) { + this.imageName = imageName; return this; } - public void unsetUsername() { - this.username = null; + public void unsetImageName() { + this.imageName = null; } - /** Returns true if field username is set (has been assigned a value) and false otherwise */ - public boolean isSetUsername() { - return this.username != 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 setUsernameIsSet(boolean value) { + public void setImageNameIsSet(boolean value) { if (!value) { - this.username = null; + this.imageName = null; } } - public String getLastName() { - return this.lastName; + public String getUserID() { + return this.userID; } - public writeLectureRights_args setLastName(String lastName) { - this.lastName = lastName; + public writeAdditionalImageRights_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetLastName() { - this.lastName = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ - public boolean isSetLastName() { - return this.lastName != 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 setLastNameIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.lastName = null; + this.userID = null; } } - public String getFirstName() { - return this.firstName; + public boolean isIsRead() { + return this.isRead; } - public writeLectureRights_args setFirstName(String firstName) { - this.firstName = firstName; + public writeAdditionalImageRights_args setIsRead(boolean isRead) { + this.isRead = isRead; + setIsReadIsSet(true); return this; } - public void unsetFirstName() { - this.firstName = null; + public void unsetIsRead() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISREAD_ISSET_ID); } - /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstName() { - return this.firstName != null; + /** 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 setFirstNameIsSet(boolean value) { - if (!value) { - this.firstName = null; - } + public void setIsReadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISREAD_ISSET_ID, value); } - public String getMail() { - return this.mail; + public boolean isIsWrite() { + return this.isWrite; } - public writeLectureRights_args setMail(String mail) { - this.mail = mail; + public writeAdditionalImageRights_args setIsWrite(boolean isWrite) { + this.isWrite = isWrite; + setIsWriteIsSet(true); return this; } - public void unsetMail() { - this.mail = null; + public void unsetIsWrite() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWRITE_ISSET_ID); } - /** Returns true if field mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.mail != null; + /** 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 setMailIsSet(boolean value) { - if (!value) { - this.mail = null; - } + public void setIsWriteIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWRITE_ISSET_ID, value); } - public String getUniversity() { - return this.university; + public boolean isIsLinkAllowed() { + return this.isLinkAllowed; } - public writeLectureRights_args setUniversity(String university) { - this.university = university; + public writeAdditionalImageRights_args setIsLinkAllowed(boolean isLinkAllowed) { + this.isLinkAllowed = isLinkAllowed; + setIsLinkAllowedIsSet(true); return this; } - public void unsetUniversity() { - this.university = null; + public void unsetIsLinkAllowed() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID); } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + /** 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 setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; - } + public void setIsLinkAllowedIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISLINKALLOWED_ISSET_ID, value); } - public String getRole() { - return this.role; + public boolean isIsAdmin() { + return this.isAdmin; } - public writeLectureRights_args setRole(String role) { - this.role = role; + public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { + this.isAdmin = isAdmin; + setIsAdminIsSet(true); return this; } - public void unsetRole() { - this.role = null; + public void unsetIsAdmin() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); } - /** Returns true if field role is set (has been assigned a value) and false otherwise */ - public boolean isSetRole() { - return this.role != 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); } - public void setRoleIsSet(boolean value) { - if (!value) { - this.role = null; - } + 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 LECTURENAME: - if (value == null) { - unsetLecturename(); - } else { - setLecturename((String)value); - } - break; - - case USERNAME: + case IMAGE_NAME: if (value == null) { - unsetUsername(); + unsetImageName(); } else { - setUsername((String)value); + setImageName((String)value); } break; - case LAST_NAME: + case USER_ID: if (value == null) { - unsetLastName(); + unsetUserID(); } else { - setLastName((String)value); + setUserID((String)value); } break; - case FIRST_NAME: + case IS_READ: if (value == null) { - unsetFirstName(); + unsetIsRead(); } else { - setFirstName((String)value); + setIsRead((Boolean)value); } break; - case MAIL: + case IS_WRITE: if (value == null) { - unsetMail(); + unsetIsWrite(); } else { - setMail((String)value); + setIsWrite((Boolean)value); } break; - case UNIVERSITY: + case IS_LINK_ALLOWED: if (value == null) { - unsetUniversity(); + unsetIsLinkAllowed(); } else { - setUniversity((String)value); + setIsLinkAllowed((Boolean)value); } break; - case ROLE: + case IS_ADMIN: if (value == null) { - unsetRole(); + unsetIsAdmin(); } else { - setRole((String)value); + setIsAdmin((Boolean)value); } break; @@ -34051,26 +34426,23 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTURENAME: - return getLecturename(); - - case USERNAME: - return getUsername(); + case IMAGE_NAME: + return getImageName(); - case LAST_NAME: - return getLastName(); + case USER_ID: + return getUserID(); - case FIRST_NAME: - return getFirstName(); + case IS_READ: + return Boolean.valueOf(isIsRead()); - case MAIL: - return getMail(); + case IS_WRITE: + return Boolean.valueOf(isIsWrite()); - case UNIVERSITY: - return getUniversity(); + case IS_LINK_ALLOWED: + return Boolean.valueOf(isIsLinkAllowed()); - case ROLE: - return getRole(); + case IS_ADMIN: + return Boolean.valueOf(isIsAdmin()); } throw new IllegalStateException(); @@ -34083,20 +34455,18 @@ public class Server { } switch (field) { - case LECTURENAME: - return isSetLecturename(); - case USERNAME: - return isSetUsername(); - case LAST_NAME: - return isSetLastName(); - case FIRST_NAME: - return isSetFirstName(); - case MAIL: - return isSetMail(); - case UNIVERSITY: - return isSetUniversity(); - case ROLE: - return isSetRole(); + 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(); } @@ -34105,75 +34475,66 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLectureRights_args) - return this.equals((writeLectureRights_args)that); + if (that instanceof writeAdditionalImageRights_args) + return this.equals((writeAdditionalImageRights_args)that); return false; } - public boolean equals(writeLectureRights_args that) { + public boolean equals(writeAdditionalImageRights_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_username = true && this.isSetUsername(); - boolean that_present_username = true && that.isSetUsername(); - if (this_present_username || that_present_username) { - if (!(this_present_username && that_present_username)) + 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.username.equals(that.username)) + if (!this.imageName.equals(that.imageName)) return false; } - boolean this_present_lastName = true && this.isSetLastName(); - boolean that_present_lastName = true && that.isSetLastName(); - if (this_present_lastName || that_present_lastName) { - if (!(this_present_lastName && that_present_lastName)) + 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.lastName.equals(that.lastName)) + if (!this.userID.equals(that.userID)) return false; } - boolean this_present_firstName = true && this.isSetFirstName(); - boolean that_present_firstName = true && that.isSetFirstName(); - if (this_present_firstName || that_present_firstName) { - if (!(this_present_firstName && that_present_firstName)) + 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.firstName.equals(that.firstName)) + if (this.isRead != that.isRead) 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)) + 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.mail.equals(that.mail)) + if (this.isWrite != that.isWrite) return false; } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) + 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.university.equals(that.university)) + if (this.isLinkAllowed != that.isLinkAllowed) return false; } - boolean this_present_role = true && this.isSetRole(); - boolean that_present_role = true && that.isSetRole(); - if (this_present_role || that_present_role) { - if (!(this_present_role && that_present_role)) + 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.role.equals(that.role)) + if (this.isAdmin != that.isAdmin) return false; } @@ -34186,79 +34547,3329 @@ public class Server { } @Override - public int compareTo(writeLectureRights_args other) { + public int compareTo(writeAdditionalImageRights_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename()); + lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } - if (isSetLecturename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename); + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(other.isSetIsRead()); if (lastComparison != 0) { return lastComparison; } - if (isSetLastName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (isSetIsRead()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, other.isRead); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + lastComparison = Boolean.valueOf(isSetIsWrite()).compareTo(other.isSetIsWrite()); if (lastComparison != 0) { return lastComparison; } - if (isSetFirstName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (isSetIsWrite()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWrite, other.isWrite); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + 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 (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); - 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 { + + 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 { + + @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, java.io.Serializable, Cloneable, Comparable { + 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, SchemeFactory> schemes = new HashMap, 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 byName = new HashMap(); + + 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 other. + */ + 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 { + + 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 { + + @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, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_args"); + + private static final org.apache.thrift.protocol.TField LECTURENAME_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 USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LAST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FIRST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstName", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)5); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRING, (short)7); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeLectureRights_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_argsTupleSchemeFactory()); + } + + public String lecturename; // required + public String username; // required + public String lastName; // required + public String firstName; // required + public String mail; // required + public String university; // required + public String role; // 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 { + LECTURENAME((short)1, "lecturename"), + USERNAME((short)2, "username"), + LAST_NAME((short)3, "lastName"), + FIRST_NAME((short)4, "firstName"), + MAIL((short)5, "mail"), + UNIVERSITY((short)6, "university"), + ROLE((short)7, "role"); + + private static final Map byName = new HashMap(); + + 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: // LECTURENAME + return LECTURENAME; + case 2: // USERNAME + return USERNAME; + case 3: // LAST_NAME + return LAST_NAME; + case 4: // FIRST_NAME + return FIRST_NAME; + case 5: // MAIL + return MAIL; + case 6: // UNIVERSITY + return UNIVERSITY; + case 7: // ROLE + return ROLE; + 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.LECTURENAME, 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.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LAST_NAME, new org.apache.thrift.meta_data.FieldMetaData("lastName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", 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.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", 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(writeLectureRights_args.class, metaDataMap); + } + + public writeLectureRights_args() { + } + + public writeLectureRights_args( + String lecturename, + String username, + String lastName, + String firstName, + String mail, + String university, + String role) + { + this(); + this.lecturename = lecturename; + this.username = username; + this.lastName = lastName; + this.firstName = firstName; + this.mail = mail; + this.university = university; + this.role = role; + } + + /** + * Performs a deep copy on other. + */ + public writeLectureRights_args(writeLectureRights_args other) { + if (other.isSetLecturename()) { + this.lecturename = other.lecturename; + } + if (other.isSetUsername()) { + this.username = other.username; + } + if (other.isSetLastName()) { + this.lastName = other.lastName; + } + if (other.isSetFirstName()) { + this.firstName = other.firstName; + } + if (other.isSetMail()) { + this.mail = other.mail; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + if (other.isSetRole()) { + this.role = other.role; + } + } + + public writeLectureRights_args deepCopy() { + return new writeLectureRights_args(this); + } + + @Override + public void clear() { + this.lecturename = null; + this.username = null; + this.lastName = null; + this.firstName = null; + this.mail = null; + this.university = null; + this.role = null; + } + + public String getLecturename() { + return this.lecturename; + } + + public writeLectureRights_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 getUsername() { + return this.username; + } + + public writeLectureRights_args setUsername(String username) { + this.username = username; + return this; + } + + public void unsetUsername() { + this.username = null; + } + + /** Returns true if field username is set (has been assigned a value) and false otherwise */ + public boolean isSetUsername() { + return this.username != null; + } + + public void setUsernameIsSet(boolean value) { + if (!value) { + this.username = null; + } + } + + public String getLastName() { + return this.lastName; + } + + public writeLectureRights_args setLastName(String lastName) { + this.lastName = lastName; + return this; + } + + public void unsetLastName() { + this.lastName = null; + } + + /** Returns true if field lastName is set (has been assigned a value) and false otherwise */ + public boolean isSetLastName() { + return this.lastName != null; + } + + public void setLastNameIsSet(boolean value) { + if (!value) { + this.lastName = null; + } + } + + public String getFirstName() { + return this.firstName; + } + + public writeLectureRights_args setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public void unsetFirstName() { + this.firstName = null; + } + + /** Returns true if field firstName is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstName() { + return this.firstName != null; + } + + public void setFirstNameIsSet(boolean value) { + if (!value) { + this.firstName = null; + } + } + + public String getMail() { + return this.mail; + } + + public writeLectureRights_args 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 String getUniversity() { + return this.university; + } + + public writeLectureRights_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } + } + + public String getRole() { + return this.role; + } + + public writeLectureRights_args setRole(String role) { + this.role = role; + return this; + } + + public void unsetRole() { + this.role = null; + } + + /** Returns true if field role is set (has been assigned a value) and false otherwise */ + public boolean isSetRole() { + return this.role != null; + } + + public void setRoleIsSet(boolean value) { + if (!value) { + this.role = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case LECTURENAME: + if (value == null) { + unsetLecturename(); + } else { + setLecturename((String)value); + } + break; + + case USERNAME: + if (value == null) { + unsetUsername(); + } else { + setUsername((String)value); + } + break; + + case LAST_NAME: + if (value == null) { + unsetLastName(); + } else { + setLastName((String)value); + } + break; + + case FIRST_NAME: + if (value == null) { + unsetFirstName(); + } else { + setFirstName((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; + + case ROLE: + if (value == null) { + unsetRole(); + } else { + setRole((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case LECTURENAME: + return getLecturename(); + + case USERNAME: + return getUsername(); + + case LAST_NAME: + return getLastName(); + + case FIRST_NAME: + return getFirstName(); + + case MAIL: + return getMail(); + + case UNIVERSITY: + return getUniversity(); + + case ROLE: + return getRole(); + + } + 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 LECTURENAME: + return isSetLecturename(); + case USERNAME: + return isSetUsername(); + case LAST_NAME: + return isSetLastName(); + case FIRST_NAME: + return isSetFirstName(); + case MAIL: + return isSetMail(); + case UNIVERSITY: + return isSetUniversity(); + case ROLE: + return isSetRole(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeLectureRights_args) + return this.equals((writeLectureRights_args)that); + return false; + } + + public boolean equals(writeLectureRights_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_username = true && this.isSetUsername(); + boolean that_present_username = true && that.isSetUsername(); + if (this_present_username || that_present_username) { + if (!(this_present_username && that_present_username)) + return false; + if (!this.username.equals(that.username)) + return false; + } + + boolean this_present_lastName = true && this.isSetLastName(); + boolean that_present_lastName = true && that.isSetLastName(); + if (this_present_lastName || that_present_lastName) { + if (!(this_present_lastName && that_present_lastName)) + return false; + if (!this.lastName.equals(that.lastName)) + return false; + } + + boolean this_present_firstName = true && this.isSetFirstName(); + boolean that_present_firstName = true && that.isSetFirstName(); + if (this_present_firstName || that_present_firstName) { + if (!(this_present_firstName && that_present_firstName)) + return false; + if (!this.firstName.equals(that.firstName)) + 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_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) + return false; + } + + boolean this_present_role = true && this.isSetRole(); + boolean that_present_role = true && that.isSetRole(); + if (this_present_role || that_present_role) { + if (!(this_present_role && that_present_role)) + return false; + if (!this.role.equals(that.role)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeLectureRights_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(isSetUsername()).compareTo(other.isSetUsername()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLastName()).compareTo(other.isSetLastName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLastName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastName, other.lastName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstName()).compareTo(other.isSetFirstName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstName, other.firstName); + if (lastComparison != 0) { + 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(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRole()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + 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("writeLectureRights_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("username:"); + if (this.username == null) { + sb.append("null"); + } else { + sb.append(this.username); + } + first = false; + if (!first) sb.append(", "); + sb.append("lastName:"); + if (this.lastName == null) { + sb.append("null"); + } else { + sb.append(this.lastName); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstName:"); + if (this.firstName == null) { + sb.append("null"); + } else { + sb.append(this.firstName); + } + 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("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } + first = false; + if (!first) sb.append(", "); + sb.append("role:"); + if (this.role == null) { + sb.append("null"); + } else { + sb.append(this.role); + } + 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 writeLectureRights_argsStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_argsStandardScheme getScheme() { + return new writeLectureRights_argsStandardScheme(); + } + } + + private static class writeLectureRights_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_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: // LECTURENAME + 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: // USERNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LAST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FIRST_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // 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 6: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // ROLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.role = iprot.readString(); + struct.setRoleIsSet(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, writeLectureRights_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.lecturename != null) { + oprot.writeFieldBegin(LECTURENAME_FIELD_DESC); + oprot.writeString(struct.lecturename); + oprot.writeFieldEnd(); + } + if (struct.username != null) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeString(struct.username); + oprot.writeFieldEnd(); + } + if (struct.lastName != null) { + oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); + oprot.writeString(struct.lastName); + oprot.writeFieldEnd(); + } + if (struct.firstName != null) { + oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); + oprot.writeString(struct.firstName); + oprot.writeFieldEnd(); + } + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + if (struct.role != null) { + oprot.writeFieldBegin(ROLE_FIELD_DESC); + oprot.writeString(struct.role); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeLectureRights_argsTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_argsTupleScheme getScheme() { + return new writeLectureRights_argsTupleScheme(); + } + } + + private static class writeLectureRights_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetLecturename()) { + optionals.set(0); + } + if (struct.isSetUsername()) { + optionals.set(1); + } + if (struct.isSetLastName()) { + optionals.set(2); + } + if (struct.isSetFirstName()) { + optionals.set(3); + } + if (struct.isSetMail()) { + optionals.set(4); + } + if (struct.isSetUniversity()) { + optionals.set(5); + } + if (struct.isSetRole()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetLecturename()) { + oprot.writeString(struct.lecturename); + } + if (struct.isSetUsername()) { + oprot.writeString(struct.username); + } + if (struct.isSetLastName()) { + oprot.writeString(struct.lastName); + } + if (struct.isSetFirstName()) { + oprot.writeString(struct.firstName); + } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetRole()) { + oprot.writeString(struct.role); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.lecturename = iprot.readString(); + struct.setLecturenameIsSet(true); + } + if (incoming.get(1)) { + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } + if (incoming.get(2)) { + struct.lastName = iprot.readString(); + struct.setLastNameIsSet(true); + } + if (incoming.get(3)) { + struct.firstName = iprot.readString(); + struct.setFirstNameIsSet(true); + } + if (incoming.get(4)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(5)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(6)) { + struct.role = iprot.readString(); + struct.setRoleIsSet(true); + } + } + } + + } + + public static class writeLectureRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeLectureRights_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLectureRights_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 byName = new HashMap(); + + 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(writeLectureRights_result.class, metaDataMap); + } + + public writeLectureRights_result() { + } + + public writeLectureRights_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public writeLectureRights_result(writeLectureRights_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public writeLectureRights_result deepCopy() { + return new writeLectureRights_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public writeLectureRights_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 writeLectureRights_result) + return this.equals((writeLectureRights_result)that); + return false; + } + + public boolean equals(writeLectureRights_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(writeLectureRights_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("writeLectureRights_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 writeLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeLectureRights_resultStandardScheme getScheme() { + return new writeLectureRights_resultStandardScheme(); + } + } + + private static class writeLectureRights_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_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, writeLectureRights_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 writeLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeLectureRights_resultTupleScheme getScheme() { + return new writeLectureRights_resultTupleScheme(); + } + } + + private static class writeLectureRights_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_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, writeLectureRights_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 writeAdditionalLectureRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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, SchemeFactory> schemes = new HashMap, 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 byName = new HashMap(); + + 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 other. + */ + 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 { + + 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 { + + @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, java.io.Serializable, Cloneable, Comparable { + 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, SchemeFactory> schemes = new HashMap, 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 byName = new HashMap(); + + 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 other. + */ + 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 { + + 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 { + + @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, java.io.Serializable, Cloneable, Comparable { + 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.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); + } + + public List userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.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); + } + + public getAllOtherSatelliteUsers_args() { + } + + public getAllOtherSatelliteUsers_args( + List userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { + if (other.isSetUserID()) { + List __this__userID = new ArrayList(other.userID); + this.userID = __this__userID; + } + } + + public getAllOtherSatelliteUsers_args deepCopy() { + return new getAllOtherSatelliteUsers_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public int getUserIDSize() { + return (this.userID == null) ? 0 : this.userID.size(); + } + + public java.util.Iterator getUserIDIterator() { + return (this.userID == null) ? null : this.userID.iterator(); + } + + public void addToUserID(String elem) { + if (this.userID == null) { + this.userID = new ArrayList(); + } + this.userID.add(elem); + } + + public List getUserID() { + return this.userID; + } + + public getAllOtherSatelliteUsers_args setUserID(List userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllOtherSatelliteUsers_args) + return this.equals((getAllOtherSatelliteUsers_args)that); + return false; + } + + public boolean equals(getAllOtherSatelliteUsers_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; - } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllOtherSatelliteUsers_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetRole()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } @@ -34280,62 +37891,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLectureRights_args("); + StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_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("username:"); - if (this.username == null) { - sb.append("null"); - } else { - sb.append(this.username); - } - first = false; - if (!first) sb.append(", "); - sb.append("lastName:"); - if (this.lastName == null) { - sb.append("null"); - } else { - sb.append(this.lastName); - } - first = false; - if (!first) sb.append(", "); - sb.append("firstName:"); - if (this.firstName == null) { - sb.append("null"); - } else { - sb.append(this.firstName); - } - 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("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); - } - first = false; - if (!first) sb.append(", "); - sb.append("role:"); - if (this.role == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.role); + sb.append(this.userID); } first = false; sb.append(")"); @@ -34363,15 +37926,15 @@ public class Server { } } - private static class writeLectureRights_argsStandardSchemeFactory implements SchemeFactory { - public writeLectureRights_argsStandardScheme getScheme() { - return new writeLectureRights_argsStandardScheme(); + private static class getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_argsStandardScheme(); } } - private static class writeLectureRights_argsStandardScheme extends StandardScheme { + private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34381,58 +37944,20 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTURENAME - 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: // USERNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LAST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // FIRST_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // 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 6: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // ROLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); + struct.userID = new ArrayList(_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); } @@ -34448,43 +37973,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lecturename != null) { - oprot.writeFieldBegin(LECTURENAME_FIELD_DESC); - oprot.writeString(struct.lecturename); - oprot.writeFieldEnd(); - } - if (struct.username != null) { - oprot.writeFieldBegin(USERNAME_FIELD_DESC); - oprot.writeString(struct.username); - oprot.writeFieldEnd(); - } - if (struct.lastName != null) { - oprot.writeFieldBegin(LAST_NAME_FIELD_DESC); - oprot.writeString(struct.lastName); - oprot.writeFieldEnd(); - } - if (struct.firstName != null) { - oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC); - oprot.writeString(struct.firstName); - oprot.writeFieldEnd(); - } - if (struct.mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.mail); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.role != null) { - oprot.writeFieldBegin(ROLE_FIELD_DESC); - oprot.writeString(struct.role); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + { + 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(); @@ -34493,112 +37995,67 @@ public class Server { } - private static class writeLectureRights_argsTupleSchemeFactory implements SchemeFactory { - public writeLectureRights_argsTupleScheme getScheme() { - return new writeLectureRights_argsTupleScheme(); + private static class getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_argsTupleScheme(); } } - private static class writeLectureRights_argsTupleScheme extends TupleScheme { + private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLecturename()) { + if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetUsername()) { - optionals.set(1); - } - if (struct.isSetLastName()) { - optionals.set(2); - } - if (struct.isSetFirstName()) { - optionals.set(3); - } - if (struct.isSetMail()) { - optionals.set(4); - } - if (struct.isSetUniversity()) { - optionals.set(5); - } - if (struct.isSetRole()) { - optionals.set(6); - } - oprot.writeBitSet(optionals, 7); - if (struct.isSetLecturename()) { - oprot.writeString(struct.lecturename); - } - if (struct.isSetUsername()) { - oprot.writeString(struct.username); - } - if (struct.isSetLastName()) { - oprot.writeString(struct.lastName); - } - if (struct.isSetFirstName()) { - oprot.writeString(struct.firstName); - } - if (struct.isSetMail()) { - oprot.writeString(struct.mail); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetRole()) { - oprot.writeString(struct.role); + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + { + oprot.writeI32(struct.userID.size()); + for (String _iter106 : struct.userID) + { + oprot.writeString(_iter106); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.lecturename = iprot.readString(); - struct.setLecturenameIsSet(true); - } - if (incoming.get(1)) { - struct.username = iprot.readString(); - struct.setUsernameIsSet(true); - } - if (incoming.get(2)) { - struct.lastName = iprot.readString(); - struct.setLastNameIsSet(true); - } - if (incoming.get(3)) { - struct.firstName = iprot.readString(); - struct.setFirstNameIsSet(true); - } - if (incoming.get(4)) { - struct.mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(5)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(6)) { - struct.role = iprot.readString(); - struct.setRoleIsSet(true); + { + org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList(_list107.size); + for (int _i108 = 0; _i108 < _list107.size; ++_i108) + { + String _elem109; + _elem109 = iprot.readString(); + struct.userID.add(_elem109); + } + } + struct.setUserIDIsSet(true); } } } } - public static class writeLectureRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLectureRights_result"); + public static class getAllOtherSatelliteUsers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLectureRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLectureRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); } - public boolean success; // required + public List 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 { @@ -34659,67 +38116,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(writeLectureRights_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_result.class, metaDataMap); } - public writeLectureRights_result() { + public getAllOtherSatelliteUsers_result() { } - public writeLectureRights_result( - boolean success) + public getAllOtherSatelliteUsers_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeLectureRights_result(writeLectureRights_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } + this.success = __this__success; + } } - public writeLectureRights_result deepCopy() { - return new writeLectureRights_result(this); + public getAllOtherSatelliteUsers_result deepCopy() { + return new getAllOtherSatelliteUsers_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 getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Person elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public writeLectureRights_result setSuccess(boolean success) { + public getAllOtherSatelliteUsers_result setSuccess(List 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) { @@ -34728,7 +38203,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -34738,7 +38213,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -34761,21 +38236,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLectureRights_result) - return this.equals((writeLectureRights_result)that); + if (that instanceof getAllOtherSatelliteUsers_result) + return this.equals((getAllOtherSatelliteUsers_result)that); return false; } - public boolean equals(writeLectureRights_result that) { + public boolean equals(getAllOtherSatelliteUsers_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; } @@ -34788,7 +38263,7 @@ public class Server { } @Override - public int compareTo(writeLectureRights_result other) { + public int compareTo(getAllOtherSatelliteUsers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -34822,11 +38297,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLectureRights_result("); + StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_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(); @@ -34847,23 +38326,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 writeLectureRights_resultStandardSchemeFactory implements SchemeFactory { - public writeLectureRights_resultStandardScheme getScheme() { - return new writeLectureRights_resultStandardScheme(); + private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_resultStandardScheme(); } } - private static class writeLectureRights_resultStandardScheme extends StandardScheme { + private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34874,8 +38351,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 _list110 = iprot.readListBegin(); + struct.success = new ArrayList(_list110.size); + for (int _i111 = 0; _i111 < _list110.size; ++_i111) + { + Person _elem112; + _elem112 = new Person(); + _elem112.read(iprot); + struct.success.add(_elem112); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -34892,13 +38380,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_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 _iter113 : struct.success) + { + _iter113.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -34907,16 +38402,16 @@ public class Server { } - private static class writeLectureRights_resultTupleSchemeFactory implements SchemeFactory { - public writeLectureRights_resultTupleScheme getScheme() { - return new writeLectureRights_resultTupleScheme(); + private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_resultTupleScheme(); } } - private static class writeLectureRights_resultTupleScheme extends TupleScheme { + private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -34924,16 +38419,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Person _iter114 : struct.success) + { + _iter114.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_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 _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list115.size); + for (int _i116 = 0; _i116 < _list115.size; ++_i116) + { + Person _elem117; + _elem117 = new Person(); + _elem117.read(iprot); + struct.success.add(_elem117); + } + } struct.setSuccessIsSet(true); } } @@ -34941,22 +38452,25 @@ public class Server { } - public static class getAllOtherSatelliteUsers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_args"); + public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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 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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); } public String userID; // 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 { - USER_ID((short)1, "userID"); + USER_ID((short)1, "userID"), + IMAGE_ID((short)2, "imageID"); private static final Map byName = new HashMap(); @@ -34973,6 +38487,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; + case 2: // IMAGE_ID + return IMAGE_ID; default: return null; } @@ -35018,43 +38534,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, + 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); } - public getAllOtherSatelliteUsers_args() { + public getPermissionForUserAndImage_args() { } - public getAllOtherSatelliteUsers_args( - String userID) + public getPermissionForUserAndImage_args( + String userID, + String imageID) { this(); this.userID = userID; + this.imageID = imageID; } /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { + public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { if (other.isSetUserID()) { this.userID = other.userID; } + if (other.isSetImageID()) { + this.imageID = other.imageID; + } } - public getAllOtherSatelliteUsers_args deepCopy() { - return new getAllOtherSatelliteUsers_args(this); + public getPermissionForUserAndImage_args deepCopy() { + return new getPermissionForUserAndImage_args(this); } @Override public void clear() { this.userID = null; + this.imageID = null; } public String getUserID() { return this.userID; } - public getAllOtherSatelliteUsers_args setUserID(String userID) { + public getPermissionForUserAndImage_args setUserID(String userID) { this.userID = userID; return this; } @@ -35074,6 +38598,30 @@ public class Server { } } + public String getImageID() { + return this.imageID; + } + + public getPermissionForUserAndImage_args setImageID(String imageID) { + this.imageID = imageID; + return this; + } + + public void unsetImageID() { + this.imageID = null; + } + + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; + } + + public void setImageIDIsSet(boolean value) { + if (!value) { + this.imageID = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_ID: @@ -35084,6 +38632,14 @@ public class Server { } break; + case IMAGE_ID: + if (value == null) { + unsetImageID(); + } else { + setImageID((String)value); + } + break; + } } @@ -35092,6 +38648,9 @@ public class Server { case USER_ID: return getUserID(); + case IMAGE_ID: + return getImageID(); + } throw new IllegalStateException(); } @@ -35105,6 +38664,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); + case IMAGE_ID: + return isSetImageID(); } throw new IllegalStateException(); } @@ -35113,12 +38674,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_args) - return this.equals((getAllOtherSatelliteUsers_args)that); + if (that instanceof getPermissionForUserAndImage_args) + return this.equals((getPermissionForUserAndImage_args)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_args that) { + public boolean equals(getPermissionForUserAndImage_args that) { if (that == null) return false; @@ -35131,6 +38692,15 @@ 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)) + return false; + if (!this.imageID.equals(that.imageID)) + return false; + } + return true; } @@ -35140,7 +38710,7 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_args other) { + public int compareTo(getPermissionForUserAndImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -35157,6 +38727,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -35174,7 +38754,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); boolean first = true; sb.append("userID:"); @@ -35184,6 +38764,14 @@ public class Server { sb.append(this.userID); } first = false; + if (!first) sb.append(", "); + sb.append("imageID:"); + if (this.imageID == null) { + sb.append("null"); + } else { + sb.append(this.imageID); + } + first = false; sb.append(")"); return sb.toString(); } @@ -35209,15 +38797,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_argsStandardScheme(); + private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsStandardScheme getScheme() { + return new getPermissionForUserAndImage_argsStandardScheme(); } } - private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_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) @@ -35235,6 +38823,14 @@ public class Server { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + 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); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -35246,7 +38842,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_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); @@ -35255,55 +38851,70 @@ public class Server { oprot.writeString(struct.userID); 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 getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_argsTupleScheme(); + private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsTupleScheme getScheme() { + return new getPermissionForUserAndImage_argsTupleScheme(); } } - private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_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.isSetUserID()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetImageID()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { oprot.writeString(struct.userID); } + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_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(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } + if (incoming.get(1)) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } } } } - public static class getAllOtherSatelliteUsers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_result"); + public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); } public List success; // required @@ -35374,13 +38985,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(getAllOtherSatelliteUsers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); } - public getAllOtherSatelliteUsers_result() { + public getPermissionForUserAndImage_result() { } - public getAllOtherSatelliteUsers_result( + public getPermissionForUserAndImage_result( List success) { this(); @@ -35390,7 +39001,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Person other_element : other.success) { @@ -35400,8 +39011,8 @@ public class Server { } } - public getAllOtherSatelliteUsers_result deepCopy() { - return new getAllOtherSatelliteUsers_result(this); + public getPermissionForUserAndImage_result deepCopy() { + return new getPermissionForUserAndImage_result(this); } @Override @@ -35428,7 +39039,7 @@ public class Server { return this.success; } - public getAllOtherSatelliteUsers_result setSuccess(List success) { + public getPermissionForUserAndImage_result setSuccess(List success) { this.success = success; return this; } @@ -35487,12 +39098,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_result) - return this.equals((getAllOtherSatelliteUsers_result)that); + if (that instanceof getPermissionForUserAndImage_result) + return this.equals((getPermissionForUserAndImage_result)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_result that) { + public boolean equals(getPermissionForUserAndImage_result that) { if (that == null) return false; @@ -35514,7 +39125,7 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_result other) { + public int compareTo(getPermissionForUserAndImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -35548,7 +39159,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); boolean first = true; sb.append("success:"); @@ -35583,15 +39194,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_resultStandardScheme(); + private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultStandardScheme getScheme() { + return new getPermissionForUserAndImage_resultStandardScheme(); } } - private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_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) @@ -35604,14 +39215,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(_list102.size); - for (int _i103 = 0; _i103 < _list102.size; ++_i103) + org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); + struct.success = new ArrayList(_list118.size); + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - Person _elem104; - _elem104 = new Person(); - _elem104.read(iprot); - struct.success.add(_elem104); + Person _elem120; + _elem120 = new Person(); + _elem120.read(iprot); + struct.success.add(_elem120); } iprot.readListEnd(); } @@ -35631,7 +39242,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_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); @@ -35639,9 +39250,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter105 : struct.success) + for (Person _iter121 : struct.success) { - _iter105.write(oprot); + _iter121.write(oprot); } oprot.writeListEnd(); } @@ -35653,16 +39264,16 @@ public class Server { } - private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_resultTupleScheme(); + private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultTupleScheme getScheme() { + return new getPermissionForUserAndImage_resultTupleScheme(); } } - private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_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()) { @@ -35672,28 +39283,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter106 : struct.success) + for (Person _iter122 : struct.success) { - _iter106.write(oprot); + _iter122.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_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)) { { - org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list107.size); - for (int _i108 = 0; _i108 < _list107.size; ++_i108) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list123.size); + for (int _i124 = 0; _i124 < _list123.size; ++_i124) { - Person _elem109; - _elem109 = new Person(); - _elem109.read(iprot); - struct.success.add(_elem109); + Person _elem125; + _elem125 = new Person(); + _elem125.read(iprot); + struct.success.add(_elem125); } } struct.setSuccessIsSet(true); @@ -35703,37 +39314,25 @@ public class Server { } - public static class writeAdditionalImageRights_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_args"); + public static class getPermissionForUserAndLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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 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 LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_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 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 { - 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"), + LECTURE_ID((short)2, "lectureID"); private static final Map byName = new HashMap(); @@ -35748,18 +39347,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: // LECTURE_ID + return LECTURE_ID; default: return null; } @@ -35800,118 +39391,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.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(writeAdditionalImageRights_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_args.class, metaDataMap); } - public writeAdditionalImageRights_args() { + public getPermissionForUserAndLecture_args() { } - public writeAdditionalImageRights_args( - String imageName, - String userID, - boolean isRead, - boolean isWrite, - boolean isLinkAllowed, - boolean isAdmin) + public getPermissionForUserAndLecture_args( + String userID, + String lectureID) { 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.lectureID = lectureID; } /** * Performs a deep copy on other. */ - public writeAdditionalImageRights_args(writeAdditionalImageRights_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetImageName()) { - this.imageName = other.imageName; - } + public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_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.isSetLectureID()) { + this.lectureID = other.lectureID; + } } - public writeAdditionalImageRights_args deepCopy() { - return new writeAdditionalImageRights_args(this); + public getPermissionForUserAndLecture_args deepCopy() { + return new getPermissionForUserAndLecture_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.lectureID = null; } public String getUserID() { return this.userID; } - public writeAdditionalImageRights_args setUserID(String userID) { + public getPermissionForUserAndLecture_args setUserID(String userID) { this.userID = userID; return this; } @@ -35931,108 +39460,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 getLectureID() { + return this.lectureID; } - public writeAdditionalImageRights_args setIsAdmin(boolean isAdmin) { - this.isAdmin = isAdmin; - setIsAdminIsSet(true); + public getPermissionForUserAndLecture_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetIsAdmin() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISADMIN_ISSET_ID); + public void unsetLectureID() { + this.lectureID = 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 lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setIsAdminIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISADMIN_ISSET_ID, value); + public void setLectureIDIsSet(boolean value) { + if (!value) { + this.lectureID = 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 +39494,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 LECTURE_ID: if (value == null) { - unsetIsAdmin(); + unsetLectureID(); } else { - setIsAdmin((Boolean)value); + setLectureID((String)value); } break; @@ -36078,23 +39507,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 LECTURE_ID: + return getLectureID(); } throw new IllegalStateException(); @@ -36107,18 +39524,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 LECTURE_ID: + return isSetLectureID(); } throw new IllegalStateException(); } @@ -36127,24 +39536,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 getPermissionForUserAndLecture_args) + return this.equals((getPermissionForUserAndLecture_args)that); return false; } - public boolean equals(writeAdditionalImageRights_args that) { + public boolean equals(getPermissionForUserAndLecture_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 +39554,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_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.isAdmin != that.isAdmin) + if (!this.lectureID.equals(that.lectureID)) return false; } @@ -36199,23 +39572,13 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_args other) { + public int compareTo(getPermissionForUserAndLecture_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 +39589,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(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetIsAdmin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAdmin, other.isAdmin); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); if (lastComparison != 0) { return lastComparison; } @@ -36283,17 +39616,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_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 +39627,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("lectureID:"); + if (this.lectureID == null) { + sb.append("null"); + } else { + sb.append(this.lectureID); + } first = false; sb.append(")"); return sb.toString(); @@ -36336,23 +39653,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 getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsStandardScheme getScheme() { + return new getPermissionForUserAndLecture_argsStandardScheme(); } } - private static class writeAdditionalImageRights_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme { - 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, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36362,15 +39677,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 +39685,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: // 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); } @@ -36421,134 +39704,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, getPermissionForUserAndLecture_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.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeAdditionalImageRights_argsTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_argsTupleScheme getScheme() { - return new writeAdditionalImageRights_argsTupleScheme(); + private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsTupleScheme getScheme() { + return new getPermissionForUserAndLecture_argsTupleScheme(); } } - private static class writeAdditionalImageRights_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme { @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, getPermissionForUserAndLecture_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.isSetLectureID()) { 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.isSetLectureID()) { + oprot.writeString(struct.lectureID); } } @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, getPermissionForUserAndLecture_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.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } } } } - public static class writeAdditionalImageRights_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeAdditionalImageRights_result"); + public static class getPermissionForUserAndLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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.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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeAdditionalImageRights_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeAdditionalImageRights_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_resultTupleSchemeFactory()); } - public boolean success; // required + public List 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 +39840,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(getPermissionForUserAndLecture_result.class, metaDataMap); } - public writeAdditionalImageRights_result() { + public getPermissionForUserAndLecture_result() { } - public writeAdditionalImageRights_result( - boolean success) + public getPermissionForUserAndLecture_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeAdditionalImageRights_result(writeAdditionalImageRights_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(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 getPermissionForUserAndLecture_result deepCopy() { + return new getPermissionForUserAndLecture_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 getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Person elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public writeAdditionalImageRights_result setSuccess(boolean success) { + public getPermissionForUserAndLecture_result setSuccess(List 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 +39927,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -36688,7 +39937,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -36711,21 +39960,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 getPermissionForUserAndLecture_result) + return this.equals((getPermissionForUserAndLecture_result)that); return false; } - public boolean equals(writeAdditionalImageRights_result that) { + public boolean equals(getPermissionForUserAndLecture_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 +39987,7 @@ public class Server { } @Override - public int compareTo(writeAdditionalImageRights_result other) { + public int compareTo(getPermissionForUserAndLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -36772,11 +40021,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalImageRights_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_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 +40050,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 getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultStandardScheme getScheme() { + return new getPermissionForUserAndLecture_resultStandardScheme(); } } - private static class writeAdditionalImageRights_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme { - 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, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36824,8 +40075,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.success = new ArrayList(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) + { + Person _elem128; + _elem128 = new Person(); + _elem128.read(iprot); + struct.success.add(_elem128); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -36842,13 +40104,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, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter129 : struct.success) + { + _iter129.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -36857,16 +40126,16 @@ public class Server { } - private static class writeAdditionalImageRights_resultTupleSchemeFactory implements SchemeFactory { - public writeAdditionalImageRights_resultTupleScheme getScheme() { - return new writeAdditionalImageRights_resultTupleScheme(); + private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultTupleScheme getScheme() { + return new getPermissionForUserAndLecture_resultTupleScheme(); } } - private static class writeAdditionalImageRights_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme { @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, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -36874,16 +40143,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Person _iter130 : struct.success) + { + _iter130.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalImageRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) + { + Person _elem133; + _elem133 = new Person(); + _elem133.read(iprot); + struct.success.add(_elem133); + } + } struct.setSuccessIsSet(true); } } @@ -36891,25 +40176,25 @@ public class Server { } - public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_args"); + public static class deleteAllAdditionalImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_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 IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", 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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); } - public String userID; // required public String imageID; // 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 { - USER_ID((short)1, "userID"), - IMAGE_ID((short)2, "imageID"); + IMAGE_ID((short)1, "imageID"), + USER_ID((short)2, "userID"); private static final Map byName = new HashMap(); @@ -36924,10 +40209,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; - case 2: // IMAGE_ID + case 1: // IMAGE_ID return IMAGE_ID; + case 2: // USER_ID + return USER_ID; default: return null; } @@ -36971,111 +40256,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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))); + 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(getPermissionForUserAndImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_args.class, metaDataMap); } - public getPermissionForUserAndImage_args() { + public deleteAllAdditionalImagePermissions_args() { } - public getPermissionForUserAndImage_args( - String userID, - String imageID) + public deleteAllAdditionalImagePermissions_args( + String imageID, + String userID) { this(); - this.userID = userID; this.imageID = imageID; + this.userID = userID; } /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { if (other.isSetImageID()) { this.imageID = other.imageID; } + if (other.isSetUserID()) { + this.userID = other.userID; + } } - public getPermissionForUserAndImage_args deepCopy() { - return new getPermissionForUserAndImage_args(this); + public deleteAllAdditionalImagePermissions_args deepCopy() { + return new deleteAllAdditionalImagePermissions_args(this); } @Override public void clear() { - this.userID = null; this.imageID = null; + this.userID = null; } - public String getUserID() { - return this.userID; + public String getImageID() { + return this.imageID; } - public getPermissionForUserAndImage_args setUserID(String userID) { - this.userID = userID; + public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setUserIDIsSet(boolean value) { + public void setImageIDIsSet(boolean value) { if (!value) { - this.userID = null; + this.imageID = null; } } - public String getImageID() { - return this.imageID; + public String getUserID() { + return this.userID; } - public getPermissionForUserAndImage_args setImageID(String imageID) { - this.imageID = imageID; + public deleteAllAdditionalImagePermissions_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetUserID() { + this.userID = 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 userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; } - public void setImageIDIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.userID = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case IMAGE_ID: if (value == null) { - unsetUserID(); + unsetImageID(); } else { - setUserID((String)value); + setImageID((String)value); } break; - case IMAGE_ID: + case USER_ID: if (value == null) { - unsetImageID(); + unsetUserID(); } else { - setImageID((String)value); + setUserID((String)value); } break; @@ -37084,12 +40369,12 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - case IMAGE_ID: return getImageID(); + case USER_ID: + return getUserID(); + } throw new IllegalStateException(); } @@ -37101,10 +40386,10 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); case IMAGE_ID: return isSetImageID(); + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -37113,24 +40398,15 @@ 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 deleteAllAdditionalImagePermissions_args) + return this.equals((deleteAllAdditionalImagePermissions_args)that); return false; } - public boolean equals(getPermissionForUserAndImage_args that) { + public boolean equals(deleteAllAdditionalImagePermissions_args that) { if (that == null) return false; - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) - return false; - } - boolean this_present_imageID = true && this.isSetImageID(); boolean that_present_imageID = true && that.isSetImageID(); if (this_present_imageID || that_present_imageID) { @@ -37140,6 +40416,15 @@ public class Server { 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; } @@ -37149,29 +40434,29 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_args other) { + public int compareTo(deleteAllAdditionalImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } @@ -37193,22 +40478,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("imageID:"); + if (this.imageID == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.imageID); } first = false; if (!first) sb.append(", "); - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.userID); } first = false; sb.append(")"); @@ -37236,15 +40521,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsStandardScheme getScheme() { - return new getPermissionForUserAndImage_argsStandardScheme(); + private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsStandardScheme(); } } - private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { - 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, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37254,18 +40539,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_ID + case 2: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37281,86 +40566,84 @@ 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, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); - oprot.writeFieldEnd(); - } if (struct.imageID != null) { oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); oprot.writeString(struct.imageID); 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 getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsTupleScheme getScheme() { - return new getPermissionForUserAndImage_argsTupleScheme(); + private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsTupleScheme(); } } - private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { @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, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetImageID()) { optionals.set(0); } - if (struct.isSetImageID()) { + if (struct.isSetUserID()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } if (struct.isSetImageID()) { oprot.writeString(struct.imageID); } + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } } @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, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } - if (incoming.get(1)) { struct.imageID = iprot.readString(); struct.setImageIDIsSet(true); } + if (incoming.get(1)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } } } } - public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_result"); + public static class deleteAllAdditionalImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_resultTupleSchemeFactory()); } - public List 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 byName = new HashMap(); @@ -37375,8 +40658,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -37415,107 +40696,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); - } - - public getPermissionForUserAndImage_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_result.class, metaDataMap); } - public getPermissionForUserAndImage_result( - List success) - { - this(); - this.success = success; + public deleteAllAdditionalImagePermissions_result() { } /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Person other_element : other.success) { - __this__success.add(new Person(other_element)); - } - this.success = __this__success; - } + public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { } - public getPermissionForUserAndImage_result deepCopy() { - return new getPermissionForUserAndImage_result(this); + public deleteAllAdditionalImagePermissions_result deepCopy() { + return new deleteAllAdditionalImagePermissions_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Person elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getPermissionForUserAndImage_result setSuccess(List success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -37527,8 +40738,6 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -37537,24 +40746,15 @@ 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 deleteAllAdditionalImagePermissions_result) + return this.equals((deleteAllAdditionalImagePermissions_result)that); return false; } - public boolean equals(getPermissionForUserAndImage_result that) { + public boolean equals(deleteAllAdditionalImagePermissions_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - return true; } @@ -37564,23 +40764,13 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_result other) { + public int compareTo(deleteAllAdditionalImagePermissions_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; } @@ -37598,16 +40788,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; sb.append(")"); return sb.toString(); } @@ -37633,15 +40816,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultStandardScheme getScheme() { - return new getPermissionForUserAndImage_resultStandardScheme(); + private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultStandardScheme(); } } - private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { - 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, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37651,25 +40834,6 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); - struct.success = new ArrayList(_list110.size); - for (int _i111 = 0; _i111 < _list110.size; ++_i111) - { - Person _elem112; - _elem112 = new Person(); - _elem112.read(iprot); - struct.success.add(_elem112); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37681,96 +40845,55 @@ 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, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter113 : struct.success) - { - _iter113.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultTupleScheme getScheme() { - return new getPermissionForUserAndImage_resultTupleScheme(); + private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultTupleScheme(); } } - private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { @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, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Person _iter114 : struct.success) - { - _iter114.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, deleteAllAdditionalImagePermissions_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(_list115.size); - for (int _i116 = 0; _i116 < _list115.size; ++_i116) - { - Person _elem117; - _elem117 = new Person(); - _elem117.read(iprot); - struct.success.add(_elem117); - } - } - struct.setSuccessIsSet(true); - } } } } - public static class deleteAllAdditionalImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_args"); + public static class deleteAllAdditionalLecturePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + 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 IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + 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, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); } - public String imageID; // required + 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 { - IMAGE_ID((short)1, "imageID"), + LECTURE_ID((short)1, "lectureID"), USER_ID((short)2, "userID"); private static final Map byName = new HashMap(); @@ -37786,8 +40909,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; + case 1: // LECTURE_ID + return LECTURE_ID; case 2: // USER_ID return USER_ID; default: @@ -37833,69 +40956,69 @@ public class Server { 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_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))); 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(deleteAllAdditionalImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_args() { + public deleteAllAdditionalLecturePermissions_args() { } - public deleteAllAdditionalImagePermissions_args( - String imageID, + public deleteAllAdditionalLecturePermissions_args( + String lectureID, String userID) { this(); - this.imageID = imageID; + this.lectureID = lectureID; this.userID = userID; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { - if (other.isSetImageID()) { - this.imageID = other.imageID; + public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; } if (other.isSetUserID()) { this.userID = other.userID; } } - public deleteAllAdditionalImagePermissions_args deepCopy() { - return new deleteAllAdditionalImagePermissions_args(this); + public deleteAllAdditionalLecturePermissions_args deepCopy() { + return new deleteAllAdditionalLecturePermissions_args(this); } @Override public void clear() { - this.imageID = null; + this.lectureID = null; this.userID = null; } - public String getImageID() { - return this.imageID; + public String getLectureID() { + return this.lectureID; } - public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { - this.imageID = imageID; + public deleteAllAdditionalLecturePermissions_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; } } @@ -37903,7 +41026,7 @@ public class Server { return this.userID; } - public deleteAllAdditionalImagePermissions_args setUserID(String userID) { + public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { this.userID = userID; return this; } @@ -37925,11 +41048,11 @@ public class Server { public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_ID: + case LECTURE_ID: if (value == null) { - unsetImageID(); + unsetLectureID(); } else { - setImageID((String)value); + setLectureID((String)value); } break; @@ -37946,8 +41069,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImageID(); + case LECTURE_ID: + return getLectureID(); case USER_ID: return getUserID(); @@ -37963,8 +41086,8 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImageID(); + case LECTURE_ID: + return isSetLectureID(); case USER_ID: return isSetUserID(); } @@ -37975,21 +41098,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_args) - return this.equals((deleteAllAdditionalImagePermissions_args)that); + if (that instanceof deleteAllAdditionalLecturePermissions_args) + return this.equals((deleteAllAdditionalLecturePermissions_args)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_args that) { + public boolean equals(deleteAllAdditionalLecturePermissions_args that) { if (that == null) 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; } @@ -38011,19 +41134,19 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_args other) { + public int compareTo(deleteAllAdditionalLecturePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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; } @@ -38055,14 +41178,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); boolean first = true; - 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; if (!first) sb.append(", "); @@ -38098,15 +41221,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + 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) @@ -38116,10 +41239,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // 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); } @@ -38143,13 +41266,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + 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.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(); } if (struct.userID != null) { @@ -38163,27 +41286,27 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + 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.isSetImageID()) { + if (struct.isSetLectureID()) { optionals.set(0); } if (struct.isSetUserID()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); } if (struct.isSetUserID()) { oprot.writeString(struct.userID); @@ -38191,12 +41314,12 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + 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.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } if (incoming.get(1)) { struct.userID = iprot.readString(); @@ -38207,14 +41330,14 @@ public class Server { } - public static class deleteAllAdditionalImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_result"); + public static class deleteAllAdditionalLecturePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_result"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); } @@ -38277,20 +41400,20 @@ public class Server { 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(deleteAllAdditionalImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_result() { + public deleteAllAdditionalLecturePermissions_result() { } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { + public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { } - public deleteAllAdditionalImagePermissions_result deepCopy() { - return new deleteAllAdditionalImagePermissions_result(this); + public deleteAllAdditionalLecturePermissions_result deepCopy() { + return new deleteAllAdditionalLecturePermissions_result(this); } @Override @@ -38323,12 +41446,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_result) - return this.equals((deleteAllAdditionalImagePermissions_result)that); + if (that instanceof deleteAllAdditionalLecturePermissions_result) + return this.equals((deleteAllAdditionalLecturePermissions_result)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_result that) { + public boolean equals(deleteAllAdditionalLecturePermissions_result that) { if (that == null) return false; @@ -38341,7 +41464,7 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_result other) { + public int compareTo(deleteAllAdditionalLecturePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38365,7 +41488,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); boolean first = true; sb.append(")"); @@ -38393,15 +41516,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + 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) @@ -38422,7 +41545,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38432,21 +41555,21 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + 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, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } -- cgit v1.2.3-55-g7522