summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/server
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/server')
-rw-r--r--dozentenmodulserver/src/main/java/server/ServerHandler.java8
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Server.java1262
2 files changed, 1029 insertions, 241 deletions
diff --git a/dozentenmodulserver/src/main/java/server/ServerHandler.java b/dozentenmodulserver/src/main/java/server/ServerHandler.java
index a6412e24..054ab706 100644
--- a/dozentenmodulserver/src/main/java/server/ServerHandler.java
+++ b/dozentenmodulserver/src/main/java/server/ServerHandler.java
@@ -213,7 +213,7 @@ public class ServerHandler implements Server.Iface {
@Override
public List<Image> getImageListPermissionLink(String userID)
throws TException {
- return sql.getImageListPermissionRead(userID);
+ return sql.getImageListPermissionLink(userID);
}
@Override
@@ -222,6 +222,12 @@ public class ServerHandler implements Server.Iface {
return sql.getImageListPermissionAdmin(userID);
}
+ @Override
+ public List<Image> getImageListAllTemplates()
+ throws TException {
+ return sql.getImageListAllTemplates();
+ }
+
@Override
public List<String> getAllOS() throws TException {
diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java
index c87659ae..088b4293 100644
--- a/dozentenmodulserver/src/main/java/server/generated/Server.java
+++ b/dozentenmodulserver/src/main/java/server/generated/Server.java
@@ -54,6 +54,8 @@ public class Server {
public List<Image> getImageListPermissionAdmin(String userID) throws org.apache.thrift.TException;
+ public List<Image> getImageListAllTemplates() 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;
@@ -134,6 +136,8 @@ public class Server {
public void getImageListPermissionAdmin(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getImageListAllTemplates(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;
@@ -438,6 +442,28 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListPermissionAdmin failed: unknown result");
}
+ public List<Image> getImageListAllTemplates() throws org.apache.thrift.TException
+ {
+ send_getImageListAllTemplates();
+ return recv_getImageListAllTemplates();
+ }
+
+ public void send_getImageListAllTemplates() throws org.apache.thrift.TException
+ {
+ getImageListAllTemplates_args args = new getImageListAllTemplates_args();
+ sendBase("getImageListAllTemplates", args);
+ }
+
+ public List<Image> recv_getImageListAllTemplates() throws org.apache.thrift.TException
+ {
+ getImageListAllTemplates_result result = new getImageListAllTemplates_result();
+ receiveBase(result, "getImageListAllTemplates");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageListAllTemplates failed: unknown result");
+ }
+
public List<Lecture> getLectureList() throws org.apache.thrift.TException
{
send_getLectureList();
@@ -1532,6 +1558,35 @@ public class Server {
}
}
+ public void getImageListAllTemplates(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getImageListAllTemplates_call method_call = new getImageListAllTemplates_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getImageListAllTemplates_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public getImageListAllTemplates_call(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);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageListAllTemplates", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getImageListAllTemplates_args args = new getImageListAllTemplates_args();
+ 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_getImageListAllTemplates();
+ }
+ }
+
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);
@@ -2719,6 +2774,7 @@ public class Server {
processMap.put("getImageListPermissionRead", new getImageListPermissionRead());
processMap.put("getImageListPermissionLink", new getImageListPermissionLink());
processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin());
+ processMap.put("getImageListAllTemplates", new getImageListAllTemplates());
processMap.put("getLectureList", new getLectureList());
processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead());
processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite());
@@ -2933,6 +2989,26 @@ public class Server {
}
}
+ public static class getImageListAllTemplates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageListAllTemplates_args> {
+ public getImageListAllTemplates() {
+ super("getImageListAllTemplates");
+ }
+
+ public getImageListAllTemplates_args getEmptyArgsInstance() {
+ return new getImageListAllTemplates_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getImageListAllTemplates_result getResult(I iface, getImageListAllTemplates_args args) throws org.apache.thrift.TException {
+ getImageListAllTemplates_result result = new getImageListAllTemplates_result();
+ result.success = iface.getImageListAllTemplates();
+ return result;
+ }
+ }
+
public static class getLectureList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureList_args> {
public getLectureList() {
super("getLectureList");
@@ -3549,6 +3625,7 @@ public class Server {
processMap.put("getImageListPermissionRead", new getImageListPermissionRead());
processMap.put("getImageListPermissionLink", new getImageListPermissionLink());
processMap.put("getImageListPermissionAdmin", new getImageListPermissionAdmin());
+ processMap.put("getImageListAllTemplates", new getImageListAllTemplates());
processMap.put("getLectureList", new getLectureList());
processMap.put("getLectureListPermissionRead", new getLectureListPermissionRead());
processMap.put("getLectureListPermissionWrite", new getLectureListPermissionWrite());
@@ -4042,6 +4119,57 @@ public class Server {
}
}
+ public static class getImageListAllTemplates<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageListAllTemplates_args, List<Image>> {
+ public getImageListAllTemplates() {
+ super("getImageListAllTemplates");
+ }
+
+ public getImageListAllTemplates_args getEmptyArgsInstance() {
+ return new getImageListAllTemplates_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) {
+ getImageListAllTemplates_result result = new getImageListAllTemplates_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;
+ getImageListAllTemplates_result result = new getImageListAllTemplates_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, getImageListAllTemplates_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException {
+ iface.getImageListAllTemplates(resultHandler);
+ }
+ }
+
public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<Lecture>> {
public getLectureList() {
super("getLectureList");
@@ -13781,6 +13909,660 @@ public class Server {
}
+ public static class getImageListAllTemplates_args implements org.apache.thrift.TBase<getImageListAllTemplates_args, getImageListAllTemplates_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListAllTemplates_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListAllTemplates_args");
+
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getImageListAllTemplates_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getImageListAllTemplates_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<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListAllTemplates_args.class, metaDataMap);
+ }
+
+ public getImageListAllTemplates_args() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getImageListAllTemplates_args(getImageListAllTemplates_args other) {
+ }
+
+ public getImageListAllTemplates_args deepCopy() {
+ return new getImageListAllTemplates_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 getImageListAllTemplates_args)
+ return this.equals((getImageListAllTemplates_args)that);
+ return false;
+ }
+
+ public boolean equals(getImageListAllTemplates_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getImageListAllTemplates_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("getImageListAllTemplates_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 getImageListAllTemplates_argsStandardSchemeFactory implements SchemeFactory {
+ public getImageListAllTemplates_argsStandardScheme getScheme() {
+ return new getImageListAllTemplates_argsStandardScheme();
+ }
+ }
+
+ private static class getImageListAllTemplates_argsStandardScheme extends StandardScheme<getImageListAllTemplates_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_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, getImageListAllTemplates_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getImageListAllTemplates_argsTupleSchemeFactory implements SchemeFactory {
+ public getImageListAllTemplates_argsTupleScheme getScheme() {
+ return new getImageListAllTemplates_argsTupleScheme();
+ }
+ }
+
+ private static class getImageListAllTemplates_argsTupleScheme extends TupleScheme<getImageListAllTemplates_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ }
+ }
+
+ }
+
+ public static class getImageListAllTemplates_result implements org.apache.thrift.TBase<getImageListAllTemplates_result, getImageListAllTemplates_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageListAllTemplates_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListAllTemplates_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 getImageListAllTemplates_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getImageListAllTemplates_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(getImageListAllTemplates_result.class, metaDataMap);
+ }
+
+ public getImageListAllTemplates_result() {
+ }
+
+ public getImageListAllTemplates_result(
+ List<Image> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getImageListAllTemplates_result(getImageListAllTemplates_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 getImageListAllTemplates_result deepCopy() {
+ return new getImageListAllTemplates_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 getImageListAllTemplates_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 getImageListAllTemplates_result)
+ return this.equals((getImageListAllTemplates_result)that);
+ return false;
+ }
+
+ public boolean equals(getImageListAllTemplates_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(getImageListAllTemplates_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("getImageListAllTemplates_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 getImageListAllTemplates_resultStandardSchemeFactory implements SchemeFactory {
+ public getImageListAllTemplates_resultStandardScheme getScheme() {
+ return new getImageListAllTemplates_resultStandardScheme();
+ }
+ }
+
+ private static class getImageListAllTemplates_resultStandardScheme extends StandardScheme<getImageListAllTemplates_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListAllTemplates_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 _list32 = iprot.readListBegin();
+ struct.success = new ArrayList<Image>(_list32.size);
+ for (int _i33 = 0; _i33 < _list32.size; ++_i33)
+ {
+ Image _elem34;
+ _elem34 = new Image();
+ _elem34.read(iprot);
+ struct.success.add(_elem34);
+ }
+ 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, getImageListAllTemplates_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 _iter35 : struct.success)
+ {
+ _iter35.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getImageListAllTemplates_resultTupleSchemeFactory implements SchemeFactory {
+ public getImageListAllTemplates_resultTupleScheme getScheme() {
+ return new getImageListAllTemplates_resultTupleScheme();
+ }
+ }
+
+ private static class getImageListAllTemplates_resultTupleScheme extends TupleScheme<getImageListAllTemplates_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_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 _iter36 : struct.success)
+ {
+ _iter36.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getImageListAllTemplates_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 _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Image>(_list37.size);
+ for (int _i38 = 0; _i38 < _list37.size; ++_i38)
+ {
+ Image _elem39;
+ _elem39 = new Image();
+ _elem39.read(iprot);
+ struct.success.add(_elem39);
+ }
+ }
+ 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");
@@ -14336,14 +15118,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();
}
@@ -14371,9 +15153,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();
}
@@ -14404,9 +15186,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);
}
}
}
@@ -14418,14 +15200,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);
@@ -15098,14 +15880,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();
}
@@ -15133,9 +15915,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();
}
@@ -15166,9 +15948,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);
}
}
}
@@ -15180,14 +15962,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);
@@ -15860,14 +16642,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();
}
@@ -15895,9 +16677,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();
}
@@ -15928,9 +16710,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);
}
}
}
@@ -15942,14 +16724,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);
@@ -16622,14 +17404,14 @@ 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<Lecture>(_list56.size);
- for (int _i57 = 0; _i57 < _list56.size; ++_i57)
+ org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
+ struct.success = new ArrayList<Lecture>(_list64.size);
+ for (int _i65 = 0; _i65 < _list64.size; ++_i65)
{
- Lecture _elem58;
- _elem58 = new Lecture();
- _elem58.read(iprot);
- struct.success.add(_elem58);
+ Lecture _elem66;
+ _elem66 = new Lecture();
+ _elem66.read(iprot);
+ struct.success.add(_elem66);
}
iprot.readListEnd();
}
@@ -16657,9 +17439,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 _iter59 : struct.success)
+ for (Lecture _iter67 : struct.success)
{
- _iter59.write(oprot);
+ _iter67.write(oprot);
}
oprot.writeListEnd();
}
@@ -16690,9 +17472,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Lecture _iter60 : struct.success)
+ for (Lecture _iter68 : struct.success)
{
- _iter60.write(oprot);
+ _iter68.write(oprot);
}
}
}
@@ -16704,14 +17486,14 @@ 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.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Lecture>(_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.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Lecture>(_list69.size);
+ for (int _i70 = 0; _i70 < _list69.size; ++_i70)
{
- Lecture _elem63;
- _elem63 = new Lecture();
- _elem63.read(iprot);
- struct.success.add(_elem63);
+ Lecture _elem71;
+ _elem71 = new Lecture();
+ _elem71.read(iprot);
+ struct.success.add(_elem71);
}
}
struct.setSuccessIsSet(true);
@@ -17273,13 +18055,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();
}
@@ -17307,9 +18089,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();
}
@@ -17340,9 +18122,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);
}
}
}
@@ -17354,13 +18136,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);
@@ -17922,13 +18704,13 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list72.size);
- for (int _i73 = 0; _i73 < _list72.size; ++_i73)
+ org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list80.size);
+ for (int _i81 = 0; _i81 < _list80.size; ++_i81)
{
- String _elem74;
- _elem74 = iprot.readString();
- struct.success.add(_elem74);
+ String _elem82;
+ _elem82 = iprot.readString();
+ struct.success.add(_elem82);
}
iprot.readListEnd();
}
@@ -17956,9 +18738,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 _iter75 : struct.success)
+ for (String _iter83 : struct.success)
{
- oprot.writeString(_iter75);
+ oprot.writeString(_iter83);
}
oprot.writeListEnd();
}
@@ -17989,9 +18771,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter76 : struct.success)
+ for (String _iter84 : struct.success)
{
- oprot.writeString(_iter76);
+ oprot.writeString(_iter84);
}
}
}
@@ -18003,13 +18785,13 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- 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)
+ org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list85.size);
+ for (int _i86 = 0; _i86 < _list85.size; ++_i86)
{
- String _elem79;
- _elem79 = iprot.readString();
- struct.success.add(_elem79);
+ String _elem87;
+ _elem87 = iprot.readString();
+ struct.success.add(_elem87);
}
}
struct.setSuccessIsSet(true);
@@ -18776,15 +19558,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map88.size);
+ for (int _i89 = 0; _i89 < _map88.size; ++_i89)
{
- String _key82;
- String _val83;
- _key82 = iprot.readString();
- _val83 = iprot.readString();
- struct.success.put(_key82, _val83);
+ String _key90;
+ String _val91;
+ _key90 = iprot.readString();
+ _val91 = iprot.readString();
+ struct.success.put(_key90, _val91);
}
iprot.readMapEnd();
}
@@ -18812,10 +19594,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> _iter84 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter92 : struct.success.entrySet())
{
- oprot.writeString(_iter84.getKey());
- oprot.writeString(_iter84.getValue());
+ oprot.writeString(_iter92.getKey());
+ oprot.writeString(_iter92.getValue());
}
oprot.writeMapEnd();
}
@@ -18846,10 +19628,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter85 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter93 : struct.success.entrySet())
{
- oprot.writeString(_iter85.getKey());
- oprot.writeString(_iter85.getValue());
+ oprot.writeString(_iter93.getKey());
+ oprot.writeString(_iter93.getValue());
}
}
}
@@ -18861,15 +19643,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map94 = 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*_map94.size);
+ for (int _i95 = 0; _i95 < _map94.size; ++_i95)
{
- String _key88;
- String _val89;
- _key88 = iprot.readString();
- _val89 = iprot.readString();
- struct.success.put(_key88, _val89);
+ String _key96;
+ String _val97;
+ _key96 = iprot.readString();
+ _val97 = iprot.readString();
+ struct.success.put(_key96, _val97);
}
}
struct.setSuccessIsSet(true);
@@ -23350,15 +24132,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map98.size);
+ for (int _i99 = 0; _i99 < _map98.size; ++_i99)
{
- String _key92;
- String _val93;
- _key92 = iprot.readString();
- _val93 = iprot.readString();
- struct.success.put(_key92, _val93);
+ String _key100;
+ String _val101;
+ _key100 = iprot.readString();
+ _val101 = iprot.readString();
+ struct.success.put(_key100, _val101);
}
iprot.readMapEnd();
}
@@ -23386,10 +24168,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> _iter94 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter102 : struct.success.entrySet())
{
- oprot.writeString(_iter94.getKey());
- oprot.writeString(_iter94.getValue());
+ oprot.writeString(_iter102.getKey());
+ oprot.writeString(_iter102.getValue());
}
oprot.writeMapEnd();
}
@@ -23420,10 +24202,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter95 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter103 : struct.success.entrySet())
{
- oprot.writeString(_iter95.getKey());
- oprot.writeString(_iter95.getValue());
+ oprot.writeString(_iter103.getKey());
+ oprot.writeString(_iter103.getValue());
}
}
}
@@ -23435,15 +24217,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map104 = 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*_map104.size);
+ for (int _i105 = 0; _i105 < _map104.size; ++_i105)
{
- String _key98;
- String _val99;
- _key98 = iprot.readString();
- _val99 = iprot.readString();
- struct.success.put(_key98, _val99);
+ String _key106;
+ String _val107;
+ _key106 = iprot.readString();
+ _val107 = iprot.readString();
+ struct.success.put(_key106, _val107);
}
}
struct.setSuccessIsSet(true);
@@ -24110,15 +24892,15 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin();
+ struct.success = new HashMap<String,String>(2*_map108.size);
+ for (int _i109 = 0; _i109 < _map108.size; ++_i109)
{
- String _key102;
- String _val103;
- _key102 = iprot.readString();
- _val103 = iprot.readString();
- struct.success.put(_key102, _val103);
+ String _key110;
+ String _val111;
+ _key110 = iprot.readString();
+ _val111 = iprot.readString();
+ struct.success.put(_key110, _val111);
}
iprot.readMapEnd();
}
@@ -24146,10 +24928,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> _iter104 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter112 : struct.success.entrySet())
{
- oprot.writeString(_iter104.getKey());
- oprot.writeString(_iter104.getValue());
+ oprot.writeString(_iter112.getKey());
+ oprot.writeString(_iter112.getValue());
}
oprot.writeMapEnd();
}
@@ -24180,10 +24962,10 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, String> _iter105 : struct.success.entrySet())
+ for (Map.Entry<String, String> _iter113 : struct.success.entrySet())
{
- oprot.writeString(_iter105.getKey());
- oprot.writeString(_iter105.getValue());
+ oprot.writeString(_iter113.getKey());
+ oprot.writeString(_iter113.getValue());
}
}
}
@@ -24195,15 +24977,15 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- 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)
+ org.apache.thrift.protocol.TMap _map114 = 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*_map114.size);
+ for (int _i115 = 0; _i115 < _map114.size; ++_i115)
{
- String _key108;
- String _val109;
- _key108 = iprot.readString();
- _val109 = iprot.readString();
- struct.success.put(_key108, _val109);
+ String _key116;
+ String _val117;
+ _key116 = iprot.readString();
+ _val117 = iprot.readString();
+ struct.success.put(_key116, _val117);
}
}
struct.setSuccessIsSet(true);
@@ -38841,13 +39623,13 @@ public class Server {
case 1: // USER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
- struct.userID = new ArrayList<String>(_list110.size);
- for (int _i111 = 0; _i111 < _list110.size; ++_i111)
+ org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
+ struct.userID = new ArrayList<String>(_list118.size);
+ for (int _i119 = 0; _i119 < _list118.size; ++_i119)
{
- String _elem112;
- _elem112 = iprot.readString();
- struct.userID.add(_elem112);
+ String _elem120;
+ _elem120 = iprot.readString();
+ struct.userID.add(_elem120);
}
iprot.readListEnd();
}
@@ -38875,9 +39657,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 _iter113 : struct.userID)
+ for (String _iter121 : struct.userID)
{
- oprot.writeString(_iter113);
+ oprot.writeString(_iter121);
}
oprot.writeListEnd();
}
@@ -38908,9 +39690,9 @@ public class Server {
if (struct.isSetUserID()) {
{
oprot.writeI32(struct.userID.size());
- for (String _iter114 : struct.userID)
+ for (String _iter122 : struct.userID)
{
- oprot.writeString(_iter114);
+ oprot.writeString(_iter122);
}
}
}
@@ -38922,13 +39704,13 @@ 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.STRING, iprot.readI32());
- struct.userID = new ArrayList<String>(_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.STRING, iprot.readI32());
+ struct.userID = new ArrayList<String>(_list123.size);
+ for (int _i124 = 0; _i124 < _list123.size; ++_i124)
{
- String _elem117;
- _elem117 = iprot.readString();
- struct.userID.add(_elem117);
+ String _elem125;
+ _elem125 = iprot.readString();
+ struct.userID.add(_elem125);
}
}
struct.setUserIDIsSet(true);
@@ -39247,14 +40029,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();
}
@@ -39282,9 +40064,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();
}
@@ -39315,9 +40097,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);
}
}
}
@@ -39329,14 +40111,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);
@@ -40109,14 +40891,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();
}
@@ -40144,9 +40926,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();
}
@@ -40177,9 +40959,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);
}
}
}
@@ -40191,14 +40973,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);
@@ -40971,14 +41753,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<Person>(_list134.size);
- for (int _i135 = 0; _i135 < _list134.size; ++_i135)
+ org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
+ struct.success = new ArrayList<Person>(_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();
}
@@ -41006,9 +41788,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();
}
@@ -41039,9 +41821,9 @@ 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);
}
}
}
@@ -41053,14 +41835,14 @@ public class Server {
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<Person>(_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<Person>(_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);