diff options
| author | Michael Wilson | 2014-10-28 19:38:22 +0100 |
|---|---|---|
| committer | Michael Wilson | 2014-10-28 19:38:22 +0100 |
| commit | c106d54ac30727e6bd0b9e73922abcb187d163b8 (patch) | |
| tree | 1fc357b83dc916d9e4be09c28b248c64fd4a29d9 /dozentenmodulserver/src/main/java/server/generated | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tutor-module (diff) | |
| download | tutor-module-c106d54ac30727e6bd0b9e73922abcb187d163b8.tar.gz tutor-module-c106d54ac30727e6bd0b9e73922abcb187d163b8.tar.xz tutor-module-c106d54ac30727e6bd0b9e73922abcb187d163b8.zip | |
Serverseitiges Read und Write von Rechten korrigiert
Diffstat (limited to 'dozentenmodulserver/src/main/java/server/generated')
| -rw-r--r-- | dozentenmodulserver/src/main/java/server/generated/Server.java | 1374 |
1 files changed, 1134 insertions, 240 deletions
diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index 25c6496a..c87659ae 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -52,6 +52,8 @@ public class Server { public List<Image> getImageListPermissionLink(String userID) throws org.apache.thrift.TException; + public List<Image> getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException; + public List<Lecture> getLectureList() throws org.apache.thrift.TException; public List<Lecture> getLectureListPermissionRead(String userID) throws org.apache.thrift.TException; @@ -130,6 +132,8 @@ public class Server { public void getImageListPermissionLink(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getLectureListPermissionRead(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -411,6 +415,29 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionLink failed: unknown result"); } + public List<Image> getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + send_getImageListPermissionAdmin(userID); + return recv_getImageListPermissionAdmin(); + } + + public void send_getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException + { + getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); + args.setUserID(userID); + sendBase("getImageListPermissionAdmin", args); + } + + public List<Image> recv_getImageListPermissionAdmin() throws org.apache.thrift.TException + { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + receiveBase(result, "getImageListPermissionAdmin"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionAdmin failed: unknown result"); + } + public List<Lecture> getLectureList() throws org.apache.thrift.TException { send_getLectureList(); @@ -1473,6 +1500,38 @@ public class Server { } } + public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getImageListPermissionAdmin_call method_call = new getImageListPermissionAdmin_call(userID, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getImageListPermissionAdmin_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userID; + public getImageListPermissionAdmin_call(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userID = userID; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListPermissionAdmin", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageListPermissionAdmin_args args = new getImageListPermissionAdmin_args(); + args.setUserID(userID); + args.write(prot); + prot.writeMessageEnd(); + } + + public List<Image> getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getImageListPermissionAdmin(); + } + } + public void getLectureList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureList_call method_call = new getLectureList_call(resultHandler, this, ___protocolFactory, ___transport); @@ -2659,6 +2718,7 @@ public class Server { processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); + processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -2853,6 +2913,26 @@ public class Server { } } + public static class getImageListPermissionAdmin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageListPermissionAdmin_args> { + public getImageListPermissionAdmin() { + super("getImageListPermissionAdmin"); + } + + public getImageListPermissionAdmin_args getEmptyArgsInstance() { + return new getImageListPermissionAdmin_args(); + } + + protected boolean isOneway() { + return false; + } + + public getImageListPermissionAdmin_result getResult(I iface, getImageListPermissionAdmin_args args) throws org.apache.thrift.TException { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + result.success = iface.getImageListPermissionAdmin(args.userID); + return result; + } + } + public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> { public getLectureList() { super("getLectureList"); @@ -3468,6 +3548,7 @@ public class Server { processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); processMap.put("getImageListPermissionLink", new getImageListPermissionLink()); + processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead()); processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite()); @@ -3910,6 +3991,57 @@ public class Server { } } + public static class getImageListPermissionAdmin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageListPermissionAdmin_args, List<Image>> { + public getImageListPermissionAdmin() { + super("getImageListPermissionAdmin"); + } + + public getImageListPermissionAdmin_args getEmptyArgsInstance() { + return new getImageListPermissionAdmin_args(); + } + + public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback<List<Image>>() { + public void onComplete(List<Image> o) { + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getImageListPermissionAdmin_result result = new getImageListPermissionAdmin_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getImageListPermissionAdmin_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException { + iface.getImageListPermissionAdmin(args.userID,resultHandler); + } + } + public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> { public getLectureList() { super("getLectureList"); @@ -12887,6 +13019,768 @@ public class Server { } + public static class getImageListPermissionAdmin_args implements org.apache.thrift.TBase<getImageListPermissionAdmin_args, getImageListPermissionAdmin_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListPermissionAdmin_args> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionAdmin_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_args.class, metaDataMap); + } + + public getImageListPermissionAdmin_args() { + } + + public getImageListPermissionAdmin_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageListPermissionAdmin_args(getImageListPermissionAdmin_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionAdmin_args deepCopy() { + return new getImageListPermissionAdmin_args(this); + } + + @Override + public void clear() { + this.userID = null; + } + + public String getUserID() { + return this.userID; + } + + public getImageListPermissionAdmin_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_ID: + return isSetUserID(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionAdmin_args) + return this.equals((getImageListPermissionAdmin_args)that); + return false; + } + + public boolean equals(getImageListPermissionAdmin_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionAdmin_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { + sb.append("null"); + } else { + sb.append(this.userID); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionAdmin_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsStandardScheme getScheme() { + return new getImageListPermissionAdmin_argsStandardScheme(); + } + } + + private static class getImageListPermissionAdmin_argsStandardScheme extends StandardScheme<getImageListPermissionAdmin_args> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionAdmin_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_argsTupleScheme getScheme() { + return new getImageListPermissionAdmin_argsTupleScheme(); + } + } + + private static class getImageListPermissionAdmin_argsTupleScheme extends TupleScheme<getImageListPermissionAdmin_args> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserID()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); + } + } + } + + } + + public static class getImageListPermissionAdmin_result implements org.apache.thrift.TBase<getImageListPermissionAdmin_result, getImageListPermissionAdmin_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListPermissionAdmin_result> { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionAdmin_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionAdmin_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionAdmin_resultTupleSchemeFactory()); + } + + public List<Image> success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionAdmin_result.class, metaDataMap); + } + + public getImageListPermissionAdmin_result() { + } + + public getImageListPermissionAdmin_result( + List<Image> success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public getImageListPermissionAdmin_result(getImageListPermissionAdmin_result other) { + if (other.isSetSuccess()) { + List<Image> __this__success = new ArrayList<Image>(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageListPermissionAdmin_result deepCopy() { + return new getImageListPermissionAdmin_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator<Image> getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Image elem) { + if (this.success == null) { + this.success = new ArrayList<Image>(); + } + this.success.add(elem); + } + + public List<Image> getSuccess() { + return this.success; + } + + public getImageListPermissionAdmin_result setSuccess(List<Image> success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List<Image>)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionAdmin_result) + return this.equals((getImageListPermissionAdmin_result)that); + return false; + } + + public boolean equals(getImageListPermissionAdmin_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionAdmin_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionAdmin_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getImageListPermissionAdmin_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultStandardScheme getScheme() { + return new getImageListPermissionAdmin_resultStandardScheme(); + } + } + + private static class getImageListPermissionAdmin_resultStandardScheme extends StandardScheme<getImageListPermissionAdmin_result> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList<Image>(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) + { + Image _elem26; + _elem26 = new Image(); + _elem26.read(iprot); + struct.success.add(_elem26); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter27 : struct.success) + { + _iter27.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getImageListPermissionAdmin_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionAdmin_resultTupleScheme getScheme() { + return new getImageListPermissionAdmin_resultTupleScheme(); + } + } + + private static class getImageListPermissionAdmin_resultTupleScheme extends TupleScheme<getImageListPermissionAdmin_result> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Image _iter28 : struct.success) + { + _iter28.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionAdmin_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Image>(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) + { + Image _elem31; + _elem31 = new Image(); + _elem31.read(iprot); + struct.success.add(_elem31); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args"); @@ -13442,14 +14336,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Lecture _elem26; - _elem26 = new Lecture(); - _elem26.read(iprot); - struct.success.add(_elem26); + Lecture _elem34; + _elem34 = new Lecture(); + _elem34.read(iprot); + struct.success.add(_elem34); } iprot.readListEnd(); } @@ -13477,9 +14371,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter27 : struct.success) + for (Lecture _iter35 : struct.success) { - _iter27.write(oprot); + _iter35.write(oprot); } oprot.writeListEnd(); } @@ -13510,9 +14404,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter28 : struct.success) + for (Lecture _iter36 : struct.success) { - _iter28.write(oprot); + _iter36.write(oprot); } } } @@ -13524,14 +14418,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list37.size); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Lecture _elem31; - _elem31 = new Lecture(); - _elem31.read(iprot); - struct.success.add(_elem31); + Lecture _elem39; + _elem39 = new Lecture(); + _elem39.read(iprot); + struct.success.add(_elem39); } } struct.setSuccessIsSet(true); @@ -14204,14 +15098,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - Lecture _elem34; - _elem34 = new Lecture(); - _elem34.read(iprot); - struct.success.add(_elem34); + Lecture _elem42; + _elem42 = new Lecture(); + _elem42.read(iprot); + struct.success.add(_elem42); } iprot.readListEnd(); } @@ -14239,9 +15133,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter35 : struct.success) + for (Lecture _iter43 : struct.success) { - _iter35.write(oprot); + _iter43.write(oprot); } oprot.writeListEnd(); } @@ -14272,9 +15166,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter36 : struct.success) + for (Lecture _iter44 : struct.success) { - _iter36.write(oprot); + _iter44.write(oprot); } } } @@ -14286,14 +15180,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - Lecture _elem39; - _elem39 = new Lecture(); - _elem39.read(iprot); - struct.success.add(_elem39); + Lecture _elem47; + _elem47 = new Lecture(); + _elem47.read(iprot); + struct.success.add(_elem47); } } struct.setSuccessIsSet(true); @@ -14966,14 +15860,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list48.size); + for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Lecture _elem42; - _elem42 = new Lecture(); - _elem42.read(iprot); - struct.success.add(_elem42); + Lecture _elem50; + _elem50 = new Lecture(); + _elem50.read(iprot); + struct.success.add(_elem50); } iprot.readListEnd(); } @@ -15001,9 +15895,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter43 : struct.success) + for (Lecture _iter51 : struct.success) { - _iter43.write(oprot); + _iter51.write(oprot); } oprot.writeListEnd(); } @@ -15034,9 +15928,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter44 : struct.success) + for (Lecture _iter52 : struct.success) { - _iter44.write(oprot); + _iter52.write(oprot); } } } @@ -15048,14 +15942,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list53.size); + for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Lecture _elem47; - _elem47 = new Lecture(); - _elem47.read(iprot); - struct.success.add(_elem47); + Lecture _elem55; + _elem55 = new Lecture(); + _elem55.read(iprot); + struct.success.add(_elem55); } } struct.setSuccessIsSet(true); @@ -15728,14 +16622,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); - struct.success = new ArrayList<Lecture>(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); + struct.success = new ArrayList<Lecture>(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - Lecture _elem50; - _elem50 = new Lecture(); - _elem50.read(iprot); - struct.success.add(_elem50); + Lecture _elem58; + _elem58 = new Lecture(); + _elem58.read(iprot); + struct.success.add(_elem58); } iprot.readListEnd(); } @@ -15763,9 +16657,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter51 : struct.success) + for (Lecture _iter59 : struct.success) { - _iter51.write(oprot); + _iter59.write(oprot); } oprot.writeListEnd(); } @@ -15796,9 +16690,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter52 : struct.success) + for (Lecture _iter60 : struct.success) { - _iter52.write(oprot); + _iter60.write(oprot); } } } @@ -15810,14 +16704,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Lecture>(_list53.size); - for (int _i54 = 0; _i54 < _list53.size; ++_i54) + org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Lecture>(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - Lecture _elem55; - _elem55 = new Lecture(); - _elem55.read(iprot); - struct.success.add(_elem55); + Lecture _elem63; + _elem63 = new Lecture(); + _elem63.read(iprot); + struct.success.add(_elem63); } } struct.setSuccessIsSet(true); @@ -16379,13 +17273,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - String _elem58; - _elem58 = iprot.readString(); - struct.success.add(_elem58); + String _elem66; + _elem66 = iprot.readString(); + struct.success.add(_elem66); } iprot.readListEnd(); } @@ -16413,9 +17307,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter59 : struct.success) + for (String _iter67 : struct.success) { - oprot.writeString(_iter59); + oprot.writeString(_iter67); } oprot.writeListEnd(); } @@ -16446,9 +17340,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter60 : struct.success) + for (String _iter68 : struct.success) { - oprot.writeString(_iter60); + oprot.writeString(_iter68); } } } @@ -16460,13 +17354,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list61.size); - for (int _i62 = 0; _i62 < _list61.size; ++_i62) + org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list69.size); + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - String _elem63; - _elem63 = iprot.readString(); - struct.success.add(_elem63); + String _elem71; + _elem71 = iprot.readString(); + struct.success.add(_elem71); } } struct.setSuccessIsSet(true); @@ -17028,13 +17922,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); - struct.success = new ArrayList<String>(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); + struct.success = new ArrayList<String>(_list72.size); + for (int _i73 = 0; _i73 < _list72.size; ++_i73) { - String _elem66; - _elem66 = iprot.readString(); - struct.success.add(_elem66); + String _elem74; + _elem74 = iprot.readString(); + struct.success.add(_elem74); } iprot.readListEnd(); } @@ -17062,9 +17956,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter67 : struct.success) + for (String _iter75 : struct.success) { - oprot.writeString(_iter67); + oprot.writeString(_iter75); } oprot.writeListEnd(); } @@ -17095,9 +17989,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter68 : struct.success) + for (String _iter76 : struct.success) { - oprot.writeString(_iter68); + oprot.writeString(_iter76); } } } @@ -17109,13 +18003,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList<String>(_list69.size); - for (int _i70 = 0; _i70 < _list69.size; ++_i70) + org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList<String>(_list77.size); + for (int _i78 = 0; _i78 < _list77.size; ++_i78) { - String _elem71; - _elem71 = iprot.readString(); - struct.success.add(_elem71); + String _elem79; + _elem79 = iprot.readString(); + struct.success.add(_elem79); } } struct.setSuccessIsSet(true); @@ -17882,15 +18776,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map72.size); - for (int _i73 = 0; _i73 < _map72.size; ++_i73) + org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map80.size); + for (int _i81 = 0; _i81 < _map80.size; ++_i81) { - String _key74; - String _val75; - _key74 = iprot.readString(); - _val75 = iprot.readString(); - struct.success.put(_key74, _val75); + String _key82; + String _val83; + _key82 = iprot.readString(); + _val83 = iprot.readString(); + struct.success.put(_key82, _val83); } iprot.readMapEnd(); } @@ -17918,10 +18812,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter76 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter84 : struct.success.entrySet()) { - oprot.writeString(_iter76.getKey()); - oprot.writeString(_iter76.getValue()); + oprot.writeString(_iter84.getKey()); + oprot.writeString(_iter84.getValue()); } oprot.writeMapEnd(); } @@ -17952,10 +18846,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter77 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter85 : struct.success.entrySet()) { - oprot.writeString(_iter77.getKey()); - oprot.writeString(_iter77.getValue()); + oprot.writeString(_iter85.getKey()); + oprot.writeString(_iter85.getValue()); } } } @@ -17967,15 +18861,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map78.size); - for (int _i79 = 0; _i79 < _map78.size; ++_i79) + org.apache.thrift.protocol.TMap _map86 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map86.size); + for (int _i87 = 0; _i87 < _map86.size; ++_i87) { - String _key80; - String _val81; - _key80 = iprot.readString(); - _val81 = iprot.readString(); - struct.success.put(_key80, _val81); + String _key88; + String _val89; + _key88 = iprot.readString(); + _val89 = iprot.readString(); + struct.success.put(_key88, _val89); } } struct.setSuccessIsSet(true); @@ -22456,15 +23350,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map82.size); - for (int _i83 = 0; _i83 < _map82.size; ++_i83) + org.apache.thrift.protocol.TMap _map90 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map90.size); + for (int _i91 = 0; _i91 < _map90.size; ++_i91) { - String _key84; - String _val85; - _key84 = iprot.readString(); - _val85 = iprot.readString(); - struct.success.put(_key84, _val85); + String _key92; + String _val93; + _key92 = iprot.readString(); + _val93 = iprot.readString(); + struct.success.put(_key92, _val93); } iprot.readMapEnd(); } @@ -22492,10 +23386,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter86 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter94 : struct.success.entrySet()) { - oprot.writeString(_iter86.getKey()); - oprot.writeString(_iter86.getValue()); + oprot.writeString(_iter94.getKey()); + oprot.writeString(_iter94.getValue()); } oprot.writeMapEnd(); } @@ -22526,10 +23420,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter87 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter95 : struct.success.entrySet()) { - oprot.writeString(_iter87.getKey()); - oprot.writeString(_iter87.getValue()); + oprot.writeString(_iter95.getKey()); + oprot.writeString(_iter95.getValue()); } } } @@ -22541,15 +23435,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map88.size); - for (int _i89 = 0; _i89 < _map88.size; ++_i89) + org.apache.thrift.protocol.TMap _map96 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map96.size); + for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _key90; - String _val91; - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.success.put(_key90, _val91); + String _key98; + String _val99; + _key98 = iprot.readString(); + _val99 = iprot.readString(); + struct.success.put(_key98, _val99); } } struct.setSuccessIsSet(true); @@ -23216,15 +24110,15 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(); - struct.success = new HashMap<String,String>(2*_map92.size); - for (int _i93 = 0; _i93 < _map92.size; ++_i93) + org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(); + struct.success = new HashMap<String,String>(2*_map100.size); + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - String _key94; - String _val95; - _key94 = iprot.readString(); - _val95 = iprot.readString(); - struct.success.put(_key94, _val95); + String _key102; + String _val103; + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.success.put(_key102, _val103); } iprot.readMapEnd(); } @@ -23252,10 +24146,10 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry<String, String> _iter96 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter104 : struct.success.entrySet()) { - oprot.writeString(_iter96.getKey()); - oprot.writeString(_iter96.getValue()); + oprot.writeString(_iter104.getKey()); + oprot.writeString(_iter104.getValue()); } oprot.writeMapEnd(); } @@ -23286,10 +24180,10 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry<String, String> _iter97 : struct.success.entrySet()) + for (Map.Entry<String, String> _iter105 : struct.success.entrySet()) { - oprot.writeString(_iter97.getKey()); - oprot.writeString(_iter97.getValue()); + oprot.writeString(_iter105.getKey()); + oprot.writeString(_iter105.getValue()); } } } @@ -23301,15 +24195,15 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map98 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap<String,String>(2*_map98.size); - for (int _i99 = 0; _i99 < _map98.size; ++_i99) + org.apache.thrift.protocol.TMap _map106 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap<String,String>(2*_map106.size); + for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key100; - String _val101; - _key100 = iprot.readString(); - _val101 = iprot.readString(); - struct.success.put(_key100, _val101); + String _key108; + String _val109; + _key108 = iprot.readString(); + _val109 = iprot.readString(); + struct.success.put(_key108, _val109); } } struct.setSuccessIsSet(true); @@ -37947,13 +38841,13 @@ public class Server { case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); - struct.userID = new ArrayList<String>(_list102.size); - for (int _i103 = 0; _i103 < _list102.size; ++_i103) + org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); + struct.userID = new ArrayList<String>(_list110.size); + for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - String _elem104; - _elem104 = iprot.readString(); - struct.userID.add(_elem104); + String _elem112; + _elem112 = iprot.readString(); + struct.userID.add(_elem112); } iprot.readListEnd(); } @@ -37981,9 +38875,9 @@ public class Server { oprot.writeFieldBegin(USER_ID_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.userID.size())); - for (String _iter105 : struct.userID) + for (String _iter113 : struct.userID) { - oprot.writeString(_iter105); + oprot.writeString(_iter113); } oprot.writeListEnd(); } @@ -38014,9 +38908,9 @@ public class Server { if (struct.isSetUserID()) { { oprot.writeI32(struct.userID.size()); - for (String _iter106 : struct.userID) + for (String _iter114 : struct.userID) { - oprot.writeString(_iter106); + oprot.writeString(_iter114); } } } @@ -38028,13 +38922,13 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.userID = new ArrayList<String>(_list107.size); - for (int _i108 = 0; _i108 < _list107.size; ++_i108) + org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.userID = new ArrayList<String>(_list115.size); + for (int _i116 = 0; _i116 < _list115.size; ++_i116) { - String _elem109; - _elem109 = iprot.readString(); - struct.userID.add(_elem109); + String _elem117; + _elem117 = iprot.readString(); + struct.userID.add(_elem117); } } struct.setUserIDIsSet(true); @@ -38353,14 +39247,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list110.size); - for (int _i111 = 0; _i111 < _list110.size; ++_i111) + org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list118.size); + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - Person _elem112; - _elem112 = new Person(); - _elem112.read(iprot); - struct.success.add(_elem112); + Person _elem120; + _elem120 = new Person(); + _elem120.read(iprot); + struct.success.add(_elem120); } iprot.readListEnd(); } @@ -38388,9 +39282,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter113 : struct.success) + for (Person _iter121 : struct.success) { - _iter113.write(oprot); + _iter121.write(oprot); } oprot.writeListEnd(); } @@ -38421,9 +39315,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter114 : struct.success) + for (Person _iter122 : struct.success) { - _iter114.write(oprot); + _iter122.write(oprot); } } } @@ -38435,14 +39329,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list115.size); - for (int _i116 = 0; _i116 < _list115.size; ++_i116) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list123.size); + for (int _i124 = 0; _i124 < _list123.size; ++_i124) { - Person _elem117; - _elem117 = new Person(); - _elem117.read(iprot); - struct.success.add(_elem117); + Person _elem125; + _elem125 = new Person(); + _elem125.read(iprot); + struct.success.add(_elem125); } } struct.setSuccessIsSet(true); @@ -39215,14 +40109,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list118.size); - for (int _i119 = 0; _i119 < _list118.size; ++_i119) + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list126.size); + for (int _i127 = 0; _i127 < _list126.size; ++_i127) { - Person _elem120; - _elem120 = new Person(); - _elem120.read(iprot); - struct.success.add(_elem120); + Person _elem128; + _elem128 = new Person(); + _elem128.read(iprot); + struct.success.add(_elem128); } iprot.readListEnd(); } @@ -39250,9 +40144,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 _iter121 : struct.success) + for (Person _iter129 : struct.success) { - _iter121.write(oprot); + _iter129.write(oprot); } oprot.writeListEnd(); } @@ -39283,9 +40177,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter122 : struct.success) + for (Person _iter130 : struct.success) { - _iter122.write(oprot); + _iter130.write(oprot); } } } @@ -39297,14 +40191,14 @@ public class Server { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list123.size); - for (int _i124 = 0; _i124 < _list123.size; ++_i124) + org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list131.size); + for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - Person _elem125; - _elem125 = new Person(); - _elem125.read(iprot); - struct.success.add(_elem125); + Person _elem133; + _elem133 = new Person(); + _elem133.read(iprot); + struct.success.add(_elem133); } } struct.setSuccessIsSet(true); @@ -40077,14 +40971,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(); - struct.success = new ArrayList<Person>(_list126.size); - for (int _i127 = 0; _i127 < _list126.size; ++_i127) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.success = new ArrayList<Person>(_list134.size); + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - Person _elem128; - _elem128 = new Person(); - _elem128.read(iprot); - struct.success.add(_elem128); + Person _elem136; + _elem136 = new Person(); + _elem136.read(iprot); + struct.success.add(_elem136); } iprot.readListEnd(); } @@ -40112,9 +41006,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Person _iter129 : struct.success) + for (Person _iter137 : struct.success) { - _iter129.write(oprot); + _iter137.write(oprot); } oprot.writeListEnd(); } @@ -40145,9 +41039,9 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Person _iter130 : struct.success) + for (Person _iter138 : struct.success) { - _iter130.write(oprot); + _iter138.write(oprot); } } } @@ -40159,14 +41053,14 @@ public class Server { 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.STRUCT, iprot.readI32()); - struct.success = new ArrayList<Person>(_list131.size); - for (int _i132 = 0; _i132 < _list131.size; ++_i132) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList<Person>(_list139.size); + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - Person _elem133; - _elem133 = new Person(); - _elem133.read(iprot); - struct.success.add(_elem133); + Person _elem141; + _elem141 = new Person(); + _elem141.read(iprot); + struct.success.add(_elem141); } } struct.setSuccessIsSet(true); |
