From 862f7f7fbea471e27375b3f8c6ccaca3b6ec8722 Mon Sep 17 00:00:00 2001 From: Nino Breuer Date: Mon, 17 Nov 2014 19:37:42 +0100 Subject: • fixed bug where the os name was not set to the correct value while editing an image --- .../src/main/java/server/generated/Server.java | 3538 ++++++++++++-------- 1 file changed, 2189 insertions(+), 1349 deletions(-) (limited to 'dozentenmodulserver/src/main/java/server/generated') diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index 81d3daae..fc1e7dae 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -118,6 +118,8 @@ public class Server { public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException; + public String getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -204,6 +206,8 @@ public class Server { public void deleteAllAdditionalLecturePermissions(String lectureID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getOsNameForGuestOs(String guestOS, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -1255,6 +1259,29 @@ public class Server { return; } + public String getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException + { + send_getOsNameForGuestOs(guestOS); + return recv_getOsNameForGuestOs(); + } + + public void send_getOsNameForGuestOs(String guestOS) throws org.apache.thrift.TException + { + getOsNameForGuestOs_args args = new getOsNameForGuestOs_args(); + args.setGuestOS(guestOS); + sendBase("getOsNameForGuestOs", args); + } + + public String recv_getOsNameForGuestOs() throws org.apache.thrift.TException + { + getOsNameForGuestOs_result result = new getOsNameForGuestOs_result(); + receiveBase(result, "getOsNameForGuestOs"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOsNameForGuestOs failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -2870,6 +2897,38 @@ public class Server { } } + public void getOsNameForGuestOs(String guestOS, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getOsNameForGuestOs_call method_call = new getOsNameForGuestOs_call(guestOS, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getOsNameForGuestOs_call extends org.apache.thrift.async.TAsyncMethodCall { + private String guestOS; + public getOsNameForGuestOs_call(String guestOS, 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.guestOS = guestOS; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOsNameForGuestOs", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getOsNameForGuestOs_args args = new getOsNameForGuestOs_args(); + args.setGuestOS(guestOS); + args.write(prot); + prot.writeMessageEnd(); + } + + public String 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_getOsNameForGuestOs(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -2924,6 +2983,7 @@ public class Server { processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture()); processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions()); processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions()); + processMap.put("getOsNameForGuestOs", new getOsNameForGuestOs()); return processMap; } @@ -3763,6 +3823,26 @@ public class Server { } } + public static class getOsNameForGuestOs extends org.apache.thrift.ProcessFunction { + public getOsNameForGuestOs() { + super("getOsNameForGuestOs"); + } + + public getOsNameForGuestOs_args getEmptyArgsInstance() { + return new getOsNameForGuestOs_args(); + } + + protected boolean isOneway() { + return false; + } + + public getOsNameForGuestOs_result getResult(I iface, getOsNameForGuestOs_args args) throws org.apache.thrift.TException { + getOsNameForGuestOs_result result = new getOsNameForGuestOs_result(); + result.success = iface.getOsNameForGuestOs(args.guestOS); + return result; + } + } + } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { @@ -3817,6 +3897,7 @@ public class Server { processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture()); processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions()); processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions()); + processMap.put("getOsNameForGuestOs", new getOsNameForGuestOs()); return processMap; } @@ -5924,270 +6005,73 @@ public class Server { } } - } - - public static class getFtpUser_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("getFtpUser_args"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getFtpUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getFtpUser_argsTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map 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) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFtpUser_args.class, metaDataMap); - } - - public getFtpUser_args() { - } - - /** - * Performs a deep copy on other. - */ - public getFtpUser_args(getFtpUser_args other) { - } - - public getFtpUser_args deepCopy() { - return new getFtpUser_args(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getFtpUser_args) - return this.equals((getFtpUser_args)that); - return false; - } - - public boolean equals(getFtpUser_args that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - return 0; - } - - @Override - public int compareTo(getFtpUser_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getFtpUser_args("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); + public static class getOsNameForGuestOs extends org.apache.thrift.AsyncProcessFunction { + public getOsNameForGuestOs() { + super("getOsNameForGuestOs"); } - } - private static class getFtpUser_argsStandardSchemeFactory implements SchemeFactory { - public getFtpUser_argsStandardScheme getScheme() { - return new getFtpUser_argsStandardScheme(); + public getOsNameForGuestOs_args getEmptyArgsInstance() { + return new getOsNameForGuestOs_args(); } - } - private static class getFtpUser_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_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; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + getOsNameForGuestOs_result result = new getOsNameForGuestOs_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(); } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getOsNameForGuestOs_result result = new getOsNameForGuestOs_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(); } - 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, getFtpUser_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class getFtpUser_argsTupleSchemeFactory implements SchemeFactory { - public getFtpUser_argsTupleScheme getScheme() { - return new getFtpUser_argsTupleScheme(); + }; } - } - - private static class getFtpUser_argsTupleScheme extends TupleScheme { - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + protected boolean isOneway() { + return false; } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + public void start(I iface, getOsNameForGuestOs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getOsNameForGuestOs(args.guestOS,resultHandler); } } } - public static class getFtpUser_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("getFtpUser_result"); + public static class getFtpUser_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("getFtpUser_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getFtpUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getFtpUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getFtpUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getFtpUser_argsTupleSchemeFactory()); } - public User 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(); @@ -6202,8 +6086,256 @@ public class Server { */ 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; + } + } + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFtpUser_args.class, metaDataMap); + } + + public getFtpUser_args() { + } + + /** + * Performs a deep copy on other. + */ + public getFtpUser_args(getFtpUser_args other) { + } + + public getFtpUser_args deepCopy() { + return new getFtpUser_args(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getFtpUser_args) + return this.equals((getFtpUser_args)that); + return false; + } + + public boolean equals(getFtpUser_args that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getFtpUser_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getFtpUser_args("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getFtpUser_argsStandardSchemeFactory implements SchemeFactory { + public getFtpUser_argsStandardScheme getScheme() { + return new getFtpUser_argsStandardScheme(); + } + } + + private static class getFtpUser_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_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) { + 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, getFtpUser_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getFtpUser_argsTupleSchemeFactory implements SchemeFactory { + public getFtpUser_argsTupleScheme getScheme() { + return new getFtpUser_argsTupleScheme(); + } + } + + private static class getFtpUser_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + public static class getFtpUser_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("getFtpUser_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getFtpUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getFtpUser_resultTupleSchemeFactory()); + } + + public User 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; } @@ -40224,11 +40356,790 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_result("); + StringBuilder sb = new StringBuilder("writeAdditionalLectureRights_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class writeAdditionalLectureRights_resultStandardSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultStandardScheme getScheme() { + return new writeAdditionalLectureRights_resultStandardScheme(); + } + } + + private static class writeAdditionalLectureRights_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeAdditionalLectureRights_resultTupleSchemeFactory implements SchemeFactory { + public writeAdditionalLectureRights_resultTupleScheme getScheme() { + return new writeAdditionalLectureRights_resultTupleScheme(); + } + } + + private static class writeAdditionalLectureRights_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class getAllOtherSatelliteUsers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); + } + + public List userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_args.class, metaDataMap); + } + + public getAllOtherSatelliteUsers_args() { + } + + public getAllOtherSatelliteUsers_args( + List userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { + if (other.isSetUserID()) { + List __this__userID = new ArrayList(other.userID); + this.userID = __this__userID; + } + } + + public getAllOtherSatelliteUsers_args deepCopy() { + return new getAllOtherSatelliteUsers_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public int getUserIDSize() { + return (this.userID == null) ? 0 : this.userID.size(); + } + + public java.util.Iterator getUserIDIterator() { + return (this.userID == null) ? null : this.userID.iterator(); + } + + public void addToUserID(String elem) { + if (this.userID == null) { + this.userID = new ArrayList(); + } + this.userID.add(elem); + } + + public List getUserID() { + return this.userID; + } + + public getAllOtherSatelliteUsers_args setUserID(List userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllOtherSatelliteUsers_args) + return this.equals((getAllOtherSatelliteUsers_args)that); + return false; + } + + public boolean equals(getAllOtherSatelliteUsers_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllOtherSatelliteUsers_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + 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("getAllOtherSatelliteUsers_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 getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_argsStandardScheme(); + } + } + + private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + 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.LIST) { + { + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.userID = new ArrayList(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) + { + String _elem128; + _elem128 = iprot.readString(); + struct.userID.add(_elem128); + } + iprot.readListEnd(); + } + 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, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); + for (String _iter129 : struct.userID) + { + oprot.writeString(_iter129); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_argsTupleScheme(); + } + } + + private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + { + oprot.writeI32(struct.userID.size()); + for (String _iter130 : struct.userID) + { + oprot.writeString(_iter130); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) + { + String _elem133; + _elem133 = iprot.readString(); + struct.userID.add(_elem133); + } + } + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getAllOtherSatelliteUsers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); + } + + 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, Person.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_result.class, metaDataMap); + } + + public getAllOtherSatelliteUsers_result() { + } + + public getAllOtherSatelliteUsers_result( + List success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } + this.success = __this__success; + } + } + + public getAllOtherSatelliteUsers_result deepCopy() { + return new getAllOtherSatelliteUsers_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Person elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getAllOtherSatelliteUsers_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 getAllOtherSatelliteUsers_result) + return this.equals((getAllOtherSatelliteUsers_result)that); + return false; + } + + public boolean equals(getAllOtherSatelliteUsers_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(getAllOtherSatelliteUsers_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("getAllOtherSatelliteUsers_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -40249,23 +41160,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 writeAdditionalLectureRights_resultStandardSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_resultStandardScheme getScheme() { - return new writeAdditionalLectureRights_resultStandardScheme(); + private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { + return new getAllOtherSatelliteUsers_resultStandardScheme(); } } - private static class writeAdditionalLectureRights_resultStandardScheme extends StandardScheme { + private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40276,8 +41185,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 _list134 = iprot.readListBegin(); + struct.success = new ArrayList(_list134.size); + for (int _i135 = 0; _i135 < _list134.size; ++_i135) + { + Person _elem136; + _elem136 = new Person(); + _elem136.read(iprot); + struct.success.add(_elem136); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -40294,13 +41214,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter137 : struct.success) + { + _iter137.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -40309,16 +41236,16 @@ public class Server { } - private static class writeAdditionalLectureRights_resultTupleSchemeFactory implements SchemeFactory { - public writeAdditionalLectureRights_resultTupleScheme getScheme() { - return new writeAdditionalLectureRights_resultTupleScheme(); + private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { + public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { + return new getAllOtherSatelliteUsers_resultTupleScheme(); } } - private static class writeAdditionalLectureRights_resultTupleScheme extends TupleScheme { + private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -40326,16 +41253,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Person _iter138 : struct.success) + { + _iter138.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeAdditionalLectureRights_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list139.size); + for (int _i140 = 0; _i140 < _list139.size; ++_i140) + { + Person _elem141; + _elem141 = new Person(); + _elem141.read(iprot); + struct.success.add(_elem141); + } + } struct.setSuccessIsSet(true); } } @@ -40343,22 +41286,25 @@ public class Server { } - public static class getAllOtherSatelliteUsers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_args"); + public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); } - public List userID; // required + public String userID; // required + public String imageID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"); + USER_ID((short)1, "userID"), + IMAGE_ID((short)2, "imageID"); private static final Map byName = new HashMap(); @@ -40375,6 +41321,8 @@ public class Server { switch(fieldId) { case 1: // USER_ID return USER_ID; + case 2: // IMAGE_ID + return IMAGE_ID; default: return null; } @@ -40419,61 +41367,52 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); } - public getAllOtherSatelliteUsers_args() { + public getPermissionForUserAndImage_args() { } - public getAllOtherSatelliteUsers_args( - List userID) + public getPermissionForUserAndImage_args( + String userID, + String imageID) { this(); this.userID = userID; + this.imageID = imageID; } /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_args(getAllOtherSatelliteUsers_args other) { + public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { if (other.isSetUserID()) { - List __this__userID = new ArrayList(other.userID); - this.userID = __this__userID; + this.userID = other.userID; + } + if (other.isSetImageID()) { + this.imageID = other.imageID; } } - public getAllOtherSatelliteUsers_args deepCopy() { - return new getAllOtherSatelliteUsers_args(this); + public getPermissionForUserAndImage_args deepCopy() { + return new getPermissionForUserAndImage_args(this); } @Override public void clear() { this.userID = null; + this.imageID = null; } - public int getUserIDSize() { - return (this.userID == null) ? 0 : this.userID.size(); - } - - public java.util.Iterator getUserIDIterator() { - return (this.userID == null) ? null : this.userID.iterator(); - } - - public void addToUserID(String elem) { - if (this.userID == null) { - this.userID = new ArrayList(); - } - this.userID.add(elem); - } - - public List getUserID() { + public String getUserID() { return this.userID; } - public getAllOtherSatelliteUsers_args setUserID(List userID) { + public getPermissionForUserAndImage_args setUserID(String userID) { this.userID = userID; return this; } @@ -40493,13 +41432,45 @@ public class Server { } } + public String getImageID() { + return this.imageID; + } + + public getPermissionForUserAndImage_args setImageID(String imageID) { + this.imageID = imageID; + return this; + } + + public void unsetImageID() { + this.imageID = null; + } + + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; + } + + public void setImageIDIsSet(boolean value) { + if (!value) { + this.imageID = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_ID: if (value == null) { unsetUserID(); } else { - setUserID((List)value); + setUserID((String)value); + } + break; + + case IMAGE_ID: + if (value == null) { + unsetImageID(); + } else { + setImageID((String)value); } break; @@ -40511,6 +41482,9 @@ public class Server { case USER_ID: return getUserID(); + case IMAGE_ID: + return getImageID(); + } throw new IllegalStateException(); } @@ -40524,6 +41498,8 @@ public class Server { switch (field) { case USER_ID: return isSetUserID(); + case IMAGE_ID: + return isSetImageID(); } throw new IllegalStateException(); } @@ -40532,12 +41508,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_args) - return this.equals((getAllOtherSatelliteUsers_args)that); + if (that instanceof getPermissionForUserAndImage_args) + return this.equals((getPermissionForUserAndImage_args)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_args that) { + public boolean equals(getPermissionForUserAndImage_args that) { if (that == null) return false; @@ -40550,6 +41526,15 @@ public class Server { return false; } + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) + return false; + if (!this.imageID.equals(that.imageID)) + return false; + } + return true; } @@ -40559,7 +41544,7 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_args other) { + public int compareTo(getPermissionForUserAndImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40576,6 +41561,16 @@ public class Server { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -40593,7 +41588,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); boolean first = true; sb.append("userID:"); @@ -40603,6 +41598,14 @@ public class Server { sb.append(this.userID); } first = false; + if (!first) sb.append(", "); + sb.append("imageID:"); + if (this.imageID == null) { + sb.append("null"); + } else { + sb.append(this.imageID); + } + first = false; sb.append(")"); return sb.toString(); } @@ -40628,15 +41631,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_argsStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_argsStandardScheme(); + private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsStandardScheme getScheme() { + return new getPermissionForUserAndImage_argsStandardScheme(); } } - private static class getAllOtherSatelliteUsers_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40647,23 +41650,21 @@ public class Server { } switch (schemeField.id) { case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); - struct.userID = new ArrayList(_list126.size); - for (int _i127 = 0; _i127 < _list126.size; ++_i127) - { - String _elem128; - _elem128 = iprot.readString(); - struct.userID.add(_elem128); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // IMAGE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -40675,20 +41676,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); - for (String _iter129 : struct.userID) - { - oprot.writeString(_iter129); - } - oprot.writeListEnd(); - } + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -40697,64 +41696,59 @@ public class Server { } - private static class getAllOtherSatelliteUsers_argsTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_argsTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_argsTupleScheme(); + private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_argsTupleScheme getScheme() { + return new getPermissionForUserAndImage_argsTupleScheme(); } } - private static class getAllOtherSatelliteUsers_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetImageID()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserID()) { - { - oprot.writeI32(struct.userID.size()); - for (String _iter130 : struct.userID) - { - oprot.writeString(_iter130); - } - } + oprot.writeString(struct.userID); + } + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.userID = new ArrayList(_list131.size); - for (int _i132 = 0; _i132 < _list131.size; ++_i132) - { - String _elem133; - _elem133 = iprot.readString(); - struct.userID.add(_elem133); - } - } + struct.userID = iprot.readString(); struct.setUserIDIsSet(true); } + if (incoming.get(1)) { + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); + } } } } - public static class getAllOtherSatelliteUsers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOtherSatelliteUsers_result"); + public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOtherSatelliteUsers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOtherSatelliteUsers_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); } public List success; // required @@ -40825,13 +41819,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOtherSatelliteUsers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); } - public getAllOtherSatelliteUsers_result() { + public getPermissionForUserAndImage_result() { } - public getAllOtherSatelliteUsers_result( + public getPermissionForUserAndImage_result( List success) { this(); @@ -40841,7 +41835,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOtherSatelliteUsers_result(getAllOtherSatelliteUsers_result other) { + public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Person other_element : other.success) { @@ -40851,8 +41845,8 @@ public class Server { } } - public getAllOtherSatelliteUsers_result deepCopy() { - return new getAllOtherSatelliteUsers_result(this); + public getPermissionForUserAndImage_result deepCopy() { + return new getPermissionForUserAndImage_result(this); } @Override @@ -40879,7 +41873,7 @@ public class Server { return this.success; } - public getAllOtherSatelliteUsers_result setSuccess(List success) { + public getPermissionForUserAndImage_result setSuccess(List success) { this.success = success; return this; } @@ -40938,12 +41932,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOtherSatelliteUsers_result) - return this.equals((getAllOtherSatelliteUsers_result)that); + if (that instanceof getPermissionForUserAndImage_result) + return this.equals((getPermissionForUserAndImage_result)that); return false; } - public boolean equals(getAllOtherSatelliteUsers_result that) { + public boolean equals(getPermissionForUserAndImage_result that) { if (that == null) return false; @@ -40965,7 +41959,7 @@ public class Server { } @Override - public int compareTo(getAllOtherSatelliteUsers_result other) { + public int compareTo(getPermissionForUserAndImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40999,7 +41993,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOtherSatelliteUsers_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); boolean first = true; sb.append("success:"); @@ -41034,15 +42028,15 @@ public class Server { } } - private static class getAllOtherSatelliteUsers_resultStandardSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultStandardScheme getScheme() { - return new getAllOtherSatelliteUsers_resultStandardScheme(); + private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultStandardScheme getScheme() { + return new getPermissionForUserAndImage_resultStandardScheme(); } } - private static class getAllOtherSatelliteUsers_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41055,14 +42049,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); - struct.success = new ArrayList(_list134.size); - for (int _i135 = 0; _i135 < _list134.size; ++_i135) + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.success = new ArrayList(_list142.size); + for (int _i143 = 0; _i143 < _list142.size; ++_i143) { - Person _elem136; - _elem136 = new Person(); - _elem136.read(iprot); - struct.success.add(_elem136); + Person _elem144; + _elem144 = new Person(); + _elem144.read(iprot); + struct.success.add(_elem144); } iprot.readListEnd(); } @@ -41082,7 +42076,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41090,9 +42084,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 _iter137 : struct.success) + for (Person _iter145 : struct.success) { - _iter137.write(oprot); + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -41104,16 +42098,16 @@ public class Server { } - private static class getAllOtherSatelliteUsers_resultTupleSchemeFactory implements SchemeFactory { - public getAllOtherSatelliteUsers_resultTupleScheme getScheme() { - return new getAllOtherSatelliteUsers_resultTupleScheme(); + private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndImage_resultTupleScheme getScheme() { + return new getPermissionForUserAndImage_resultTupleScheme(); } } - private static class getAllOtherSatelliteUsers_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41123,28 +42117,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter138 : struct.success) + for (Person _iter146 : struct.success) { - _iter138.write(oprot); + _iter146.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOtherSatelliteUsers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list139.size); - for (int _i140 = 0; _i140 < _list139.size; ++_i140) + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list147.size); + for (int _i148 = 0; _i148 < _list147.size; ++_i148) { - Person _elem141; - _elem141 = new Person(); - _elem141.read(iprot); - struct.success.add(_elem141); + Person _elem149; + _elem149 = new Person(); + _elem149.read(iprot); + struct.success.add(_elem149); } } struct.setSuccessIsSet(true); @@ -41154,25 +42148,22 @@ public class Server { } - public static class getPermissionForUserAndImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_args"); + public static class getAdditionalImageContacts_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("getAdditionalImageContacts_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAdditionalImageContacts_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAdditionalImageContacts_argsTupleSchemeFactory()); } - public String userID; // required public String imageID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"), - IMAGE_ID((short)2, "imageID"); + IMAGE_ID((short)1, "imageID"); private static final Map byName = new HashMap(); @@ -41187,9 +42178,7 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; - case 2: // IMAGE_ID + case 1: // IMAGE_ID return IMAGE_ID; default: return null; @@ -41234,77 +42223,45 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_args.class, metaDataMap); } - public getPermissionForUserAndImage_args() { + public getAdditionalImageContacts_args() { } - public getPermissionForUserAndImage_args( - String userID, + public getAdditionalImageContacts_args( String imageID) { this(); - this.userID = userID; this.imageID = imageID; } /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_args(getPermissionForUserAndImage_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public getAdditionalImageContacts_args(getAdditionalImageContacts_args other) { if (other.isSetImageID()) { this.imageID = other.imageID; } } - public getPermissionForUserAndImage_args deepCopy() { - return new getPermissionForUserAndImage_args(this); + public getAdditionalImageContacts_args deepCopy() { + return new getAdditionalImageContacts_args(this); } @Override public void clear() { - this.userID = null; this.imageID = null; } - public String getUserID() { - return this.userID; - } - - public getPermissionForUserAndImage_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 String getImageID() { return this.imageID; } - public getPermissionForUserAndImage_args setImageID(String imageID) { + public getAdditionalImageContacts_args setImageID(String imageID) { this.imageID = imageID; return this; } @@ -41326,14 +42283,6 @@ public class Server { public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: - if (value == null) { - unsetUserID(); - } else { - setUserID((String)value); - } - break; - case IMAGE_ID: if (value == null) { unsetImageID(); @@ -41347,9 +42296,6 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - case IMAGE_ID: return getImageID(); @@ -41364,8 +42310,6 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); case IMAGE_ID: return isSetImageID(); } @@ -41376,24 +42320,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_args) - return this.equals((getPermissionForUserAndImage_args)that); + if (that instanceof getAdditionalImageContacts_args) + return this.equals((getAdditionalImageContacts_args)that); return false; } - public boolean equals(getPermissionForUserAndImage_args that) { + public boolean equals(getAdditionalImageContacts_args that) { if (that == null) return false; - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) - return false; - } - boolean this_present_imageID = true && this.isSetImageID(); boolean that_present_imageID = true && that.isSetImageID(); if (this_present_imageID || that_present_imageID) { @@ -41412,23 +42347,13 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_args other) { + public int compareTo(getAdditionalImageContacts_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; - } - } lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; @@ -41456,17 +42381,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_args("); + StringBuilder sb = new StringBuilder("getAdditionalImageContacts_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { - sb.append("null"); - } else { - sb.append(this.userID); - } - first = false; - if (!first) sb.append(", "); sb.append("imageID:"); if (this.imageID == null) { sb.append("null"); @@ -41499,15 +42416,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsStandardScheme getScheme() { - return new getPermissionForUserAndImage_argsStandardScheme(); + private static class getAdditionalImageContacts_argsStandardSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_argsStandardScheme getScheme() { + return new getAdditionalImageContacts_argsStandardScheme(); } } - private static class getPermissionForUserAndImage_argsStandardScheme extends StandardScheme { + private static class getAdditionalImageContacts_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41517,15 +42434,7 @@ 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; - case 2: // IMAGE_ID + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.imageID = iprot.readString(); struct.setImageIDIsSet(true); @@ -41544,15 +42453,10 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); - oprot.writeFieldEnd(); - } if (struct.imageID != null) { oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); oprot.writeString(struct.imageID); @@ -41564,42 +42468,32 @@ public class Server { } - private static class getPermissionForUserAndImage_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_argsTupleScheme getScheme() { - return new getPermissionForUserAndImage_argsTupleScheme(); + private static class getAdditionalImageContacts_argsTupleSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_argsTupleScheme getScheme() { + return new getAdditionalImageContacts_argsTupleScheme(); } } - private static class getPermissionForUserAndImage_argsTupleScheme extends TupleScheme { + private static class getAdditionalImageContacts_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { - optionals.set(0); - } if (struct.isSetImageID()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetImageID()) { oprot.writeString(struct.imageID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } - if (incoming.get(1)) { struct.imageID = iprot.readString(); struct.setImageIDIsSet(true); } @@ -41608,18 +42502,18 @@ public class Server { } - public static class getPermissionForUserAndImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndImage_result"); + public static class getAdditionalImageContacts_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("getAdditionalImageContacts_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAdditionalImageContacts_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAdditionalImageContacts_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 { @@ -41685,16 +42579,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, Person.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_result.class, metaDataMap); } - public getPermissionForUserAndImage_result() { + public getAdditionalImageContacts_result() { } - public getPermissionForUserAndImage_result( - List success) + public getAdditionalImageContacts_result( + List success) { this(); this.success = success; @@ -41703,18 +42597,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getPermissionForUserAndImage_result(getPermissionForUserAndImage_result other) { + public getAdditionalImageContacts_result(getAdditionalImageContacts_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Person other_element : other.success) { - __this__success.add(new Person(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getPermissionForUserAndImage_result deepCopy() { - return new getPermissionForUserAndImage_result(this); + public getAdditionalImageContacts_result deepCopy() { + return new getAdditionalImageContacts_result(this); } @Override @@ -41726,22 +42617,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(Person elem) { + public void addToSuccess(String 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 getPermissionForUserAndImage_result setSuccess(List success) { + public getAdditionalImageContacts_result setSuccess(List success) { this.success = success; return this; } @@ -41767,7 +42658,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -41800,12 +42691,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndImage_result) - return this.equals((getPermissionForUserAndImage_result)that); + if (that instanceof getAdditionalImageContacts_result) + return this.equals((getAdditionalImageContacts_result)that); return false; } - public boolean equals(getPermissionForUserAndImage_result that) { + public boolean equals(getAdditionalImageContacts_result that) { if (that == null) return false; @@ -41827,7 +42718,7 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndImage_result other) { + public int compareTo(getAdditionalImageContacts_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41861,7 +42752,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndImage_result("); + StringBuilder sb = new StringBuilder("getAdditionalImageContacts_result("); boolean first = true; sb.append("success:"); @@ -41896,15 +42787,15 @@ public class Server { } } - private static class getPermissionForUserAndImage_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultStandardScheme getScheme() { - return new getPermissionForUserAndImage_resultStandardScheme(); + private static class getAdditionalImageContacts_resultStandardSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_resultStandardScheme getScheme() { + return new getAdditionalImageContacts_resultStandardScheme(); } } - private static class getPermissionForUserAndImage_resultStandardScheme extends StandardScheme { + private static class getAdditionalImageContacts_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41917,14 +42808,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); - struct.success = new ArrayList(_list142.size); - for (int _i143 = 0; _i143 < _list142.size; ++_i143) + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.success = new ArrayList(_list150.size); + for (int _i151 = 0; _i151 < _list150.size; ++_i151) { - Person _elem144; - _elem144 = new Person(); - _elem144.read(iprot); - struct.success.add(_elem144); + String _elem152; + _elem152 = iprot.readString(); + struct.success.add(_elem152); } iprot.readListEnd(); } @@ -41944,17 +42834,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter145 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter153 : struct.success) { - _iter145.write(oprot); + oprot.writeString(_iter153); } oprot.writeListEnd(); } @@ -41966,16 +42856,16 @@ public class Server { } - private static class getPermissionForUserAndImage_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndImage_resultTupleScheme getScheme() { - return new getPermissionForUserAndImage_resultTupleScheme(); + private static class getAdditionalImageContacts_resultTupleSchemeFactory implements SchemeFactory { + public getAdditionalImageContacts_resultTupleScheme getScheme() { + return new getAdditionalImageContacts_resultTupleScheme(); } } - private static class getPermissionForUserAndImage_resultTupleScheme extends TupleScheme { + private static class getAdditionalImageContacts_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41985,28 +42875,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter146 : struct.success) + for (String _iter154 : struct.success) { - _iter146.write(oprot); + oprot.writeString(_iter154); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_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 _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list147.size); - for (int _i148 = 0; _i148 < _list147.size; ++_i148) + org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list155.size); + for (int _i156 = 0; _i156 < _list155.size; ++_i156) { - Person _elem149; - _elem149 = new Person(); - _elem149.read(iprot); - struct.success.add(_elem149); + String _elem157; + _elem157 = iprot.readString(); + struct.success.add(_elem157); } } struct.setSuccessIsSet(true); @@ -42016,22 +42905,25 @@ public class Server { } - public static class getAdditionalImageContacts_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("getAdditionalImageContacts_args"); + public static class getPermissionForUserAndLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_args"); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAdditionalImageContacts_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAdditionalImageContacts_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_argsTupleSchemeFactory()); } - public String imageID; // required + public String userID; // required + public String lectureID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGE_ID((short)1, "imageID"); + USER_ID((short)1, "userID"), + LECTURE_ID((short)2, "lectureID"); private static final Map byName = new HashMap(); @@ -42046,8 +42938,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; + case 1: // USER_ID + return USER_ID; + case 2: // LECTURE_ID + return LECTURE_ID; default: return null; } @@ -42091,71 +42985,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_args.class, metaDataMap); } - public getAdditionalImageContacts_args() { + public getPermissionForUserAndLecture_args() { } - public getAdditionalImageContacts_args( - String imageID) + public getPermissionForUserAndLecture_args( + String userID, + String lectureID) { this(); - this.imageID = imageID; + this.userID = userID; + this.lectureID = lectureID; } /** * Performs a deep copy on other. */ - public getAdditionalImageContacts_args(getAdditionalImageContacts_args other) { - if (other.isSetImageID()) { - this.imageID = other.imageID; + public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; } } - public getAdditionalImageContacts_args deepCopy() { - return new getAdditionalImageContacts_args(this); + public getPermissionForUserAndLecture_args deepCopy() { + return new getPermissionForUserAndLecture_args(this); } @Override public void clear() { - this.imageID = null; + this.userID = null; + this.lectureID = null; } - public String getImageID() { - return this.imageID; + public String getUserID() { + return this.userID; } - public getAdditionalImageContacts_args setImageID(String imageID) { - this.imageID = imageID; + public getPermissionForUserAndLecture_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; } - public void setImageIDIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.userID = null; + } + } + + public String getLectureID() { + return this.lectureID; + } + + public getPermissionForUserAndLecture_args setLectureID(String lectureID) { + this.lectureID = lectureID; + return this; + } + + public void unsetLectureID() { + this.lectureID = null; + } + + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; + } + + public void setLectureIDIsSet(boolean value) { + if (!value) { + this.lectureID = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_ID: + case USER_ID: if (value == null) { - unsetImageID(); + unsetUserID(); } else { - setImageID((String)value); + setUserID((String)value); + } + break; + + case LECTURE_ID: + if (value == null) { + unsetLectureID(); + } else { + setLectureID((String)value); } break; @@ -42164,8 +43098,11 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImageID(); + case USER_ID: + return getUserID(); + + case LECTURE_ID: + return getLectureID(); } throw new IllegalStateException(); @@ -42178,8 +43115,10 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImageID(); + case USER_ID: + return isSetUserID(); + case LECTURE_ID: + return isSetLectureID(); } throw new IllegalStateException(); } @@ -42188,21 +43127,30 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAdditionalImageContacts_args) - return this.equals((getAdditionalImageContacts_args)that); + if (that instanceof getPermissionForUserAndLecture_args) + return this.equals((getPermissionForUserAndLecture_args)that); return false; } - public boolean equals(getAdditionalImageContacts_args that) { + public boolean equals(getPermissionForUserAndLecture_args that) { if (that == null) return false; - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_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.imageID.equals(that.imageID)) + if (!this.userID.equals(that.userID)) + return false; + } + + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) + return false; + if (!this.lectureID.equals(that.lectureID)) return false; } @@ -42215,19 +43163,29 @@ public class Server { } @Override - public int compareTo(getAdditionalImageContacts_args other) { + public int compareTo(getPermissionForUserAndLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); if (lastComparison != 0) { return lastComparison; } @@ -42249,14 +43207,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAdditionalImageContacts_args("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_args("); boolean first = true; - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.userID); + } + first = false; + if (!first) sb.append(", "); + sb.append("lectureID:"); + if (this.lectureID == null) { + sb.append("null"); + } else { + sb.append(this.lectureID); } first = false; sb.append(")"); @@ -42284,15 +43250,15 @@ public class Server { } } - private static class getAdditionalImageContacts_argsStandardSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_argsStandardScheme getScheme() { - return new getAdditionalImageContacts_argsStandardScheme(); + private static class getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsStandardScheme getScheme() { + return new getPermissionForUserAndLecture_argsStandardScheme(); } } - private static class getAdditionalImageContacts_argsStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42302,10 +43268,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42321,13 +43295,18 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -42336,52 +43315,62 @@ public class Server { } - private static class getAdditionalImageContacts_argsTupleSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_argsTupleScheme getScheme() { - return new getAdditionalImageContacts_argsTupleScheme(); + private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_argsTupleScheme getScheme() { + return new getPermissionForUserAndLecture_argsTupleScheme(); } } - private static class getAdditionalImageContacts_argsTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageID()) { + if (struct.isSetUserID()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + if (incoming.get(1)) { + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } } } } - public static class getAdditionalImageContacts_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("getAdditionalImageContacts_result"); + public static class getPermissionForUserAndLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAdditionalImageContacts_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAdditionalImageContacts_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_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 { @@ -42447,16 +43436,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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_result.class, metaDataMap); } - public getAdditionalImageContacts_result() { + public getPermissionForUserAndLecture_result() { } - public getAdditionalImageContacts_result( - List success) + public getPermissionForUserAndLecture_result( + List success) { this(); this.success = success; @@ -42465,15 +43454,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getAdditionalImageContacts_result(getAdditionalImageContacts_result other) { + public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Person other_element : other.success) { + __this__success.add(new Person(other_element)); + } this.success = __this__success; } } - public getAdditionalImageContacts_result deepCopy() { - return new getAdditionalImageContacts_result(this); + public getPermissionForUserAndLecture_result deepCopy() { + return new getPermissionForUserAndLecture_result(this); } @Override @@ -42485,22 +43477,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(String elem) { + public void addToSuccess(Person 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 getAdditionalImageContacts_result setSuccess(List success) { + public getPermissionForUserAndLecture_result setSuccess(List success) { this.success = success; return this; } @@ -42526,7 +43518,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -42559,12 +43551,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAdditionalImageContacts_result) - return this.equals((getAdditionalImageContacts_result)that); + if (that instanceof getPermissionForUserAndLecture_result) + return this.equals((getPermissionForUserAndLecture_result)that); return false; } - public boolean equals(getAdditionalImageContacts_result that) { + public boolean equals(getPermissionForUserAndLecture_result that) { if (that == null) return false; @@ -42586,7 +43578,7 @@ public class Server { } @Override - public int compareTo(getAdditionalImageContacts_result other) { + public int compareTo(getPermissionForUserAndLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42620,7 +43612,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAdditionalImageContacts_result("); + StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_result("); boolean first = true; sb.append("success:"); @@ -42655,15 +43647,15 @@ public class Server { } } - private static class getAdditionalImageContacts_resultStandardSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_resultStandardScheme getScheme() { - return new getAdditionalImageContacts_resultStandardScheme(); + private static class getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultStandardScheme getScheme() { + return new getPermissionForUserAndLecture_resultStandardScheme(); } } - private static class getAdditionalImageContacts_resultStandardScheme extends StandardScheme { + private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42676,13 +43668,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); - struct.success = new ArrayList(_list150.size); - for (int _i151 = 0; _i151 < _list150.size; ++_i151) + org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); + struct.success = new ArrayList(_list158.size); + for (int _i159 = 0; _i159 < _list158.size; ++_i159) { - String _elem152; - _elem152 = iprot.readString(); - struct.success.add(_elem152); + Person _elem160; + _elem160 = new Person(); + _elem160.read(iprot); + struct.success.add(_elem160); } iprot.readListEnd(); } @@ -42702,17 +43695,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter153 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Person _iter161 : struct.success) { - oprot.writeString(_iter153); + _iter161.write(oprot); } oprot.writeListEnd(); } @@ -42724,16 +43717,16 @@ public class Server { } - private static class getAdditionalImageContacts_resultTupleSchemeFactory implements SchemeFactory { - public getAdditionalImageContacts_resultTupleScheme getScheme() { - return new getAdditionalImageContacts_resultTupleScheme(); + private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { + public getPermissionForUserAndLecture_resultTupleScheme getScheme() { + return new getPermissionForUserAndLecture_resultTupleScheme(); } } - private static class getAdditionalImageContacts_resultTupleScheme extends TupleScheme { + private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -42743,27 +43736,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter154 : struct.success) + for (Person _iter162 : struct.success) { - oprot.writeString(_iter154); + _iter162.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list155.size); - for (int _i156 = 0; _i156 < _list155.size; ++_i156) + org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list163.size); + for (int _i164 = 0; _i164 < _list163.size; ++_i164) { - String _elem157; - _elem157 = iprot.readString(); - struct.success.add(_elem157); + Person _elem165; + _elem165 = new Person(); + _elem165.read(iprot); + struct.success.add(_elem165); } } struct.setSuccessIsSet(true); @@ -42773,25 +43767,25 @@ public class Server { } - public static class getPermissionForUserAndLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_args"); + public static class deleteAllAdditionalImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); } + public String imageID; // required public String userID; // required - public String lectureID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"), - LECTURE_ID((short)2, "lectureID"); + IMAGE_ID((short)1, "imageID"), + USER_ID((short)2, "userID"); private static final Map byName = new HashMap(); @@ -42806,10 +43800,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID + case 1: // IMAGE_ID + return IMAGE_ID; + case 2: // USER_ID return USER_ID; - case 2: // LECTURE_ID - return LECTURE_ID; default: return null; } @@ -42853,111 +43847,111 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_args.class, metaDataMap); } - public getPermissionForUserAndLecture_args() { + public deleteAllAdditionalImagePermissions_args() { } - public getPermissionForUserAndLecture_args( - String userID, - String lectureID) + public deleteAllAdditionalImagePermissions_args( + String imageID, + String userID) { this(); + this.imageID = imageID; this.userID = userID; - this.lectureID = lectureID; } /** * Performs a deep copy on other. */ - public getPermissionForUserAndLecture_args(getPermissionForUserAndLecture_args other) { + public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { + if (other.isSetImageID()) { + this.imageID = other.imageID; + } if (other.isSetUserID()) { this.userID = other.userID; } - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; - } } - public getPermissionForUserAndLecture_args deepCopy() { - return new getPermissionForUserAndLecture_args(this); + public deleteAllAdditionalImagePermissions_args deepCopy() { + return new deleteAllAdditionalImagePermissions_args(this); } @Override public void clear() { + this.imageID = null; this.userID = null; - this.lectureID = null; } - public String getUserID() { - return this.userID; + public String getImageID() { + return this.imageID; } - public getPermissionForUserAndLecture_args setUserID(String userID) { - this.userID = userID; + public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { + this.imageID = imageID; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetImageID() { + this.imageID = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ + public boolean isSetImageID() { + return this.imageID != null; } - public void setUserIDIsSet(boolean value) { + public void setImageIDIsSet(boolean value) { if (!value) { - this.userID = null; + this.imageID = null; } } - public String getLectureID() { - return this.lectureID; + public String getUserID() { + return this.userID; } - public getPermissionForUserAndLecture_args setLectureID(String lectureID) { - this.lectureID = lectureID; + public deleteAllAdditionalImagePermissions_args setUserID(String userID) { + this.userID = userID; return this; } - public void unsetLectureID() { - this.lectureID = null; + public void unsetUserID() { + this.userID = null; } - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != 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 setLectureIDIsSet(boolean value) { + public void setUserIDIsSet(boolean value) { if (!value) { - this.lectureID = null; + this.userID = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: + case IMAGE_ID: if (value == null) { - unsetUserID(); + unsetImageID(); } else { - setUserID((String)value); + setImageID((String)value); } break; - case LECTURE_ID: + case USER_ID: if (value == null) { - unsetLectureID(); + unsetUserID(); } else { - setLectureID((String)value); + setUserID((String)value); } break; @@ -42966,12 +43960,12 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { + case IMAGE_ID: + return getImageID(); + case USER_ID: return getUserID(); - case LECTURE_ID: - return getLectureID(); - } throw new IllegalStateException(); } @@ -42983,10 +43977,10 @@ public class Server { } switch (field) { + case IMAGE_ID: + return isSetImageID(); case USER_ID: return isSetUserID(); - case LECTURE_ID: - return isSetLectureID(); } throw new IllegalStateException(); } @@ -42995,15 +43989,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndLecture_args) - return this.equals((getPermissionForUserAndLecture_args)that); + if (that instanceof deleteAllAdditionalImagePermissions_args) + return this.equals((deleteAllAdditionalImagePermissions_args)that); return false; } - public boolean equals(getPermissionForUserAndLecture_args that) { + public boolean equals(deleteAllAdditionalImagePermissions_args that) { if (that == null) return false; + boolean this_present_imageID = true && this.isSetImageID(); + boolean that_present_imageID = true && that.isSetImageID(); + if (this_present_imageID || that_present_imageID) { + if (!(this_present_imageID && that_present_imageID)) + return false; + if (!this.imageID.equals(that.imageID)) + return false; + } + boolean this_present_userID = true && this.isSetUserID(); boolean that_present_userID = true && that.isSetUserID(); if (this_present_userID || that_present_userID) { @@ -43013,15 +44016,6 @@ public class Server { return false; } - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) - return false; - if (!this.lectureID.equals(that.lectureID)) - return false; - } - return true; } @@ -43031,29 +44025,29 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndLecture_args other) { + public int compareTo(deleteAllAdditionalImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetImageID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); if (lastComparison != 0) { return lastComparison; } @@ -43075,22 +44069,22 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { + sb.append("imageID:"); + if (this.imageID == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.imageID); } first = false; if (!first) sb.append(", "); - sb.append("lectureID:"); - if (this.lectureID == null) { + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.lectureID); + sb.append(this.userID); } first = false; sb.append(")"); @@ -43118,15 +44112,15 @@ public class Server { } } - private static class getPermissionForUserAndLecture_argsStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_argsStandardScheme getScheme() { - return new getPermissionForUserAndLecture_argsStandardScheme(); + private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsStandardScheme(); } } - private static class getPermissionForUserAndLecture_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43136,18 +44130,18 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID + case 1: // IMAGE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE_ID + case 2: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -43163,86 +44157,84 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.imageID != null) { + oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); + oprot.writeString(struct.imageID); + oprot.writeFieldEnd(); + } if (struct.userID != null) { oprot.writeFieldBegin(USER_ID_FIELD_DESC); oprot.writeString(struct.userID); oprot.writeFieldEnd(); } - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndLecture_argsTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_argsTupleScheme getScheme() { - return new getPermissionForUserAndLecture_argsTupleScheme(); + private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_argsTupleScheme(); } } - private static class getPermissionForUserAndLecture_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { + if (struct.isSetImageID()) { optionals.set(0); } - if (struct.isSetLectureID()) { + if (struct.isSetUserID()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetImageID()) { + oprot.writeString(struct.imageID); + } if (struct.isSetUserID()) { oprot.writeString(struct.userID); } - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.imageID = iprot.readString(); + struct.setImageIDIsSet(true); } if (incoming.get(1)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class getPermissionForUserAndLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_result"); + public static class deleteAllAdditionalImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPermissionForUserAndLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPermissionForUserAndLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_resultTupleSchemeFactory()); } - public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); +; private static final Map byName = new HashMap(); @@ -43257,8 +44249,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -43297,107 +44287,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Person.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionForUserAndLecture_result.class, metaDataMap); - } - - public getPermissionForUserAndLecture_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_result.class, metaDataMap); } - public getPermissionForUserAndLecture_result( - List success) - { - this(); - this.success = success; + public deleteAllAdditionalImagePermissions_result() { } /** * Performs a deep copy on other. */ - public getPermissionForUserAndLecture_result(getPermissionForUserAndLecture_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Person other_element : other.success) { - __this__success.add(new Person(other_element)); - } - this.success = __this__success; - } + public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { } - public getPermissionForUserAndLecture_result deepCopy() { - return new getPermissionForUserAndLecture_result(this); + public deleteAllAdditionalImagePermissions_result deepCopy() { + return new deleteAllAdditionalImagePermissions_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Person elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getPermissionForUserAndLecture_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(); } @@ -43409,8 +44329,6 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -43419,24 +44337,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPermissionForUserAndLecture_result) - return this.equals((getPermissionForUserAndLecture_result)that); + if (that instanceof deleteAllAdditionalImagePermissions_result) + return this.equals((deleteAllAdditionalImagePermissions_result)that); return false; } - public boolean equals(getPermissionForUserAndLecture_result that) { + public boolean equals(deleteAllAdditionalImagePermissions_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - return true; } @@ -43446,23 +44355,13 @@ public class Server { } @Override - public int compareTo(getPermissionForUserAndLecture_result other) { + public int compareTo(deleteAllAdditionalImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -43480,16 +44379,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPermissionForUserAndLecture_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; sb.append(")"); return sb.toString(); } @@ -43515,15 +44407,15 @@ public class Server { } } - private static class getPermissionForUserAndLecture_resultStandardSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_resultStandardScheme getScheme() { - return new getPermissionForUserAndLecture_resultStandardScheme(); + private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultStandardScheme(); } } - private static class getPermissionForUserAndLecture_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43533,25 +44425,6 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); - struct.success = new ArrayList(_list158.size); - for (int _i159 = 0; _i159 < _list158.size; ++_i159) - { - Person _elem160; - _elem160 = new Person(); - _elem160.read(iprot); - struct.success.add(_elem160); - } - 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); } @@ -43563,96 +44436,55 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter161 : struct.success) - { - _iter161.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPermissionForUserAndLecture_resultTupleSchemeFactory implements SchemeFactory { - public getPermissionForUserAndLecture_resultTupleScheme getScheme() { - return new getPermissionForUserAndLecture_resultTupleScheme(); + private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalImagePermissions_resultTupleScheme(); } } - private static class getPermissionForUserAndLecture_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Person _iter162 : struct.success) - { - _iter162.write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPermissionForUserAndLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list163.size); - for (int _i164 = 0; _i164 < _list163.size; ++_i164) - { - Person _elem165; - _elem165 = new Person(); - _elem165.read(iprot); - struct.success.add(_elem165); - } - } - struct.setSuccessIsSet(true); - } } } } - public static class deleteAllAdditionalImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_args"); + public static class deleteAllAdditionalLecturePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_args"); - private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); } - public String imageID; // required + public String lectureID; // required public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGE_ID((short)1, "imageID"), + LECTURE_ID((short)1, "lectureID"), USER_ID((short)2, "userID"); private static final Map byName = new HashMap(); @@ -43668,8 +44500,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGE_ID - return IMAGE_ID; + case 1: // LECTURE_ID + return LECTURE_ID; case 2: // USER_ID return USER_ID; default: @@ -43715,69 +44547,69 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_args() { + public deleteAllAdditionalLecturePermissions_args() { } - public deleteAllAdditionalImagePermissions_args( - String imageID, + public deleteAllAdditionalLecturePermissions_args( + String lectureID, String userID) { this(); - this.imageID = imageID; + this.lectureID = lectureID; this.userID = userID; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_args(deleteAllAdditionalImagePermissions_args other) { - if (other.isSetImageID()) { - this.imageID = other.imageID; + public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { + if (other.isSetLectureID()) { + this.lectureID = other.lectureID; } if (other.isSetUserID()) { this.userID = other.userID; } } - public deleteAllAdditionalImagePermissions_args deepCopy() { - return new deleteAllAdditionalImagePermissions_args(this); + public deleteAllAdditionalLecturePermissions_args deepCopy() { + return new deleteAllAdditionalLecturePermissions_args(this); } @Override public void clear() { - this.imageID = null; + this.lectureID = null; this.userID = null; } - public String getImageID() { - return this.imageID; + public String getLectureID() { + return this.lectureID; } - public deleteAllAdditionalImagePermissions_args setImageID(String imageID) { - this.imageID = imageID; + public deleteAllAdditionalLecturePermissions_args setLectureID(String lectureID) { + this.lectureID = lectureID; return this; } - public void unsetImageID() { - this.imageID = null; + public void unsetLectureID() { + this.lectureID = null; } - /** Returns true if field imageID is set (has been assigned a value) and false otherwise */ - public boolean isSetImageID() { - return this.imageID != null; + /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureID() { + return this.lectureID != null; } - public void setImageIDIsSet(boolean value) { + public void setLectureIDIsSet(boolean value) { if (!value) { - this.imageID = null; + this.lectureID = null; } } @@ -43785,7 +44617,7 @@ public class Server { return this.userID; } - public deleteAllAdditionalImagePermissions_args setUserID(String userID) { + public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { this.userID = userID; return this; } @@ -43807,11 +44639,11 @@ public class Server { public void setFieldValue(_Fields field, Object value) { switch (field) { - case IMAGE_ID: + case LECTURE_ID: if (value == null) { - unsetImageID(); + unsetLectureID(); } else { - setImageID((String)value); + setLectureID((String)value); } break; @@ -43828,8 +44660,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case IMAGE_ID: - return getImageID(); + case LECTURE_ID: + return getLectureID(); case USER_ID: return getUserID(); @@ -43845,8 +44677,8 @@ public class Server { } switch (field) { - case IMAGE_ID: - return isSetImageID(); + case LECTURE_ID: + return isSetLectureID(); case USER_ID: return isSetUserID(); } @@ -43857,21 +44689,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_args) - return this.equals((deleteAllAdditionalImagePermissions_args)that); + if (that instanceof deleteAllAdditionalLecturePermissions_args) + return this.equals((deleteAllAdditionalLecturePermissions_args)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_args that) { + public boolean equals(deleteAllAdditionalLecturePermissions_args that) { if (that == null) return false; - boolean this_present_imageID = true && this.isSetImageID(); - boolean that_present_imageID = true && that.isSetImageID(); - if (this_present_imageID || that_present_imageID) { - if (!(this_present_imageID && that_present_imageID)) + boolean this_present_lectureID = true && this.isSetLectureID(); + boolean that_present_lectureID = true && that.isSetLectureID(); + if (this_present_lectureID || that_present_lectureID) { + if (!(this_present_lectureID && that_present_lectureID)) return false; - if (!this.imageID.equals(that.imageID)) + if (!this.lectureID.equals(that.lectureID)) return false; } @@ -43893,19 +44725,19 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_args other) { + public int compareTo(deleteAllAdditionalLecturePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID()); + lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID); + if (isSetLectureID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); if (lastComparison != 0) { return lastComparison; } @@ -43937,14 +44769,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_args("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); boolean first = true; - sb.append("imageID:"); - if (this.imageID == null) { + sb.append("lectureID:"); + if (this.lectureID == null) { sb.append("null"); } else { - sb.append(this.imageID); + sb.append(this.lectureID); } first = false; if (!first) sb.append(", "); @@ -43980,15 +44812,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43998,10 +44830,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGE_ID + case 1: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -44025,13 +44857,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageID != null) { - oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC); - oprot.writeString(struct.imageID); + if (struct.lectureID != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureID); oprot.writeFieldEnd(); } if (struct.userID != null) { @@ -44045,27 +44877,27 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_argsTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_argsTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_argsTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImageID()) { + if (struct.isSetLectureID()) { optionals.set(0); } if (struct.isSetUserID()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetImageID()) { - oprot.writeString(struct.imageID); + if (struct.isSetLectureID()) { + oprot.writeString(struct.lectureID); } if (struct.isSetUserID()) { oprot.writeString(struct.userID); @@ -44073,12 +44905,12 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.imageID = iprot.readString(); - struct.setImageIDIsSet(true); + struct.lectureID = iprot.readString(); + struct.setLectureIDIsSet(true); } if (incoming.get(1)) { struct.userID = iprot.readString(); @@ -44089,14 +44921,14 @@ public class Server { } - public static class deleteAllAdditionalImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalImagePermissions_result"); + public static class deleteAllAdditionalLecturePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_result"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); } @@ -44159,20 +44991,20 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); } - public deleteAllAdditionalImagePermissions_result() { + public deleteAllAdditionalLecturePermissions_result() { } /** * Performs a deep copy on other. */ - public deleteAllAdditionalImagePermissions_result(deleteAllAdditionalImagePermissions_result other) { + public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { } - public deleteAllAdditionalImagePermissions_result deepCopy() { - return new deleteAllAdditionalImagePermissions_result(this); + public deleteAllAdditionalLecturePermissions_result deepCopy() { + return new deleteAllAdditionalLecturePermissions_result(this); } @Override @@ -44205,12 +45037,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalImagePermissions_result) - return this.equals((deleteAllAdditionalImagePermissions_result)that); + if (that instanceof deleteAllAdditionalLecturePermissions_result) + return this.equals((deleteAllAdditionalLecturePermissions_result)that); return false; } - public boolean equals(deleteAllAdditionalImagePermissions_result that) { + public boolean equals(deleteAllAdditionalLecturePermissions_result that) { if (that == null) return false; @@ -44223,7 +45055,7 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalImagePermissions_result other) { + public int compareTo(deleteAllAdditionalLecturePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44247,7 +45079,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalImagePermissions_result("); + StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); boolean first = true; sb.append(")"); @@ -44275,15 +45107,15 @@ public class Server { } } - private static class deleteAllAdditionalImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultStandardScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultStandardScheme(); + private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultStandardScheme extends StandardScheme { + private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44304,7 +45136,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44314,46 +45146,43 @@ public class Server { } - private static class deleteAllAdditionalImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalImagePermissions_resultTupleScheme getScheme() { - return new deleteAllAdditionalImagePermissions_resultTupleScheme(); + private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { + return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); } } - private static class deleteAllAdditionalImagePermissions_resultTupleScheme extends TupleScheme { + private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class deleteAllAdditionalLecturePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_args"); + public static class getOsNameForGuestOs_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("getOsNameForGuestOs_args"); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureID", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField GUEST_OS_FIELD_DESC = new org.apache.thrift.protocol.TField("guestOS", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOsNameForGuestOs_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOsNameForGuestOs_argsTupleSchemeFactory()); } - public String lectureID; // required - public String userID; // required + public String guestOS; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - LECTURE_ID((short)1, "lectureID"), - USER_ID((short)2, "userID"); + GUEST_OS((short)1, "guestOS"); private static final Map byName = new HashMap(); @@ -44368,10 +45197,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LECTURE_ID - return LECTURE_ID; - case 2: // USER_ID - return USER_ID; + case 1: // GUEST_OS + return GUEST_OS; default: return null; } @@ -44415,111 +45242,71 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.GUEST_OS, new org.apache.thrift.meta_data.FieldMetaData("guestOS", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOsNameForGuestOs_args.class, metaDataMap); } - public deleteAllAdditionalLecturePermissions_args() { + public getOsNameForGuestOs_args() { } - public deleteAllAdditionalLecturePermissions_args( - String lectureID, - String userID) + public getOsNameForGuestOs_args( + String guestOS) { this(); - this.lectureID = lectureID; - this.userID = userID; + this.guestOS = guestOS; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalLecturePermissions_args(deleteAllAdditionalLecturePermissions_args other) { - if (other.isSetLectureID()) { - this.lectureID = other.lectureID; - } - if (other.isSetUserID()) { - this.userID = other.userID; + public getOsNameForGuestOs_args(getOsNameForGuestOs_args other) { + if (other.isSetGuestOS()) { + this.guestOS = other.guestOS; } } - public deleteAllAdditionalLecturePermissions_args deepCopy() { - return new deleteAllAdditionalLecturePermissions_args(this); + public getOsNameForGuestOs_args deepCopy() { + return new getOsNameForGuestOs_args(this); } @Override public void clear() { - this.lectureID = null; - this.userID = null; - } - - public String getLectureID() { - return this.lectureID; - } - - public deleteAllAdditionalLecturePermissions_args setLectureID(String lectureID) { - this.lectureID = lectureID; - return this; + this.guestOS = null; } - public void unsetLectureID() { - this.lectureID = null; + public String getGuestOS() { + return this.guestOS; } - /** Returns true if field lectureID is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureID() { - return this.lectureID != null; - } - - public void setLectureIDIsSet(boolean value) { - if (!value) { - this.lectureID = null; - } - } - - public String getUserID() { - return this.userID; - } - - public deleteAllAdditionalLecturePermissions_args setUserID(String userID) { - this.userID = userID; + public getOsNameForGuestOs_args setGuestOS(String guestOS) { + this.guestOS = guestOS; return this; } - public void unsetUserID() { - this.userID = null; + public void unsetGuestOS() { + this.guestOS = null; } - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; + /** Returns true if field guestOS is set (has been assigned a value) and false otherwise */ + public boolean isSetGuestOS() { + return this.guestOS != null; } - public void setUserIDIsSet(boolean value) { + public void setGuestOSIsSet(boolean value) { if (!value) { - this.userID = null; + this.guestOS = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LECTURE_ID: - if (value == null) { - unsetLectureID(); - } else { - setLectureID((String)value); - } - break; - - case USER_ID: + case GUEST_OS: if (value == null) { - unsetUserID(); + unsetGuestOS(); } else { - setUserID((String)value); + setGuestOS((String)value); } break; @@ -44528,11 +45315,8 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case LECTURE_ID: - return getLectureID(); - - case USER_ID: - return getUserID(); + case GUEST_OS: + return getGuestOS(); } throw new IllegalStateException(); @@ -44545,10 +45329,8 @@ public class Server { } switch (field) { - case LECTURE_ID: - return isSetLectureID(); - case USER_ID: - return isSetUserID(); + case GUEST_OS: + return isSetGuestOS(); } throw new IllegalStateException(); } @@ -44557,30 +45339,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalLecturePermissions_args) - return this.equals((deleteAllAdditionalLecturePermissions_args)that); + if (that instanceof getOsNameForGuestOs_args) + return this.equals((getOsNameForGuestOs_args)that); return false; } - public boolean equals(deleteAllAdditionalLecturePermissions_args that) { + public boolean equals(getOsNameForGuestOs_args that) { if (that == null) return false; - boolean this_present_lectureID = true && this.isSetLectureID(); - boolean that_present_lectureID = true && that.isSetLectureID(); - if (this_present_lectureID || that_present_lectureID) { - if (!(this_present_lectureID && that_present_lectureID)) + boolean this_present_guestOS = true && this.isSetGuestOS(); + boolean that_present_guestOS = true && that.isSetGuestOS(); + if (this_present_guestOS || that_present_guestOS) { + if (!(this_present_guestOS && that_present_guestOS)) return false; - if (!this.lectureID.equals(that.lectureID)) - return false; - } - - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) + if (!this.guestOS.equals(that.guestOS)) return false; } @@ -44593,29 +45366,19 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalLecturePermissions_args other) { + public int compareTo(getOsNameForGuestOs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLectureID()).compareTo(other.isSetLectureID()); + lastComparison = Boolean.valueOf(isSetGuestOS()).compareTo(other.isSetGuestOS()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureID, other.lectureID); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (isSetGuestOS()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guestOS, other.guestOS); if (lastComparison != 0) { return lastComparison; } @@ -44637,22 +45400,14 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_args("); + StringBuilder sb = new StringBuilder("getOsNameForGuestOs_args("); boolean first = true; - sb.append("lectureID:"); - if (this.lectureID == null) { - sb.append("null"); - } else { - sb.append(this.lectureID); - } - first = false; - if (!first) sb.append(", "); - sb.append("userID:"); - if (this.userID == null) { + sb.append("guestOS:"); + if (this.guestOS == null) { sb.append("null"); } else { - sb.append(this.userID); + sb.append(this.guestOS); } first = false; sb.append(")"); @@ -44680,15 +45435,15 @@ public class Server { } } - private static class deleteAllAdditionalLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_argsStandardScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_argsStandardScheme(); + private static class getOsNameForGuestOs_argsStandardSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_argsStandardScheme getScheme() { + return new getOsNameForGuestOs_argsStandardScheme(); } } - private static class deleteAllAdditionalLecturePermissions_argsStandardScheme extends StandardScheme { + private static class getOsNameForGuestOs_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44698,18 +45453,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // LECTURE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USER_ID + case 1: // GUEST_OS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.guestOS = iprot.readString(); + struct.setGuestOSIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -44725,18 +45472,13 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.lectureID != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureID); - oprot.writeFieldEnd(); - } - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); + if (struct.guestOS != null) { + oprot.writeFieldBegin(GUEST_OS_FIELD_DESC); + oprot.writeString(struct.guestOS); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -44745,64 +45487,56 @@ public class Server { } - private static class deleteAllAdditionalLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_argsTupleScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_argsTupleScheme(); + private static class getOsNameForGuestOs_argsTupleSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_argsTupleScheme getScheme() { + return new getOsNameForGuestOs_argsTupleScheme(); } } - private static class deleteAllAdditionalLecturePermissions_argsTupleScheme extends TupleScheme { + private static class getOsNameForGuestOs_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetLectureID()) { + if (struct.isSetGuestOS()) { optionals.set(0); } - if (struct.isSetUserID()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetLectureID()) { - oprot.writeString(struct.lectureID); - } - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); + oprot.writeBitSet(optionals, 1); + if (struct.isSetGuestOS()) { + oprot.writeString(struct.guestOS); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.lectureID = iprot.readString(); - struct.setLectureIDIsSet(true); - } - if (incoming.get(1)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); + struct.guestOS = iprot.readString(); + struct.setGuestOSIsSet(true); } } } } - public static class deleteAllAdditionalLecturePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllAdditionalLecturePermissions_result"); + public static class getOsNameForGuestOs_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("getOsNameForGuestOs_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOsNameForGuestOs_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOsNameForGuestOs_resultTupleSchemeFactory()); } + public String 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(); @@ -44817,6 +45551,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -44855,37 +45591,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.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.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllAdditionalLecturePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOsNameForGuestOs_result.class, metaDataMap); } - public deleteAllAdditionalLecturePermissions_result() { + public getOsNameForGuestOs_result() { + } + + public getOsNameForGuestOs_result( + String success) + { + this(); + this.success = success; } /** * Performs a deep copy on other. */ - public deleteAllAdditionalLecturePermissions_result(deleteAllAdditionalLecturePermissions_result other) { + public getOsNameForGuestOs_result(getOsNameForGuestOs_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } } - public deleteAllAdditionalLecturePermissions_result deepCopy() { - return new deleteAllAdditionalLecturePermissions_result(this); + public getOsNameForGuestOs_result deepCopy() { + return new getOsNameForGuestOs_result(this); } @Override public void clear() { + this.success = null; + } + + public String getSuccess() { + return this.success; + } + + public getOsNameForGuestOs_result setSuccess(String 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((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + } throw new IllegalStateException(); } @@ -44897,6 +45683,8 @@ public class Server { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -44905,15 +45693,24 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteAllAdditionalLecturePermissions_result) - return this.equals((deleteAllAdditionalLecturePermissions_result)that); + if (that instanceof getOsNameForGuestOs_result) + return this.equals((getOsNameForGuestOs_result)that); return false; } - public boolean equals(deleteAllAdditionalLecturePermissions_result that) { + public boolean equals(getOsNameForGuestOs_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; } @@ -44923,13 +45720,23 @@ public class Server { } @Override - public int compareTo(deleteAllAdditionalLecturePermissions_result other) { + public int compareTo(getOsNameForGuestOs_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; } @@ -44947,9 +45754,16 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteAllAdditionalLecturePermissions_result("); + StringBuilder sb = new StringBuilder("getOsNameForGuestOs_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(); } @@ -44975,15 +45789,15 @@ public class Server { } } - private static class deleteAllAdditionalLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_resultStandardScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_resultStandardScheme(); + private static class getOsNameForGuestOs_resultStandardSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_resultStandardScheme getScheme() { + return new getOsNameForGuestOs_resultStandardScheme(); } } - private static class deleteAllAdditionalLecturePermissions_resultStandardScheme extends StandardScheme { + private static class getOsNameForGuestOs_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44993,6 +45807,14 @@ public class Server { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45004,32 +45826,50 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteAllAdditionalLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { - public deleteAllAdditionalLecturePermissions_resultTupleScheme getScheme() { - return new deleteAllAdditionalLecturePermissions_resultTupleScheme(); + private static class getOsNameForGuestOs_resultTupleSchemeFactory implements SchemeFactory { + public getOsNameForGuestOs_resultTupleScheme getScheme() { + return new getOsNameForGuestOs_resultTupleScheme(); } } - private static class deleteAllAdditionalLecturePermissions_resultTupleScheme extends TupleScheme { + private static class getOsNameForGuestOs_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_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.writeString(struct.success); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllAdditionalLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOsNameForGuestOs_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } } } -- cgit v1.2.3-55-g7522