From 6ccc95939c22f4b771856b3a19e76288c3b5f113 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 21 Oct 2014 18:02:43 +0200 Subject: -Fehler behoben, Liste der Benutzer für Berechtigung nun korrekt -Backend vorbereitet für personenabhängige Liste der Veranstaltungen nach Rechten --- .../src/main/java/server/generated/Server.java | 3924 ++++++++++++++++---- 1 file changed, 3303 insertions(+), 621 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 d8267f25..39763c69 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -54,6 +54,12 @@ public class Server { public List getLectureList() throws org.apache.thrift.TException; + public List getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; + + public List getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException; + + public List getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List getAllOS() throws org.apache.thrift.TException; public List getAllUniversities() throws org.apache.thrift.TException; @@ -120,6 +126,12 @@ public class Server { public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getLectureListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getLectureListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getAllUniversities(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -409,6 +421,75 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result"); } + public List getLectureListPermissionRead(String userID) throws org.apache.thrift.TException + { + send_getLectureListPermissionRead(userID); + return recv_getLectureListPermissionRead(); + } + + public void send_getLectureListPermissionRead(String userID) throws org.apache.thrift.TException + { + getLectureListPermissionRead_args args = new getLectureListPermissionRead_args(); + args.setUserID(userID); + sendBase("getLectureListPermissionRead", args); + } + + public List recv_getLectureListPermissionRead() throws org.apache.thrift.TException + { + getLectureListPermissionRead_result result = new getLectureListPermissionRead_result(); + receiveBase(result, "getLectureListPermissionRead"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionRead failed: unknown result"); + } + + public List getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException + { + send_getLectureListPermissionWrite(userID); + return recv_getLectureListPermissionWrite(); + } + + public void send_getLectureListPermissionWrite(String userID) throws org.apache.thrift.TException + { + getLectureListPermissionWrite_args args = new getLectureListPermissionWrite_args(); + args.setUserID(userID); + sendBase("getLectureListPermissionWrite", args); + } + + public List recv_getLectureListPermissionWrite() throws org.apache.thrift.TException + { + getLectureListPermissionWrite_result result = new getLectureListPermissionWrite_result(); + receiveBase(result, "getLectureListPermissionWrite"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionWrite failed: unknown result"); + } + + public List getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + send_getLectureListPermissionAdmin(userID); + return recv_getLectureListPermissionAdmin(); + } + + public void send_getLectureListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + getLectureListPermissionAdmin_args args = new getLectureListPermissionAdmin_args(); + args.setUserID(userID); + sendBase("getLectureListPermissionAdmin", args); + } + + public List recv_getLectureListPermissionAdmin() throws org.apache.thrift.TException + { + getLectureListPermissionAdmin_result result = new getLectureListPermissionAdmin_result(); + receiveBase(result, "getLectureListPermissionAdmin"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureListPermissionAdmin failed: unknown result"); + } + public List getAllOS() throws org.apache.thrift.TException { send_getAllOS(); @@ -1337,6 +1418,102 @@ public class Server { } } + public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getLectureListPermissionRead_call method_call = new getLectureListPermissionRead_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getLectureListPermissionRead_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getLectureListPermissionRead_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionRead", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getLectureListPermissionRead_args args = new getLectureListPermissionRead_args(); + args.setUserID(userID); + 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_getLectureListPermissionRead(); + } + } + + public void getLectureListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getLectureListPermissionWrite_call method_call = new getLectureListPermissionWrite_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getLectureListPermissionWrite_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getLectureListPermissionWrite_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionWrite", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getLectureListPermissionWrite_args args = new getLectureListPermissionWrite_args(); + args.setUserID(userID); + 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_getLectureListPermissionWrite(); + } + } + + public void getLectureListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getLectureListPermissionAdmin_call method_call = new getLectureListPermissionAdmin_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getLectureListPermissionAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getLectureListPermissionAdmin_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureListPermissionAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getLectureListPermissionAdmin_args args = new getLectureListPermissionAdmin_args(); + args.setUserID(userID); + 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_getLectureListPermissionAdmin(); + } + } + public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport); @@ -2285,6 +2462,9 @@ public class Server { processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getLectureList", new getLectureList()); + processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); + processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); + processMap.put("getLectureListPermissionAdmin", new getLectureListPermissionAdmin()); processMap.put("getAllOS", new getAllOS()); processMap.put("getAllUniversities", new getAllUniversities()); processMap.put("getPersonData", new getPersonData()); @@ -2492,6 +2672,66 @@ public class Server { } } + public static class getLectureListPermissionRead extends org.apache.thrift.ProcessFunction { + public getLectureListPermissionRead() { + super("getLectureListPermissionRead"); + } + + public getLectureListPermissionRead_args getEmptyArgsInstance() { + return new getLectureListPermissionRead_args(); + } + + protected boolean isOneway() { + return false; + } + + public getLectureListPermissionRead_result getResult(I iface, getLectureListPermissionRead_args args) throws org.apache.thrift.TException { + getLectureListPermissionRead_result result = new getLectureListPermissionRead_result(); + result.success = iface.getLectureListPermissionRead(args.userID); + return result; + } + } + + public static class getLectureListPermissionWrite extends org.apache.thrift.ProcessFunction { + public getLectureListPermissionWrite() { + super("getLectureListPermissionWrite"); + } + + public getLectureListPermissionWrite_args getEmptyArgsInstance() { + return new getLectureListPermissionWrite_args(); + } + + protected boolean isOneway() { + return false; + } + + public getLectureListPermissionWrite_result getResult(I iface, getLectureListPermissionWrite_args args) throws org.apache.thrift.TException { + getLectureListPermissionWrite_result result = new getLectureListPermissionWrite_result(); + result.success = iface.getLectureListPermissionWrite(args.userID); + return result; + } + } + + public static class getLectureListPermissionAdmin extends org.apache.thrift.ProcessFunction { + public getLectureListPermissionAdmin() { + super("getLectureListPermissionAdmin"); + } + + public getLectureListPermissionAdmin_args getEmptyArgsInstance() { + return new getLectureListPermissionAdmin_args(); + } + + protected boolean isOneway() { + return false; + } + + public getLectureListPermissionAdmin_result getResult(I iface, getLectureListPermissionAdmin_args args) throws org.apache.thrift.TException { + getLectureListPermissionAdmin_result result = new getLectureListPermissionAdmin_result(); + result.success = iface.getLectureListPermissionAdmin(args.userID); + return result; + } + } + public static class getAllOS extends org.apache.thrift.ProcessFunction { public getAllOS() { super("getAllOS"); @@ -2967,6 +3207,9 @@ public class Server { processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); processMap.put("getLectureList", new getLectureList()); + processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); + processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); + processMap.put("getLectureListPermissionAdmin", new getLectureListPermissionAdmin()); processMap.put("getAllOS", new getAllOS()); processMap.put("getAllUniversities", new getAllUniversities()); processMap.put("getPersonData", new getPersonData()); @@ -3453,6 +3696,159 @@ public class Server { } } + public static class getLectureListPermissionRead extends org.apache.thrift.AsyncProcessFunction> { + public getLectureListPermissionRead() { + super("getLectureListPermissionRead"); + } + + public getLectureListPermissionRead_args getEmptyArgsInstance() { + return new getLectureListPermissionRead_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) { + getLectureListPermissionRead_result result = new getLectureListPermissionRead_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getLectureListPermissionRead_result result = new getLectureListPermissionRead_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, getLectureListPermissionRead_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLectureListPermissionRead(args.userID,resultHandler); + } + } + + public static class getLectureListPermissionWrite extends org.apache.thrift.AsyncProcessFunction> { + public getLectureListPermissionWrite() { + super("getLectureListPermissionWrite"); + } + + public getLectureListPermissionWrite_args getEmptyArgsInstance() { + return new getLectureListPermissionWrite_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) { + getLectureListPermissionWrite_result result = new getLectureListPermissionWrite_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getLectureListPermissionWrite_result result = new getLectureListPermissionWrite_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, getLectureListPermissionWrite_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLectureListPermissionWrite(args.userID,resultHandler); + } + } + + public static class getLectureListPermissionAdmin extends org.apache.thrift.AsyncProcessFunction> { + public getLectureListPermissionAdmin() { + super("getLectureListPermissionAdmin"); + } + + public getLectureListPermissionAdmin_args getEmptyArgsInstance() { + return new getLectureListPermissionAdmin_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) { + getLectureListPermissionAdmin_result result = new getLectureListPermissionAdmin_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getLectureListPermissionAdmin_result result = new getLectureListPermissionAdmin_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, getLectureListPermissionAdmin_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLectureListPermissionAdmin(args.userID,resultHandler); + } + } + public static class getAllOS extends org.apache.thrift.AsyncProcessFunction> { public getAllOS() { super("getAllOS"); @@ -9505,67 +9901,2317 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; + 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(writeVLdata_result.class, metaDataMap); + } + + public writeVLdata_result() { + } + + public writeVLdata_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public writeVLdata_result(writeVLdata_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public writeVLdata_result deepCopy() { + return new writeVLdata_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public writeVLdata_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 writeVLdata_result) + return this.equals((writeVLdata_result)that); + return false; + } + + public boolean equals(writeVLdata_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(writeVLdata_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("writeVLdata_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 writeVLdata_resultStandardSchemeFactory implements SchemeFactory { + public writeVLdata_resultStandardScheme getScheme() { + return new writeVLdata_resultStandardScheme(); + } + } + + private static class writeVLdata_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_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, writeVLdata_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 writeVLdata_resultTupleSchemeFactory implements SchemeFactory { + public writeVLdata_resultTupleScheme getScheme() { + return new writeVLdata_resultTupleScheme(); + } + } + + private static class writeVLdata_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_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, writeVLdata_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 getImageListPermissionWrite_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("getImageListPermissionWrite_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_args.class, metaDataMap); + } + + public getImageListPermissionWrite_args() { + } + + public getImageListPermissionWrite_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionWrite_args deepCopy() { + return new getImageListPermissionWrite_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageListPermissionWrite_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionWrite_args) + return this.equals((getImageListPermissionWrite_args)that); + return false; + } + + public boolean equals(getImageListPermissionWrite_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionWrite_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsStandardScheme getScheme() { + return new getImageListPermissionWrite_argsStandardScheme(); + } + } + + private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsTupleScheme getScheme() { + return new getImageListPermissionWrite_argsTupleScheme(); + } + } + + private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageListPermissionWrite_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("getImageListPermissionWrite_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 getImageListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_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(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); + } + + public getImageListPermissionWrite_result() { + } + + public getImageListPermissionWrite_result( + List success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageListPermissionWrite_result deepCopy() { + return new getImageListPermissionWrite_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(Image elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getImageListPermissionWrite_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(); + } + + /** 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 getImageListPermissionWrite_result) + return this.equals((getImageListPermissionWrite_result)that); + return false; + } + + public boolean equals(getImageListPermissionWrite_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionWrite_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("getImageListPermissionWrite_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultStandardScheme getScheme() { + return new getImageListPermissionWrite_resultStandardScheme(); + } + } + + private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.success = new ArrayList(_list0.size); + for (int _i1 = 0; _i1 < _list0.size; ++_i1) + { + Image _elem2; + _elem2 = new Image(); + _elem2.read(iprot); + struct.success.add(_elem2); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter3 : struct.success) + { + _iter3.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultTupleScheme getScheme() { + return new getImageListPermissionWrite_resultTupleScheme(); + } + } + + private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Image _iter4 : struct.success) + { + _iter4.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_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 _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list5.size); + for (int _i6 = 0; _i6 < _list5.size; ++_i6) + { + Image _elem7; + _elem7 = new Image(); + _elem7.read(iprot); + struct.success.add(_elem7); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class getImageListPermissionRead_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("getImageListPermissionRead_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_args.class, metaDataMap); + } + + public getImageListPermissionRead_args() { + } + + public getImageListPermissionRead_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionRead_args(getImageListPermissionRead_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionRead_args deepCopy() { + return new getImageListPermissionRead_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageListPermissionRead_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionRead_args) + return this.equals((getImageListPermissionRead_args)that); + return false; + } + + public boolean equals(getImageListPermissionRead_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionRead_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsStandardScheme getScheme() { + return new getImageListPermissionRead_argsStandardScheme(); + } + } + + private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsTupleScheme getScheme() { + return new getImageListPermissionRead_argsTupleScheme(); + } + } + + private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageListPermissionRead_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("getImageListPermissionRead_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 getImageListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_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(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); + } + + public getImageListPermissionRead_result() { + } + + public getImageListPermissionRead_result( + List success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionRead_result(getImageListPermissionRead_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageListPermissionRead_result deepCopy() { + return new getImageListPermissionRead_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(Image elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getImageListPermissionRead_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(); + } + + /** 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 getImageListPermissionRead_result) + return this.equals((getImageListPermissionRead_result)that); + return false; + } + + public boolean equals(getImageListPermissionRead_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionRead_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("getImageListPermissionRead_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultStandardScheme getScheme() { + return new getImageListPermissionRead_resultStandardScheme(); + } + } + + private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); + struct.success = new ArrayList(_list8.size); + for (int _i9 = 0; _i9 < _list8.size; ++_i9) + { + Image _elem10; + _elem10 = new Image(); + _elem10.read(iprot); + struct.success.add(_elem10); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter11 : struct.success) + { + _iter11.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultTupleScheme getScheme() { + return new getImageListPermissionRead_resultTupleScheme(); + } + } + + private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Image _iter12 : struct.success) + { + _iter12.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_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 _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list13.size); + for (int _i14 = 0; _i14 < _list13.size; ++_i14) + { + Image _elem15; + _elem15 = new Image(); + _elem15.read(iprot); + struct.success.add(_elem15); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class getImageListPermissionLink_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("getImageListPermissionLink_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_args.class, metaDataMap); + } + + public getImageListPermissionLink_args() { + } + + public getImageListPermissionLink_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionLink_args(getImageListPermissionLink_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionLink_args deepCopy() { + return new getImageListPermissionLink_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageListPermissionLink_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionLink_args) + return this.equals((getImageListPermissionLink_args)that); + return false; + } + + public boolean equals(getImageListPermissionLink_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionLink_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsStandardScheme getScheme() { + return new getImageListPermissionLink_argsStandardScheme(); + } + } + + private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsTupleScheme getScheme() { + return new getImageListPermissionLink_argsTupleScheme(); + } + } + + private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageListPermissionLink_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("getImageListPermissionLink_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 getImageListPermissionLink_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_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(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.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, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); } - public writeVLdata_result() { + public getImageListPermissionLink_result() { } - public writeVLdata_result( - boolean success) + public getImageListPermissionLink_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeVLdata_result(writeVLdata_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getImageListPermissionLink_result(getImageListPermissionLink_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } } - public writeVLdata_result deepCopy() { - return new writeVLdata_result(this); + public getImageListPermissionLink_result deepCopy() { + return new getImageListPermissionLink_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(Image elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public writeVLdata_result setSuccess(boolean success) { + public getImageListPermissionLink_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) { @@ -9574,7 +12220,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -9584,7 +12230,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -9607,21 +12253,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeVLdata_result) - return this.equals((writeVLdata_result)that); + if (that instanceof getImageListPermissionLink_result) + return this.equals((getImageListPermissionLink_result)that); return false; } - public boolean equals(writeVLdata_result that) { + public boolean equals(getImageListPermissionLink_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; } @@ -9634,7 +12280,7 @@ public class Server { } @Override - public int compareTo(writeVLdata_result other) { + public int compareTo(getImageListPermissionLink_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -9668,11 +12314,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeVLdata_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionLink_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(); @@ -9693,23 +12343,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 writeVLdata_resultStandardSchemeFactory implements SchemeFactory { - public writeVLdata_resultStandardScheme getScheme() { - return new writeVLdata_resultStandardScheme(); + private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultStandardScheme getScheme() { + return new getImageListPermissionLink_resultStandardScheme(); } } - private static class writeVLdata_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9720,8 +12368,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 _list16 = iprot.readListBegin(); + struct.success = new ArrayList(_list16.size); + for (int _i17 = 0; _i17 < _list16.size; ++_i17) + { + Image _elem18; + _elem18 = new Image(); + _elem18.read(iprot); + struct.success.add(_elem18); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -9738,13 +12397,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_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 (Image _iter19 : struct.success) + { + _iter19.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9753,16 +12419,16 @@ public class Server { } - private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory { - public writeVLdata_resultTupleScheme getScheme() { - return new writeVLdata_resultTupleScheme(); + private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultTupleScheme getScheme() { + return new getImageListPermissionLink_resultTupleScheme(); } } - private static class writeVLdata_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -9770,16 +12436,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Image _iter20 : struct.success) + { + _iter20.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_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 _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list21.size); + for (int _i22 = 0; _i22 < _list21.size; ++_i22) + { + Image _elem23; + _elem23 = new Image(); + _elem23.read(iprot); + struct.success.add(_elem23); + } + } struct.setSuccessIsSet(true); } } @@ -9787,22 +12469,20 @@ public class Server { } - public static class getImageListPermissionWrite_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("getImageListPermissionWrite_args"); + public static class getLectureList_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("getLectureList_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } - public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"); +; private static final Map byName = new HashMap(); @@ -9817,8 +12497,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; default: return null; } @@ -9857,87 +12535,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.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(getImageListPermissionWrite_args.class, metaDataMap); - } - - public getImageListPermissionWrite_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public getImageListPermissionWrite_args( - String userID) - { - this(); - this.userID = userID; + public getLectureList_args() { } /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public getLectureList_args(getLectureList_args other) { } - public getImageListPermissionWrite_args deepCopy() { - return new getImageListPermissionWrite_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { - this.userID = null; - } - - public String getUserID() { - return this.userID; - } - - public getImageListPermissionWrite_args setUserID(String userID) { - this.userID = userID; - return this; - } - - public void unsetUserID() { - this.userID = null; - } - - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; - } - - public void setUserIDIsSet(boolean value) { - if (!value) { - this.userID = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: - if (value == null) { - unsetUserID(); - } else { - setUserID((String)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - } throw new IllegalStateException(); } @@ -9949,8 +12577,6 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); } throw new IllegalStateException(); } @@ -9959,24 +12585,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_args) - return this.equals((getImageListPermissionWrite_args)that); + if (that instanceof getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(getImageListPermissionWrite_args that) { + public boolean equals(getLectureList_args that) { if (that == null) return false; - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) - return false; - } - return true; } @@ -9986,23 +12603,13 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_args other) { + public int compareTo(getLectureList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -10020,16 +12627,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { - sb.append("null"); - } else { - sb.append(this.userID); - } - first = false; sb.append(")"); return sb.toString(); } @@ -10055,15 +12655,15 @@ public class Server { } } - private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsStandardScheme getScheme() { - return new getImageListPermissionWrite_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10073,14 +12673,6 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10092,67 +12684,49 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsTupleScheme getScheme() { - return new getImageListPermissionWrite_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } } } } - public static class getImageListPermissionWrite_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("getImageListPermissionWrite_result"); + public static class getLectureList_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("getLectureList_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 getImageListPermissionWrite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); } - public List 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 { @@ -10218,16 +12792,16 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } - public getImageListPermissionWrite_result() { + public getLectureList_result() { } - public getImageListPermissionWrite_result( - List success) + public getLectureList_result( + List success) { this(); this.success = success; @@ -10236,18 +12810,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + public getLectureList_result(getLectureList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Image other_element : other.success) { - __this__success.add(new Image(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Lecture other_element : other.success) { + __this__success.add(new Lecture(other_element)); } this.success = __this__success; } } - public getImageListPermissionWrite_result deepCopy() { - return new getImageListPermissionWrite_result(this); + public getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override @@ -10259,22 +12833,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Image elem) { + public void addToSuccess(Lecture elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getImageListPermissionWrite_result setSuccess(List success) { + public getLectureList_result setSuccess(List success) { this.success = success; return this; } @@ -10300,7 +12874,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -10333,12 +12907,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_result) - return this.equals((getImageListPermissionWrite_result)that); + if (that instanceof getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(getImageListPermissionWrite_result that) { + public boolean equals(getLectureList_result that) { if (that == null) return false; @@ -10360,7 +12934,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10394,7 +12968,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_result("); + StringBuilder sb = new StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -10429,15 +13003,15 @@ public class Server { } } - private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultStandardScheme getScheme() { - return new getImageListPermissionWrite_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10450,14 +13024,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.success = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - Image _elem2; - _elem2 = new Image(); - _elem2.read(iprot); - struct.success.add(_elem2); + Lecture _elem26; + _elem26 = new Lecture(); + _elem26.read(iprot); + struct.success.add(_elem26); } iprot.readListEnd(); } @@ -10477,7 +13051,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10485,9 +13059,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 (Image _iter3 : struct.success) + for (Lecture _iter27 : struct.success) { - _iter3.write(oprot); + _iter27.write(oprot); } oprot.writeListEnd(); } @@ -10499,16 +13073,16 @@ public class Server { } - private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultTupleScheme getScheme() { - return new getImageListPermissionWrite_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -10518,28 +13092,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter4 : struct.success) + for (Lecture _iter28 : struct.success) { - _iter4.write(oprot); + _iter28.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_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 _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) { - Image _elem7; - _elem7 = new Image(); - _elem7.read(iprot); - struct.success.add(_elem7); + Lecture _elem31; + _elem31 = new Lecture(); + _elem31.read(iprot); + struct.success.add(_elem31); } } struct.setSuccessIsSet(true); @@ -10549,15 +13123,15 @@ public class Server { } - public static class getImageListPermissionRead_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("getImageListPermissionRead_args"); + public static class getLectureListPermissionRead_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("getLectureListPermissionRead_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_argsTupleSchemeFactory()); } public String userID; // required @@ -10627,13 +13201,13 @@ public class Server { 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(getImageListPermissionRead_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_args.class, metaDataMap); } - public getImageListPermissionRead_args() { + public getLectureListPermissionRead_args() { } - public getImageListPermissionRead_args( + public getLectureListPermissionRead_args( String userID) { this(); @@ -10643,14 +13217,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionRead_args(getImageListPermissionRead_args other) { + public getLectureListPermissionRead_args(getLectureListPermissionRead_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getImageListPermissionRead_args deepCopy() { - return new getImageListPermissionRead_args(this); + public getLectureListPermissionRead_args deepCopy() { + return new getLectureListPermissionRead_args(this); } @Override @@ -10662,7 +13236,7 @@ public class Server { return this.userID; } - public getImageListPermissionRead_args setUserID(String userID) { + public getLectureListPermissionRead_args setUserID(String userID) { this.userID = userID; return this; } @@ -10721,12 +13295,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_args) - return this.equals((getImageListPermissionRead_args)that); + if (that instanceof getLectureListPermissionRead_args) + return this.equals((getLectureListPermissionRead_args)that); return false; } - public boolean equals(getImageListPermissionRead_args that) { + public boolean equals(getLectureListPermissionRead_args that) { if (that == null) return false; @@ -10748,7 +13322,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_args other) { + public int compareTo(getLectureListPermissionRead_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10782,7 +13356,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_args("); boolean first = true; sb.append("userID:"); @@ -10817,15 +13391,15 @@ public class Server { } } - private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsStandardScheme getScheme() { - return new getImageListPermissionRead_argsStandardScheme(); + private static class getLectureListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsStandardScheme getScheme() { + return new getLectureListPermissionRead_argsStandardScheme(); } } - private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10854,7 +13428,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10869,16 +13443,16 @@ public class Server { } - private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsTupleScheme getScheme() { - return new getImageListPermissionRead_argsTupleScheme(); + private static class getLectureListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_argsTupleScheme getScheme() { + return new getLectureListPermissionRead_argsTupleScheme(); } } - private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -10891,7 +13465,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -10903,18 +13477,18 @@ public class Server { } - public static class getImageListPermissionRead_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("getImageListPermissionRead_result"); + public static class getLectureListPermissionRead_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("getLectureListPermissionRead_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 getImageListPermissionRead_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionRead_resultTupleSchemeFactory()); } - public List 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 { @@ -10980,16 +13554,16 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionRead_result.class, metaDataMap); } - public getImageListPermissionRead_result() { + public getLectureListPermissionRead_result() { } - public getImageListPermissionRead_result( - List success) + public getLectureListPermissionRead_result( + List success) { this(); this.success = success; @@ -10998,18 +13572,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionRead_result(getImageListPermissionRead_result other) { + public getLectureListPermissionRead_result(getLectureListPermissionRead_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Image other_element : other.success) { - __this__success.add(new Image(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Lecture other_element : other.success) { + __this__success.add(new Lecture(other_element)); } this.success = __this__success; } } - public getImageListPermissionRead_result deepCopy() { - return new getImageListPermissionRead_result(this); + public getLectureListPermissionRead_result deepCopy() { + return new getLectureListPermissionRead_result(this); } @Override @@ -11021,22 +13595,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Image elem) { + public void addToSuccess(Lecture elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getImageListPermissionRead_result setSuccess(List success) { + public getLectureListPermissionRead_result setSuccess(List success) { this.success = success; return this; } @@ -11062,7 +13636,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -11095,12 +13669,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_result) - return this.equals((getImageListPermissionRead_result)that); + if (that instanceof getLectureListPermissionRead_result) + return this.equals((getLectureListPermissionRead_result)that); return false; } - public boolean equals(getImageListPermissionRead_result that) { + public boolean equals(getLectureListPermissionRead_result that) { if (that == null) return false; @@ -11122,7 +13696,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_result other) { + public int compareTo(getLectureListPermissionRead_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11156,7 +13730,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionRead_result("); boolean first = true; sb.append("success:"); @@ -11191,15 +13765,15 @@ public class Server { } } - private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultStandardScheme getScheme() { - return new getImageListPermissionRead_resultStandardScheme(); + private static class getLectureListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultStandardScheme getScheme() { + return new getLectureListPermissionRead_resultStandardScheme(); } } - private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionRead_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11212,14 +13786,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.success = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.success = new ArrayList(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Image _elem10; - _elem10 = new Image(); - _elem10.read(iprot); - struct.success.add(_elem10); + Lecture _elem34; + _elem34 = new Lecture(); + _elem34.read(iprot); + struct.success.add(_elem34); } iprot.readListEnd(); } @@ -11239,7 +13813,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11247,9 +13821,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 (Image _iter11 : struct.success) + for (Lecture _iter35 : struct.success) { - _iter11.write(oprot); + _iter35.write(oprot); } oprot.writeListEnd(); } @@ -11261,16 +13835,16 @@ public class Server { } - private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultTupleScheme getScheme() { - return new getImageListPermissionRead_resultTupleScheme(); + private static class getLectureListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionRead_resultTupleScheme getScheme() { + return new getLectureListPermissionRead_resultTupleScheme(); } } - private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionRead_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -11280,28 +13854,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter12 : struct.success) + for (Lecture _iter36 : struct.success) { - _iter12.write(oprot); + _iter36.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionRead_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 _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list37.size); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Image _elem15; - _elem15 = new Image(); - _elem15.read(iprot); - struct.success.add(_elem15); + Lecture _elem39; + _elem39 = new Lecture(); + _elem39.read(iprot); + struct.success.add(_elem39); } } struct.setSuccessIsSet(true); @@ -11311,15 +13885,15 @@ public class Server { } - public static class getImageListPermissionLink_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("getImageListPermissionLink_args"); + public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_argsTupleSchemeFactory()); } public String userID; // required @@ -11389,13 +13963,13 @@ public class Server { 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(getImageListPermissionLink_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_args.class, metaDataMap); } - public getImageListPermissionLink_args() { + public getLectureListPermissionWrite_args() { } - public getImageListPermissionLink_args( + public getLectureListPermissionWrite_args( String userID) { this(); @@ -11405,14 +13979,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionLink_args(getImageListPermissionLink_args other) { + public getLectureListPermissionWrite_args(getLectureListPermissionWrite_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getImageListPermissionLink_args deepCopy() { - return new getImageListPermissionLink_args(this); + public getLectureListPermissionWrite_args deepCopy() { + return new getLectureListPermissionWrite_args(this); } @Override @@ -11424,7 +13998,7 @@ public class Server { return this.userID; } - public getImageListPermissionLink_args setUserID(String userID) { + public getLectureListPermissionWrite_args setUserID(String userID) { this.userID = userID; return this; } @@ -11483,12 +14057,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_args) - return this.equals((getImageListPermissionLink_args)that); + if (that instanceof getLectureListPermissionWrite_args) + return this.equals((getLectureListPermissionWrite_args)that); return false; } - public boolean equals(getImageListPermissionLink_args that) { + public boolean equals(getLectureListPermissionWrite_args that) { if (that == null) return false; @@ -11510,7 +14084,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_args other) { + public int compareTo(getLectureListPermissionWrite_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11544,7 +14118,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_args("); boolean first = true; sb.append("userID:"); @@ -11579,15 +14153,15 @@ public class Server { } } - private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsStandardScheme getScheme() { - return new getImageListPermissionLink_argsStandardScheme(); + private static class getLectureListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsStandardScheme getScheme() { + return new getLectureListPermissionWrite_argsStandardScheme(); } } - private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11616,7 +14190,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11631,16 +14205,16 @@ public class Server { } - private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsTupleScheme getScheme() { - return new getImageListPermissionLink_argsTupleScheme(); + private static class getLectureListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_argsTupleScheme getScheme() { + return new getLectureListPermissionWrite_argsTupleScheme(); } } - private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -11653,7 +14227,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -11665,18 +14239,18 @@ public class Server { } - public static class getImageListPermissionLink_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("getImageListPermissionLink_result"); + public static class getLectureListPermissionWrite_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("getLectureListPermissionWrite_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 getImageListPermissionLink_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionWrite_resultTupleSchemeFactory()); } - public List 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 { @@ -11742,16 +14316,16 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionWrite_result.class, metaDataMap); } - public getImageListPermissionLink_result() { + public getLectureListPermissionWrite_result() { } - public getImageListPermissionLink_result( - List success) + public getLectureListPermissionWrite_result( + List success) { this(); this.success = success; @@ -11760,18 +14334,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionLink_result(getImageListPermissionLink_result other) { + public getLectureListPermissionWrite_result(getLectureListPermissionWrite_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Image other_element : other.success) { - __this__success.add(new Image(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Lecture other_element : other.success) { + __this__success.add(new Lecture(other_element)); } this.success = __this__success; } } - public getImageListPermissionLink_result deepCopy() { - return new getImageListPermissionLink_result(this); + public getLectureListPermissionWrite_result deepCopy() { + return new getLectureListPermissionWrite_result(this); } @Override @@ -11783,22 +14357,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Image elem) { + public void addToSuccess(Lecture elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getImageListPermissionLink_result setSuccess(List success) { + public getLectureListPermissionWrite_result setSuccess(List success) { this.success = success; return this; } @@ -11824,7 +14398,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -11857,12 +14431,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_result) - return this.equals((getImageListPermissionLink_result)that); + if (that instanceof getLectureListPermissionWrite_result) + return this.equals((getLectureListPermissionWrite_result)that); return false; } - public boolean equals(getImageListPermissionLink_result that) { + public boolean equals(getLectureListPermissionWrite_result that) { if (that == null) return false; @@ -11884,7 +14458,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_result other) { + public int compareTo(getLectureListPermissionWrite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11918,7 +14492,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionWrite_result("); boolean first = true; sb.append("success:"); @@ -11953,15 +14527,15 @@ public class Server { } } - private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultStandardScheme getScheme() { - return new getImageListPermissionLink_resultStandardScheme(); + private static class getLectureListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultStandardScheme getScheme() { + return new getLectureListPermissionWrite_resultStandardScheme(); } } - private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionWrite_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11974,14 +14548,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.success = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - Image _elem18; - _elem18 = new Image(); - _elem18.read(iprot); - struct.success.add(_elem18); + Lecture _elem42; + _elem42 = new Lecture(); + _elem42.read(iprot); + struct.success.add(_elem42); } iprot.readListEnd(); } @@ -12001,7 +14575,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12009,9 +14583,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 (Image _iter19 : struct.success) + for (Lecture _iter43 : struct.success) { - _iter19.write(oprot); + _iter43.write(oprot); } oprot.writeListEnd(); } @@ -12023,16 +14597,16 @@ public class Server { } - private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultTupleScheme getScheme() { - return new getImageListPermissionLink_resultTupleScheme(); + private static class getLectureListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionWrite_resultTupleScheme getScheme() { + return new getLectureListPermissionWrite_resultTupleScheme(); } } - private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionWrite_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -12042,28 +14616,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter20 : struct.success) + for (Lecture _iter44 : struct.success) { - _iter20.write(oprot); + _iter44.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionWrite_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 _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - Image _elem23; - _elem23 = new Image(); - _elem23.read(iprot); - struct.success.add(_elem23); + Lecture _elem47; + _elem47 = new Lecture(); + _elem47.read(iprot); + struct.success.add(_elem47); } } struct.setSuccessIsSet(true); @@ -12073,20 +14647,22 @@ public class Server { } - public static class getLectureList_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("getLectureList_args"); + public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_args"); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_argsTupleSchemeFactory()); } + public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + USER_ID((short)1, "userID"); private static final Map byName = new HashMap(); @@ -12101,6 +14677,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // USER_ID + return USER_ID; default: return null; } @@ -12139,37 +14717,87 @@ 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.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(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_args.class, metaDataMap); } - public getLectureList_args() { + public getLectureListPermissionAdmin_args() { + } + + public getLectureListPermissionAdmin_args( + String userID) + { + this(); + this.userID = userID; } /** * Performs a deep copy on other. */ - public getLectureList_args(getLectureList_args other) { + public getLectureListPermissionAdmin_args(getLectureListPermissionAdmin_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } } - public getLectureList_args deepCopy() { - return new getLectureList_args(this); + public getLectureListPermissionAdmin_args deepCopy() { + return new getLectureListPermissionAdmin_args(this); } @Override public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getLectureListPermissionAdmin_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case USER_ID: + return getUserID(); + } throw new IllegalStateException(); } @@ -12181,6 +14809,8 @@ public class Server { } switch (field) { + case USER_ID: + return isSetUserID(); } throw new IllegalStateException(); } @@ -12189,15 +14819,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_args) - return this.equals((getLectureList_args)that); + if (that instanceof getLectureListPermissionAdmin_args) + return this.equals((getLectureListPermissionAdmin_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(getLectureListPermissionAdmin_args that) { if (that == null) return false; + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + return true; } @@ -12207,13 +14846,23 @@ public class Server { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(getLectureListPermissionAdmin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -12231,9 +14880,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_args("); boolean first = true; + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; sb.append(")"); return sb.toString(); } @@ -12259,15 +14915,15 @@ public class Server { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class getLectureListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsStandardScheme getScheme() { + return new getLectureListPermissionAdmin_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12277,6 +14933,14 @@ public class Server { break; } switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12288,46 +14952,64 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class getLectureListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_argsTupleScheme getScheme() { + return new getLectureListPermissionAdmin_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } } } } - public static class getLectureList_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("getLectureList_result"); + public static class getLectureListPermissionAdmin_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("getLectureListPermissionAdmin_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 getLectureList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureListPermissionAdmin_resultTupleSchemeFactory()); } public List success; // required @@ -12398,13 +15080,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, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureListPermissionAdmin_result.class, metaDataMap); } - public getLectureList_result() { + public getLectureListPermissionAdmin_result() { } - public getLectureList_result( + public getLectureListPermissionAdmin_result( List success) { this(); @@ -12414,7 +15096,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureList_result(getLectureList_result other) { + public getLectureListPermissionAdmin_result(getLectureListPermissionAdmin_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Lecture other_element : other.success) { @@ -12424,8 +15106,8 @@ public class Server { } } - public getLectureList_result deepCopy() { - return new getLectureList_result(this); + public getLectureListPermissionAdmin_result deepCopy() { + return new getLectureListPermissionAdmin_result(this); } @Override @@ -12452,7 +15134,7 @@ public class Server { return this.success; } - public getLectureList_result setSuccess(List success) { + public getLectureListPermissionAdmin_result setSuccess(List success) { this.success = success; return this; } @@ -12511,12 +15193,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_result) - return this.equals((getLectureList_result)that); + if (that instanceof getLectureListPermissionAdmin_result) + return this.equals((getLectureListPermissionAdmin_result)that); return false; } - public boolean equals(getLectureList_result that) { + public boolean equals(getLectureListPermissionAdmin_result that) { if (that == null) return false; @@ -12538,7 +15220,7 @@ public class Server { } @Override - public int compareTo(getLectureList_result other) { + public int compareTo(getLectureListPermissionAdmin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12572,7 +15254,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + StringBuilder sb = new StringBuilder("getLectureListPermissionAdmin_result("); boolean first = true; sb.append("success:"); @@ -12607,15 +15289,15 @@ public class Server { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class getLectureListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultStandardScheme getScheme() { + return new getLectureListPermissionAdmin_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getLectureListPermissionAdmin_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12628,14 +15310,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); + struct.success = new ArrayList(_list48.size); + for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Lecture _elem26; - _elem26 = new Lecture(); - _elem26.read(iprot); - struct.success.add(_elem26); + Lecture _elem50; + _elem50 = new Lecture(); + _elem50.read(iprot); + struct.success.add(_elem50); } iprot.readListEnd(); } @@ -12655,7 +15337,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12663,9 +15345,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter27 : struct.success) + for (Lecture _iter51 : struct.success) { - _iter27.write(oprot); + _iter51.write(oprot); } oprot.writeListEnd(); } @@ -12677,16 +15359,16 @@ public class Server { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class getLectureListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getLectureListPermissionAdmin_resultTupleScheme getScheme() { + return new getLectureListPermissionAdmin_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getLectureListPermissionAdmin_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -12696,28 +15378,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter28 : struct.success) + for (Lecture _iter52 : struct.success) { - _iter28.write(oprot); + _iter52.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureListPermissionAdmin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list53.size); + for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Lecture _elem31; - _elem31 = new Lecture(); - _elem31.read(iprot); - struct.success.add(_elem31); + Lecture _elem55; + _elem55 = new Lecture(); + _elem55.read(iprot); + struct.success.add(_elem55); } } struct.setSuccessIsSet(true); @@ -13279,13 +15961,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); + struct.success = new ArrayList(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - String _elem34; - _elem34 = iprot.readString(); - struct.success.add(_elem34); + String _elem58; + _elem58 = iprot.readString(); + struct.success.add(_elem58); } iprot.readListEnd(); } @@ -13313,9 +15995,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter35 : struct.success) + for (String _iter59 : struct.success) { - oprot.writeString(_iter35); + oprot.writeString(_iter59); } oprot.writeListEnd(); } @@ -13346,9 +16028,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter36 : struct.success) + for (String _iter60 : struct.success) { - oprot.writeString(_iter36); + oprot.writeString(_iter60); } } } @@ -13360,13 +16042,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - String _elem39; - _elem39 = iprot.readString(); - struct.success.add(_elem39); + String _elem63; + _elem63 = iprot.readString(); + struct.success.add(_elem63); } } struct.setSuccessIsSet(true); @@ -13928,13 +16610,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); + struct.success = new ArrayList(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - String _elem42; - _elem42 = iprot.readString(); - struct.success.add(_elem42); + String _elem66; + _elem66 = iprot.readString(); + struct.success.add(_elem66); } iprot.readListEnd(); } @@ -13962,9 +16644,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter43 : struct.success) + for (String _iter67 : struct.success) { - oprot.writeString(_iter43); + oprot.writeString(_iter67); } oprot.writeListEnd(); } @@ -13995,9 +16677,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter44 : struct.success) + for (String _iter68 : struct.success) { - oprot.writeString(_iter44); + oprot.writeString(_iter68); } } } @@ -14009,13 +16691,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list69.size); + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - String _elem47; - _elem47 = iprot.readString(); - struct.success.add(_elem47); + String _elem71; + _elem71 = iprot.readString(); + struct.success.add(_elem71); } } struct.setSuccessIsSet(true); @@ -14782,15 +17464,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map48.size); - for (int _i49 = 0; _i49 < _map48.size; ++_i49) + org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map72.size); + for (int _i73 = 0; _i73 < _map72.size; ++_i73) { - String _key50; - String _val51; - _key50 = iprot.readString(); - _val51 = iprot.readString(); - struct.success.put(_key50, _val51); + String _key74; + String _val75; + _key74 = iprot.readString(); + _val75 = iprot.readString(); + struct.success.put(_key74, _val75); } iprot.readMapEnd(); } @@ -14818,10 +17500,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter52 : struct.success.entrySet()) + for (Map.Entry _iter76 : struct.success.entrySet()) { - oprot.writeString(_iter52.getKey()); - oprot.writeString(_iter52.getValue()); + oprot.writeString(_iter76.getKey()); + oprot.writeString(_iter76.getValue()); } oprot.writeMapEnd(); } @@ -14852,10 +17534,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter53 : struct.success.entrySet()) + for (Map.Entry _iter77 : struct.success.entrySet()) { - oprot.writeString(_iter53.getKey()); - oprot.writeString(_iter53.getValue()); + oprot.writeString(_iter77.getKey()); + oprot.writeString(_iter77.getValue()); } } } @@ -14867,15 +17549,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map54.size); - for (int _i55 = 0; _i55 < _map54.size; ++_i55) + org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map78.size); + for (int _i79 = 0; _i79 < _map78.size; ++_i79) { - String _key56; - String _val57; - _key56 = iprot.readString(); - _val57 = iprot.readString(); - struct.success.put(_key56, _val57); + String _key80; + String _val81; + _key80 = iprot.readString(); + _val81 = iprot.readString(); + struct.success.put(_key80, _val81); } } struct.setSuccessIsSet(true); @@ -19356,15 +22038,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map58.size); - for (int _i59 = 0; _i59 < _map58.size; ++_i59) + org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map82.size); + for (int _i83 = 0; _i83 < _map82.size; ++_i83) { - String _key60; - String _val61; - _key60 = iprot.readString(); - _val61 = iprot.readString(); - struct.success.put(_key60, _val61); + String _key84; + String _val85; + _key84 = iprot.readString(); + _val85 = iprot.readString(); + struct.success.put(_key84, _val85); } iprot.readMapEnd(); } @@ -19392,10 +22074,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter62 : struct.success.entrySet()) + for (Map.Entry _iter86 : struct.success.entrySet()) { - oprot.writeString(_iter62.getKey()); - oprot.writeString(_iter62.getValue()); + oprot.writeString(_iter86.getKey()); + oprot.writeString(_iter86.getValue()); } oprot.writeMapEnd(); } @@ -19426,10 +22108,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter63 : struct.success.entrySet()) + for (Map.Entry _iter87 : struct.success.entrySet()) { - oprot.writeString(_iter63.getKey()); - oprot.writeString(_iter63.getValue()); + oprot.writeString(_iter87.getKey()); + oprot.writeString(_iter87.getValue()); } } } @@ -19441,15 +22123,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map64.size); - for (int _i65 = 0; _i65 < _map64.size; ++_i65) + org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map88.size); + for (int _i89 = 0; _i89 < _map88.size; ++_i89) { - String _key66; - String _val67; - _key66 = iprot.readString(); - _val67 = iprot.readString(); - struct.success.put(_key66, _val67); + String _key90; + String _val91; + _key90 = iprot.readString(); + _val91 = iprot.readString(); + struct.success.put(_key90, _val91); } } struct.setSuccessIsSet(true); @@ -20116,15 +22798,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map68.size); - for (int _i69 = 0; _i69 < _map68.size; ++_i69) + org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map92.size); + for (int _i93 = 0; _i93 < _map92.size; ++_i93) { - String _key70; - String _val71; - _key70 = iprot.readString(); - _val71 = iprot.readString(); - struct.success.put(_key70, _val71); + String _key94; + String _val95; + _key94 = iprot.readString(); + _val95 = iprot.readString(); + struct.success.put(_key94, _val95); } iprot.readMapEnd(); } @@ -20152,10 +22834,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter72 : struct.success.entrySet()) + for (Map.Entry _iter96 : struct.success.entrySet()) { - oprot.writeString(_iter72.getKey()); - oprot.writeString(_iter72.getValue()); + oprot.writeString(_iter96.getKey()); + oprot.writeString(_iter96.getValue()); } oprot.writeMapEnd(); } @@ -20186,10 +22868,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter73 : struct.success.entrySet()) + for (Map.Entry _iter97 : struct.success.entrySet()) { - oprot.writeString(_iter73.getKey()); - oprot.writeString(_iter73.getValue()); + oprot.writeString(_iter97.getKey()); + oprot.writeString(_iter97.getValue()); } } } @@ -20201,15 +22883,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map74.size); - for (int _i75 = 0; _i75 < _map74.size; ++_i75) + org.apache.thrift.protocol.TMap _map98 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map98.size); + for (int _i99 = 0; _i99 < _map98.size; ++_i99) { - String _key76; - String _val77; - _key76 = iprot.readString(); - _val77 = iprot.readString(); - struct.success.put(_key76, _val77); + String _key100; + String _val101; + _key100 = iprot.readString(); + _val101 = iprot.readString(); + struct.success.put(_key100, _val101); } } struct.setSuccessIsSet(true); @@ -32922,14 +35604,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); - struct.success = new ArrayList(_list78.size); - for (int _i79 = 0; _i79 < _list78.size; ++_i79) + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); + struct.success = new ArrayList(_list102.size); + for (int _i103 = 0; _i103 < _list102.size; ++_i103) { - Person _elem80; - _elem80 = new Person(); - _elem80.read(iprot); - struct.success.add(_elem80); + Person _elem104; + _elem104 = new Person(); + _elem104.read(iprot); + struct.success.add(_elem104); } iprot.readListEnd(); } @@ -32957,9 +35639,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 _iter81 : struct.success) + for (Person _iter105 : struct.success) { - _iter81.write(oprot); + _iter105.write(oprot); } oprot.writeListEnd(); } @@ -32990,9 +35672,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter82 : struct.success) + for (Person _iter106 : struct.success) { - _iter82.write(oprot); + _iter106.write(oprot); } } } @@ -33004,14 +35686,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list83.size); - for (int _i84 = 0; _i84 < _list83.size; ++_i84) + 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) { - Person _elem85; - _elem85 = new Person(); - _elem85.read(iprot); - struct.success.add(_elem85); + Person _elem109; + _elem109 = new Person(); + _elem109.read(iprot); + struct.success.add(_elem109); } } struct.setSuccessIsSet(true); @@ -34972,14 +37654,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); - struct.success = new ArrayList(_list86.size); - for (int _i87 = 0; _i87 < _list86.size; ++_i87) + org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); + struct.success = new ArrayList(_list110.size); + for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - Person _elem88; - _elem88 = new Person(); - _elem88.read(iprot); - struct.success.add(_elem88); + Person _elem112; + _elem112 = new Person(); + _elem112.read(iprot); + struct.success.add(_elem112); } iprot.readListEnd(); } @@ -35007,9 +37689,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 _iter89 : struct.success) + for (Person _iter113 : struct.success) { - _iter89.write(oprot); + _iter113.write(oprot); } oprot.writeListEnd(); } @@ -35040,9 +37722,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter90 : struct.success) + for (Person _iter114 : struct.success) { - _iter90.write(oprot); + _iter114.write(oprot); } } } @@ -35054,14 +37736,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list91.size); - for (int _i92 = 0; _i92 < _list91.size; ++_i92) + 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 _elem93; - _elem93 = new Person(); - _elem93.read(iprot); - struct.success.add(_elem93); + Person _elem117; + _elem117 = new Person(); + _elem117.read(iprot); + struct.success.add(_elem117); } } struct.setSuccessIsSet(true); -- cgit v1.2.3-55-g7522