summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/server
diff options
context:
space:
mode:
authorNino Breuer2014-11-11 16:49:04 +0100
committerNino Breuer2014-11-11 16:49:04 +0100
commitb8ef5d05efbc773eb87844911e8b103ce5acfca8 (patch)
treef39ed66637a73dd91d76da240571a9ca2c6f8559 /dozentenmodulserver/src/main/java/server
parentmain mainu now not resizable (diff)
downloadtutor-module-b8ef5d05efbc773eb87844911e8b103ce5acfca8.tar.gz
tutor-module-b8ef5d05efbc773eb87844911e8b103ce5acfca8.tar.xz
tutor-module-b8ef5d05efbc773eb87844911e8b103ce5acfca8.zip
h
Diffstat (limited to 'dozentenmodulserver/src/main/java/server')
-rw-r--r--dozentenmodulserver/src/main/java/server/ServerHandler.java7
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Image.java108
-rw-r--r--dozentenmodulserver/src/main/java/server/generated/Server.java926
3 files changed, 1018 insertions, 23 deletions
diff --git a/dozentenmodulserver/src/main/java/server/ServerHandler.java b/dozentenmodulserver/src/main/java/server/ServerHandler.java
index 44f97308..9800b8bc 100644
--- a/dozentenmodulserver/src/main/java/server/ServerHandler.java
+++ b/dozentenmodulserver/src/main/java/server/ServerHandler.java
@@ -666,5 +666,12 @@ public class ServerHandler implements Server.Iface {
return sql.getImageList(userID);
}
+ @Override
+ public List<String> getAdditionalImageContacts(String imageID)
+ throws TException {
+
+ return sql.getAdditionalImageContacts(imageID);
+ }
+
}// end class
diff --git a/dozentenmodulserver/src/main/java/server/generated/Image.java b/dozentenmodulserver/src/main/java/server/generated/Image.java
index 707864e6..37412c71 100644
--- a/dozentenmodulserver/src/main/java/server/generated/Image.java
+++ b/dozentenmodulserver/src/main/java/server/generated/Image.java
@@ -45,6 +45,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
private static final org.apache.thrift.protocol.TField USER_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userData", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.STRING, (short)9);
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)10);
+ private static final org.apache.thrift.protocol.TField IMAGE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("imageSize", org.apache.thrift.protocol.TType.STRING, (short)11);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -62,6 +63,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
public String userData; // required
public String isTemplate; // required
public String description; // required
+ public String imageSize; // 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 {
@@ -74,7 +76,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
UPDATE_TIME((short)7, "updateTime"),
USER_DATA((short)8, "userData"),
IS_TEMPLATE((short)9, "isTemplate"),
- DESCRIPTION((short)10, "description");
+ DESCRIPTION((short)10, "description"),
+ IMAGE_SIZE((short)11, "imageSize");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -109,6 +112,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
return IS_TEMPLATE;
case 10: // DESCRIPTION
return DESCRIPTION;
+ case 11: // IMAGE_SIZE
+ return IMAGE_SIZE;
default:
return null;
}
@@ -172,6 +177,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IMAGE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("imageSize", 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(Image.class, metaDataMap);
}
@@ -189,7 +196,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
String updateTime,
String userData,
String isTemplate,
- String description)
+ String description,
+ String imageSize)
{
this();
this.id = id;
@@ -202,6 +210,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
this.userData = userData;
this.isTemplate = isTemplate;
this.description = description;
+ this.imageSize = imageSize;
}
/**
@@ -238,6 +247,9 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
if (other.isSetDescription()) {
this.description = other.description;
}
+ if (other.isSetImageSize()) {
+ this.imageSize = other.imageSize;
+ }
}
public Image deepCopy() {
@@ -256,6 +268,7 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
this.userData = null;
this.isTemplate = null;
this.description = null;
+ this.imageSize = null;
}
public String getId() {
@@ -498,6 +511,30 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
}
}
+ public String getImageSize() {
+ return this.imageSize;
+ }
+
+ public Image setImageSize(String imageSize) {
+ this.imageSize = imageSize;
+ return this;
+ }
+
+ public void unsetImageSize() {
+ this.imageSize = null;
+ }
+
+ /** Returns true if field imageSize is set (has been assigned a value) and false otherwise */
+ public boolean isSetImageSize() {
+ return this.imageSize != null;
+ }
+
+ public void setImageSizeIsSet(boolean value) {
+ if (!value) {
+ this.imageSize = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case ID:
@@ -580,6 +617,14 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
}
break;
+ case IMAGE_SIZE:
+ if (value == null) {
+ unsetImageSize();
+ } else {
+ setImageSize((String)value);
+ }
+ break;
+
}
}
@@ -615,6 +660,9 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
case DESCRIPTION:
return getDescription();
+ case IMAGE_SIZE:
+ return getImageSize();
+
}
throw new IllegalStateException();
}
@@ -646,6 +694,8 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
return isSetIsTemplate();
case DESCRIPTION:
return isSetDescription();
+ case IMAGE_SIZE:
+ return isSetImageSize();
}
throw new IllegalStateException();
}
@@ -753,6 +803,15 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
return false;
}
+ boolean this_present_imageSize = true && this.isSetImageSize();
+ boolean that_present_imageSize = true && that.isSetImageSize();
+ if (this_present_imageSize || that_present_imageSize) {
+ if (!(this_present_imageSize && that_present_imageSize))
+ return false;
+ if (!this.imageSize.equals(that.imageSize))
+ return false;
+ }
+
return true;
}
@@ -869,6 +928,16 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetImageSize()).compareTo(other.isSetImageSize());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImageSize()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageSize, other.imageSize);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -968,6 +1037,14 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
sb.append(this.description);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("imageSize:");
+ if (this.imageSize == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imageSize);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -1091,6 +1168,14 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 11: // IMAGE_SIZE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imageSize = iprot.readString();
+ struct.setImageSizeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -1156,6 +1241,11 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
oprot.writeString(struct.description);
oprot.writeFieldEnd();
}
+ if (struct.imageSize != null) {
+ oprot.writeFieldBegin(IMAGE_SIZE_FIELD_DESC);
+ oprot.writeString(struct.imageSize);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -1204,7 +1294,10 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
if (struct.isSetDescription()) {
optionals.set(9);
}
- oprot.writeBitSet(optionals, 10);
+ if (struct.isSetImageSize()) {
+ optionals.set(10);
+ }
+ oprot.writeBitSet(optionals, 11);
if (struct.isSetId()) {
oprot.writeString(struct.id);
}
@@ -1235,12 +1328,15 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
if (struct.isSetDescription()) {
oprot.writeString(struct.description);
}
+ if (struct.isSetImageSize()) {
+ oprot.writeString(struct.imageSize);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Image struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(10);
+ BitSet incoming = iprot.readBitSet(11);
if (incoming.get(0)) {
struct.id = iprot.readString();
struct.setIdIsSet(true);
@@ -1281,6 +1377,10 @@ public class Image implements org.apache.thrift.TBase<Image, Image._Fields>, jav
struct.description = iprot.readString();
struct.setDescriptionIsSet(true);
}
+ if (incoming.get(10)) {
+ struct.imageSize = iprot.readString();
+ struct.setImageSizeIsSet(true);
+ }
}
}
diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java
index 57b31c81..81d3daae 100644
--- a/dozentenmodulserver/src/main/java/server/generated/Server.java
+++ b/dozentenmodulserver/src/main/java/server/generated/Server.java
@@ -110,13 +110,14 @@ public class Server {
public List<Person> getPermissionForUserAndImage(String userID, String imageID) throws org.apache.thrift.TException;
+ public List<String> getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException;
+
public List<Person> getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException;
public void deleteAllAdditionalImagePermissions(String imageID, String userID) throws org.apache.thrift.TException;
public void deleteAllAdditionalLecturePermissions(String lectureID, String userID) throws org.apache.thrift.TException;
-
}
public interface AsyncIface {
@@ -195,6 +196,8 @@ public class Server {
public void getPermissionForUserAndImage(String userID, String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getAdditionalImageContacts(String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void deleteAllAdditionalImagePermissions(String imageID, String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -1163,6 +1166,29 @@ public class Server {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionForUserAndImage failed: unknown result");
}
+ public List<String> getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException
+ {
+ send_getAdditionalImageContacts(imageID);
+ return recv_getAdditionalImageContacts();
+ }
+
+ public void send_getAdditionalImageContacts(String imageID) throws org.apache.thrift.TException
+ {
+ getAdditionalImageContacts_args args = new getAdditionalImageContacts_args();
+ args.setImageID(imageID);
+ sendBase("getAdditionalImageContacts", args);
+ }
+
+ public List<String> recv_getAdditionalImageContacts() throws org.apache.thrift.TException
+ {
+ getAdditionalImageContacts_result result = new getAdditionalImageContacts_result();
+ receiveBase(result, "getAdditionalImageContacts");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAdditionalImageContacts failed: unknown result");
+ }
+
public List<Person> getPermissionForUserAndLecture(String userID, String lectureID) throws org.apache.thrift.TException
{
send_getPermissionForUserAndLecture(userID, lectureID);
@@ -2707,6 +2733,38 @@ public class Server {
}
}
+ public void getAdditionalImageContacts(String imageID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAdditionalImageContacts_call method_call = new getAdditionalImageContacts_call(imageID, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAdditionalImageContacts_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String imageID;
+ public getAdditionalImageContacts_call(String imageID, 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.imageID = imageID;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAdditionalImageContacts", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAdditionalImageContacts_args args = new getAdditionalImageContacts_args();
+ args.setImageID(imageID);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List<String> getResult() throws org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAdditionalImageContacts();
+ }
+ }
+
public void getPermissionForUserAndLecture(String userID, String lectureID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getPermissionForUserAndLecture_call method_call = new getPermissionForUserAndLecture_call(userID, lectureID, resultHandler, this, ___protocolFactory, ___transport);
@@ -2862,6 +2920,7 @@ public class Server {
processMap.put("writeAdditionalLectureRights", new writeAdditionalLectureRights());
processMap.put("getAllOtherSatelliteUsers", new getAllOtherSatelliteUsers());
processMap.put("getPermissionForUserAndImage", new getPermissionForUserAndImage());
+ processMap.put("getAdditionalImageContacts", new getAdditionalImageContacts());
processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture());
processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions());
processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions());
@@ -3624,6 +3683,26 @@ public class Server {
}
}
+ public static class getAdditionalImageContacts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAdditionalImageContacts_args> {
+ public getAdditionalImageContacts() {
+ super("getAdditionalImageContacts");
+ }
+
+ public getAdditionalImageContacts_args getEmptyArgsInstance() {
+ return new getAdditionalImageContacts_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getAdditionalImageContacts_result getResult(I iface, getAdditionalImageContacts_args args) throws org.apache.thrift.TException {
+ getAdditionalImageContacts_result result = new getAdditionalImageContacts_result();
+ result.success = iface.getAdditionalImageContacts(args.imageID);
+ return result;
+ }
+ }
+
public static class getPermissionForUserAndLecture<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionForUserAndLecture_args> {
public getPermissionForUserAndLecture() {
super("getPermissionForUserAndLecture");
@@ -3734,6 +3813,7 @@ public class Server {
processMap.put("writeAdditionalLectureRights", new writeAdditionalLectureRights());
processMap.put("getAllOtherSatelliteUsers", new getAllOtherSatelliteUsers());
processMap.put("getPermissionForUserAndImage", new getPermissionForUserAndImage());
+ processMap.put("getAdditionalImageContacts", new getAdditionalImageContacts());
processMap.put("getPermissionForUserAndLecture", new getPermissionForUserAndLecture());
processMap.put("deleteAllAdditionalImagePermissions", new deleteAllAdditionalImagePermissions());
processMap.put("deleteAllAdditionalLecturePermissions", new deleteAllAdditionalLecturePermissions());
@@ -5642,6 +5722,57 @@ public class Server {
}
}
+ public static class getAdditionalImageContacts<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAdditionalImageContacts_args, List<String>> {
+ public getAdditionalImageContacts() {
+ super("getAdditionalImageContacts");
+ }
+
+ public getAdditionalImageContacts_args getEmptyArgsInstance() {
+ return new getAdditionalImageContacts_args();
+ }
+
+ public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<List<String>>() {
+ public void onComplete(List<String> o) {
+ getAdditionalImageContacts_result result = new getAdditionalImageContacts_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;
+ getAdditionalImageContacts_result result = new getAdditionalImageContacts_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, getAdditionalImageContacts_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
+ iface.getAdditionalImageContacts(args.imageID,resultHandler);
+ }
+ }
+
public static class getPermissionForUserAndLecture<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPermissionForUserAndLecture_args, List<Person>> {
public getPermissionForUserAndLecture() {
super("getPermissionForUserAndLecture");
@@ -41885,6 +42016,763 @@ public class Server {
}
+ public static class getAdditionalImageContacts_args implements org.apache.thrift.TBase<getAdditionalImageContacts_args, getAdditionalImageContacts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAdditionalImageContacts_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdditionalImageContacts_args");
+
+ private static final org.apache.thrift.protocol.TField IMAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageID", 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 getAdditionalImageContacts_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getAdditionalImageContacts_argsTupleSchemeFactory());
+ }
+
+ public String imageID; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ IMAGE_ID((short)1, "imageID");
+
+ 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: // IMAGE_ID
+ return IMAGE_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.IMAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageID", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_args.class, metaDataMap);
+ }
+
+ public getAdditionalImageContacts_args() {
+ }
+
+ public getAdditionalImageContacts_args(
+ String imageID)
+ {
+ this();
+ this.imageID = imageID;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAdditionalImageContacts_args(getAdditionalImageContacts_args other) {
+ if (other.isSetImageID()) {
+ this.imageID = other.imageID;
+ }
+ }
+
+ public getAdditionalImageContacts_args deepCopy() {
+ return new getAdditionalImageContacts_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.imageID = null;
+ }
+
+ public String getImageID() {
+ return this.imageID;
+ }
+
+ public getAdditionalImageContacts_args setImageID(String imageID) {
+ this.imageID = imageID;
+ return this;
+ }
+
+ public void unsetImageID() {
+ this.imageID = null;
+ }
+
+ /** Returns true if field imageID is set (has been assigned a value) and false otherwise */
+ public boolean isSetImageID() {
+ return this.imageID != null;
+ }
+
+ public void setImageIDIsSet(boolean value) {
+ if (!value) {
+ this.imageID = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case IMAGE_ID:
+ if (value == null) {
+ unsetImageID();
+ } else {
+ setImageID((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case IMAGE_ID:
+ return getImageID();
+
+ }
+ 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 IMAGE_ID:
+ return isSetImageID();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getAdditionalImageContacts_args)
+ return this.equals((getAdditionalImageContacts_args)that);
+ return false;
+ }
+
+ public boolean equals(getAdditionalImageContacts_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_imageID = true && this.isSetImageID();
+ boolean that_present_imageID = true && that.isSetImageID();
+ if (this_present_imageID || that_present_imageID) {
+ if (!(this_present_imageID && that_present_imageID))
+ return false;
+ if (!this.imageID.equals(that.imageID))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return 0;
+ }
+
+ @Override
+ public int compareTo(getAdditionalImageContacts_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetImageID()).compareTo(other.isSetImageID());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetImageID()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageID, other.imageID);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ 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("getAdditionalImageContacts_args(");
+ boolean first = true;
+
+ sb.append("imageID:");
+ if (this.imageID == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.imageID);
+ }
+ 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 getAdditionalImageContacts_argsStandardSchemeFactory implements SchemeFactory {
+ public getAdditionalImageContacts_argsStandardScheme getScheme() {
+ return new getAdditionalImageContacts_argsStandardScheme();
+ }
+ }
+
+ private static class getAdditionalImageContacts_argsStandardScheme extends StandardScheme<getAdditionalImageContacts_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // IMAGE_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.imageID = iprot.readString();
+ struct.setImageIDIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ 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, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.imageID != null) {
+ oprot.writeFieldBegin(IMAGE_ID_FIELD_DESC);
+ oprot.writeString(struct.imageID);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getAdditionalImageContacts_argsTupleSchemeFactory implements SchemeFactory {
+ public getAdditionalImageContacts_argsTupleScheme getScheme() {
+ return new getAdditionalImageContacts_argsTupleScheme();
+ }
+ }
+
+ private static class getAdditionalImageContacts_argsTupleScheme extends TupleScheme<getAdditionalImageContacts_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetImageID()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetImageID()) {
+ oprot.writeString(struct.imageID);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.imageID = iprot.readString();
+ struct.setImageIDIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getAdditionalImageContacts_result implements org.apache.thrift.TBase<getAdditionalImageContacts_result, getAdditionalImageContacts_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAdditionalImageContacts_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAdditionalImageContacts_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getAdditionalImageContacts_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getAdditionalImageContacts_resultTupleSchemeFactory());
+ }
+
+ public List<String> success; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success");
+
+ private static final Map<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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAdditionalImageContacts_result.class, metaDataMap);
+ }
+
+ public getAdditionalImageContacts_result() {
+ }
+
+ public getAdditionalImageContacts_result(
+ List<String> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAdditionalImageContacts_result(getAdditionalImageContacts_result other) {
+ if (other.isSetSuccess()) {
+ List<String> __this__success = new ArrayList<String>(other.success);
+ this.success = __this__success;
+ }
+ }
+
+ public getAdditionalImageContacts_result deepCopy() {
+ return new getAdditionalImageContacts_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator<String> getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(String elem) {
+ if (this.success == null) {
+ this.success = new ArrayList<String>();
+ }
+ this.success.add(elem);
+ }
+
+ public List<String> getSuccess() {
+ return this.success;
+ }
+
+ public getAdditionalImageContacts_result setSuccess(List<String> success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((List<String>)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 getAdditionalImageContacts_result)
+ return this.equals((getAdditionalImageContacts_result)that);
+ return false;
+ }
+
+ public boolean equals(getAdditionalImageContacts_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(getAdditionalImageContacts_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("getAdditionalImageContacts_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 getAdditionalImageContacts_resultStandardSchemeFactory implements SchemeFactory {
+ public getAdditionalImageContacts_resultStandardScheme getScheme() {
+ return new getAdditionalImageContacts_resultStandardScheme();
+ }
+ }
+
+ private static class getAdditionalImageContacts_resultStandardScheme extends StandardScheme<getAdditionalImageContacts_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ 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 _list150 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list150.size);
+ for (int _i151 = 0; _i151 < _list150.size; ++_i151)
+ {
+ String _elem152;
+ _elem152 = iprot.readString();
+ struct.success.add(_elem152);
+ }
+ 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, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
+ for (String _iter153 : struct.success)
+ {
+ oprot.writeString(_iter153);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getAdditionalImageContacts_resultTupleSchemeFactory implements SchemeFactory {
+ public getAdditionalImageContacts_resultTupleScheme getScheme() {
+ return new getAdditionalImageContacts_resultTupleScheme();
+ }
+ }
+
+ private static class getAdditionalImageContacts_resultTupleScheme extends TupleScheme<getAdditionalImageContacts_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetSuccess()) {
+ {
+ oprot.writeI32(struct.success.size());
+ for (String _iter154 : struct.success)
+ {
+ oprot.writeString(_iter154);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getAdditionalImageContacts_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list155.size);
+ for (int _i156 = 0; _i156 < _list155.size; ++_i156)
+ {
+ String _elem157;
+ _elem157 = iprot.readString();
+ struct.success.add(_elem157);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ }
+ }
+
+ }
+
public static class getPermissionForUserAndLecture_args implements org.apache.thrift.TBase<getPermissionForUserAndLecture_args, getPermissionForUserAndLecture_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionForUserAndLecture_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionForUserAndLecture_args");
@@ -42648,14 +43536,14 @@ public class Server {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list150 = iprot.readListBegin();
- struct.success = new ArrayList<Person>(_list150.size);
- for (int _i151 = 0; _i151 < _list150.size; ++_i151)
+ org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
+ struct.success = new ArrayList<Person>(_list158.size);
+ for (int _i159 = 0; _i159 < _list158.size; ++_i159)
{
- Person _elem152;
- _elem152 = new Person();
- _elem152.read(iprot);
- struct.success.add(_elem152);
+ Person _elem160;
+ _elem160 = new Person();
+ _elem160.read(iprot);
+ struct.success.add(_elem160);
}
iprot.readListEnd();
}
@@ -42683,9 +43571,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 _iter153 : struct.success)
+ for (Person _iter161 : struct.success)
{
- _iter153.write(oprot);
+ _iter161.write(oprot);
}
oprot.writeListEnd();
}
@@ -42716,9 +43604,9 @@ public class Server {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Person _iter154 : struct.success)
+ for (Person _iter162 : struct.success)
{
- _iter154.write(oprot);
+ _iter162.write(oprot);
}
}
}
@@ -42730,14 +43618,14 @@ public class Server {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Person>(_list155.size);
- for (int _i156 = 0; _i156 < _list155.size; ++_i156)
+ org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Person>(_list163.size);
+ for (int _i164 = 0; _i164 < _list163.size; ++_i164)
{
- Person _elem157;
- _elem157 = new Person();
- _elem157.read(iprot);
- struct.success.add(_elem157);
+ Person _elem165;
+ _elem165 = new Person();
+ _elem165.read(iprot);
+ struct.success.add(_elem165);
}
}
struct.setSuccessIsSet(true);