From 308f6ce6e0e0a4d729328513b6f367584896cebd Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 Oct 2014 18:18:03 +0200 Subject: Added ECP URL to OrganizationData, added registerOrganization() --- .../thrift/iface/AuthenticationError.java | 2 +- .../thrift/iface/AuthenticationException.java | 16 +- .../thrift/iface/AuthorizationError.java | 2 +- .../thrift/iface/AuthorizationException.java | 16 +- .../imagemaster/thrift/iface/DownloadData.java | 29 +- .../thrift/iface/DownloadException.java | 16 +- .../imagemaster/thrift/iface/ImageData.java | 52 +- .../imagemaster/thrift/iface/ImageDataError.java | 2 +- .../thrift/iface/ImageDataException.java | 16 +- .../imagemaster/thrift/iface/ImageServer.java | 7773 ++++++++++++-------- .../thrift/iface/InvalidTokenException.java | 8 +- .../imagemaster/thrift/iface/OrganizationData.java | 124 +- .../thrift/iface/ServerSessionData.java | 12 +- .../imagemaster/thrift/iface/SessionData.java | 20 +- .../imagemaster/thrift/iface/UploadData.java | 16 +- .../imagemaster/thrift/iface/UploadError.java | 2 +- .../imagemaster/thrift/iface/UploadException.java | 16 +- .../openslx/imagemaster/thrift/iface/UserInfo.java | 28 +- src/main/thrift/imagemaster.thrift | 3 + thrift-compile.sh | 1 + 20 files changed, 5073 insertions(+), 3081 deletions(-) diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationError.java b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationError.java index 0c2835d..965ddd2 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationError.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationError.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationException.java b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationException.java index bd4bb0b..5efc66c 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationException.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthenticationException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class AuthenticationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class AuthenticationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthenticationException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); @@ -303,30 +305,30 @@ public class AuthenticationException extends TException implements org.apache.th return 0; } + @Override public int compareTo(AuthenticationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - AuthenticationException typedOther = (AuthenticationException)other; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber()); + lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationError.java b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationError.java index 61c5960..a49ad92 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationError.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationError.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationException.java b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationException.java index fec2e3e..5f798ac 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationException.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/AuthorizationException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class AuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class AuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthorizationException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); @@ -303,30 +305,30 @@ public class AuthorizationException extends TException implements org.apache.thr return 0; } + @Override public int compareTo(AuthorizationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - AuthorizationException typedOther = (AuthorizationException)other; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber()); + lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java index ee95f86..e55b714 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadData.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DownloadData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class DownloadData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DownloadData"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -153,10 +155,7 @@ public class DownloadData implements org.apache.thrift.TBase __this__crcSums = new ArrayList(); - for (Integer other_element : other.crcSums) { - __this__crcSums.add(other_element); - } + List __this__crcSums = new ArrayList(other.crcSums); this.crcSums = __this__crcSums; } } @@ -368,40 +367,40 @@ public class DownloadData implements org.apache.thrift.TBase(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - int _elem2; // required + int _elem2; _elem2 = iprot.readI32(); struct.crcSums.add(_elem2); } @@ -622,7 +621,7 @@ public class DownloadData implements org.apache.thrift.TBase(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - int _elem7; // required + int _elem7; _elem7 = iprot.readI32(); struct.crcSums.add(_elem7); } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadException.java b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadException.java index efc2448..46404b9 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadException.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/DownloadException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DownloadException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class DownloadException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DownloadException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); @@ -303,30 +305,30 @@ public class DownloadException extends TException implements org.apache.thrift.T return 0; } + @Override public int compareTo(DownloadException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DownloadException typedOther = (DownloadException)other; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber()); + lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java index b1c91fa..aeeb15b 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class ImageData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ImageData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageData"); private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -820,120 +822,120 @@ public class ImageData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ImageDataException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageDataException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); @@ -303,30 +305,30 @@ public class ImageDataException extends TException implements org.apache.thrift. return 0; } + @Override public int compareTo(ImageDataException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - ImageDataException typedOther = (ImageDataException)other; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber()); + lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java index 227bd84..7580625 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -58,33 +60,37 @@ public class ImageServer { public boolean publishUser(String serverSessionId, UserInfo user) throws AuthorizationException, org.apache.thrift.TException; + public boolean registerSatellite(String organizationId, String address, String modulus, String exponent) throws org.apache.thrift.TException; + } public interface AsyncIface { - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void startServerAuthentication(String organization, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void startServerAuthentication(String organization, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void serverAuthenticate(String organizationId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void serverAuthenticate(String organizationId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void submitImage(String serverSessionId, ImageData imageDescription, List crcSums, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void submitImage(String serverSessionId, ImageData imageDescription, List crcSums, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImage(String serverSessionId, String uuid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImage(String serverSessionId, String uuid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void publishUser(String serverSessionId, UserInfo user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void publishUser(String serverSessionId, UserInfo user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void registerSatellite(String organizationId, String address, String modulus, String exponent, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -427,6 +433,32 @@ public class ImageServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "publishUser failed: unknown result"); } + public boolean registerSatellite(String organizationId, String address, String modulus, String exponent) throws org.apache.thrift.TException + { + send_registerSatellite(organizationId, address, modulus, exponent); + return recv_registerSatellite(); + } + + public void send_registerSatellite(String organizationId, String address, String modulus, String exponent) throws org.apache.thrift.TException + { + registerSatellite_args args = new registerSatellite_args(); + args.setOrganizationId(organizationId); + args.setAddress(address); + args.setModulus(modulus); + args.setExponent(exponent); + sendBase("registerSatellite", args); + } + + public boolean recv_registerSatellite() throws org.apache.thrift.TException + { + registerSatellite_result result = new registerSatellite_result(); + receiveBase(result, "registerSatellite"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerSatellite failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -445,7 +477,7 @@ public class ImageServer { super(protocolFactory, clientManager, transport); } - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); ping_call method_call = new ping_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -453,7 +485,7 @@ public class ImageServer { } public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall { - public ping_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 { + public ping_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); } @@ -474,7 +506,7 @@ public class ImageServer { } } - public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); authenticate_call method_call = new authenticate_call(login, password, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -484,7 +516,7 @@ public class ImageServer { public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall { private String login; private String password; - public authenticate_call(String login, String password, 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 { + public authenticate_call(String login, String password, 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.login = login; this.password = password; @@ -509,7 +541,7 @@ public class ImageServer { } } - public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getOrganizations_call method_call = new getOrganizations_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -517,7 +549,7 @@ public class ImageServer { } public static class getOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall { - public getOrganizations_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 { + public getOrganizations_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); } @@ -538,7 +570,7 @@ public class ImageServer { } } - public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findUser_call method_call = new findUser_call(sessionId, organizationId, searchTerm, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -549,7 +581,7 @@ public class ImageServer { private String sessionId; private String organizationId; private String searchTerm; - public findUser_call(String sessionId, String organizationId, String searchTerm, 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 { + public findUser_call(String sessionId, String organizationId, String searchTerm, 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.sessionId = sessionId; this.organizationId = organizationId; @@ -576,7 +608,7 @@ public class ImageServer { } } - public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getPublicImages_call method_call = new getPublicImages_call(sessionId, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -586,7 +618,7 @@ public class ImageServer { public static class getPublicImages_call extends org.apache.thrift.async.TAsyncMethodCall { private String sessionId; private int page; - public getPublicImages_call(String sessionId, int page, 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 { + public getPublicImages_call(String sessionId, int page, 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.sessionId = sessionId; this.page = page; @@ -611,7 +643,7 @@ public class ImageServer { } } - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getUserFromToken_call method_call = new getUserFromToken_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -620,7 +652,7 @@ public class ImageServer { public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall { private String token; - public getUserFromToken_call(String token, 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 { + public getUserFromToken_call(String token, 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.token = token; } @@ -643,7 +675,7 @@ public class ImageServer { } } - public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isServerAuthenticated_call method_call = new isServerAuthenticated_call(serverSessionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -652,7 +684,7 @@ public class ImageServer { public static class isServerAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall { private String serverSessionId; - public isServerAuthenticated_call(String serverSessionId, 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 { + public isServerAuthenticated_call(String serverSessionId, 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.serverSessionId = serverSessionId; } @@ -675,7 +707,7 @@ public class ImageServer { } } - public void startServerAuthentication(String organization, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void startServerAuthentication(String organization, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); startServerAuthentication_call method_call = new startServerAuthentication_call(organization, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -684,7 +716,7 @@ public class ImageServer { public static class startServerAuthentication_call extends org.apache.thrift.async.TAsyncMethodCall { private String organization; - public startServerAuthentication_call(String organization, 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 { + public startServerAuthentication_call(String organization, 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.organization = organization; } @@ -707,7 +739,7 @@ public class ImageServer { } } - public void serverAuthenticate(String organizationId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void serverAuthenticate(String organizationId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); serverAuthenticate_call method_call = new serverAuthenticate_call(organizationId, challengeResponse, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -717,7 +749,7 @@ public class ImageServer { public static class serverAuthenticate_call extends org.apache.thrift.async.TAsyncMethodCall { private String organizationId; private ByteBuffer challengeResponse; - public serverAuthenticate_call(String organizationId, ByteBuffer challengeResponse, 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 { + public serverAuthenticate_call(String organizationId, ByteBuffer challengeResponse, 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.organizationId = organizationId; this.challengeResponse = challengeResponse; @@ -742,7 +774,7 @@ public class ImageServer { } } - public void submitImage(String serverSessionId, ImageData imageDescription, List crcSums, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void submitImage(String serverSessionId, ImageData imageDescription, List crcSums, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); submitImage_call method_call = new submitImage_call(serverSessionId, imageDescription, crcSums, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -753,7 +785,7 @@ public class ImageServer { private String serverSessionId; private ImageData imageDescription; private List crcSums; - public submitImage_call(String serverSessionId, ImageData imageDescription, List crcSums, 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 { + public submitImage_call(String serverSessionId, ImageData imageDescription, List crcSums, 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.serverSessionId = serverSessionId; this.imageDescription = imageDescription; @@ -780,7 +812,7 @@ public class ImageServer { } } - public void getImage(String serverSessionId, String uuid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImage(String serverSessionId, String uuid, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getImage_call method_call = new getImage_call(serverSessionId, uuid, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -790,7 +822,7 @@ public class ImageServer { public static class getImage_call extends org.apache.thrift.async.TAsyncMethodCall { private String serverSessionId; private String uuid; - public getImage_call(String serverSessionId, String uuid, 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 { + public getImage_call(String serverSessionId, String uuid, 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.serverSessionId = serverSessionId; this.uuid = uuid; @@ -815,7 +847,7 @@ public class ImageServer { } } - public void publishUser(String serverSessionId, UserInfo user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void publishUser(String serverSessionId, UserInfo user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); publishUser_call method_call = new publishUser_call(serverSessionId, user, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -825,7 +857,7 @@ public class ImageServer { public static class publishUser_call extends org.apache.thrift.async.TAsyncMethodCall { private String serverSessionId; private UserInfo user; - public publishUser_call(String serverSessionId, UserInfo user, 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 { + public publishUser_call(String serverSessionId, UserInfo user, 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.serverSessionId = serverSessionId; this.user = user; @@ -850,6 +882,47 @@ public class ImageServer { } } + public void registerSatellite(String organizationId, String address, String modulus, String exponent, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + registerSatellite_call method_call = new registerSatellite_call(organizationId, address, modulus, exponent, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class registerSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { + private String organizationId; + private String address; + private String modulus; + private String exponent; + public registerSatellite_call(String organizationId, String address, String modulus, String exponent, 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.organizationId = organizationId; + this.address = address; + this.modulus = modulus; + this.exponent = exponent; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerSatellite", org.apache.thrift.protocol.TMessageType.CALL, 0)); + registerSatellite_args args = new registerSatellite_args(); + args.setOrganizationId(organizationId); + args.setAddress(address); + args.setModulus(modulus); + args.setExponent(exponent); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean 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_registerSatellite(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -875,6 +948,7 @@ public class ImageServer { processMap.put("submitImage", new submitImage()); processMap.put("getImage", new getImage()); processMap.put("publishUser", new publishUser()); + processMap.put("registerSatellite", new registerSatellite()); return processMap; } @@ -1163,169 +1237,1714 @@ public class ImageServer { } } - } + public static class registerSatellite extends org.apache.thrift.ProcessFunction { + public registerSatellite() { + super("registerSatellite"); + } - public static class ping_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args"); + public registerSatellite_args getEmptyArgsInstance() { + return new registerSatellite_args(); + } + protected boolean isOneway() { + return false; + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory()); + public registerSatellite_result getResult(I iface, registerSatellite_args args) throws org.apache.thrift.TException { + registerSatellite_result result = new registerSatellite_result(); + result.success = iface.registerSatellite(args.organizationId, args.address, args.modulus, args.exponent); + result.setSuccessIsSet(true); + return result; + } } + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + public AsyncProcessor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } - private static final Map byName = new HashMap(); + protected AsyncProcessor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + private static Map> getProcessMap(Map> processMap) { + processMap.put("ping", new ping()); + processMap.put("authenticate", new authenticate()); + processMap.put("getOrganizations", new getOrganizations()); + processMap.put("findUser", new findUser()); + processMap.put("getPublicImages", new getPublicImages()); + processMap.put("getUserFromToken", new getUserFromToken()); + processMap.put("isServerAuthenticated", new isServerAuthenticated()); + processMap.put("startServerAuthentication", new startServerAuthentication()); + processMap.put("serverAuthenticate", new serverAuthenticate()); + processMap.put("submitImage", new submitImage()); + processMap.put("getImage", new getImage()); + processMap.put("publishUser", new publishUser()); + processMap.put("registerSatellite", new registerSatellite()); + return processMap; + } + + public static class ping extends org.apache.thrift.AsyncProcessFunction { + public ping() { + super("ping"); } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } + public ping_args getEmptyArgsInstance() { + return new ping_args(); } - /** - * 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; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + ping_result result = new ping_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + ping_result result = new ping_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(); + } + }; } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); + protected boolean isOneway() { + return false; } - private final short _thriftId; - private final String _fieldName; + public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.ping(resultHandler); + } + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; + public static class authenticate extends org.apache.thrift.AsyncProcessFunction { + public authenticate() { + super("authenticate"); } - public short getThriftFieldId() { - return _thriftId; + public authenticate_args getEmptyArgsInstance() { + return new authenticate_args(); } - public String getFieldName() { - return _fieldName; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(SessionData o) { + authenticate_result result = new authenticate_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; + authenticate_result result = new authenticate_result(); + if (e instanceof AuthenticationException) { + result.failure = (AuthenticationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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(); + } + }; } - } - 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(ping_args.class, metaDataMap); - } - public ping_args() { - } + protected boolean isOneway() { + return false; + } - /** - * Performs a deep copy on other. - */ - public ping_args(ping_args other) { + public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.authenticate(args.login, args.password,resultHandler); + } } - public ping_args deepCopy() { - return new ping_args(this); - } + public static class getOrganizations extends org.apache.thrift.AsyncProcessFunction> { + public getOrganizations() { + super("getOrganizations"); + } - @Override - public void clear() { - } + public getOrganizations_args getEmptyArgsInstance() { + return new getOrganizations_args(); + } - public void setFieldValue(_Fields field, Object value) { - switch (field) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getOrganizations_result result = new getOrganizations_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; + getOrganizations_result result = new getOrganizations_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(); + } + }; } - } - public Object getFieldValue(_Fields field) { - switch (field) { + protected boolean isOneway() { + return false; + } + + public void start(I iface, getOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getOrganizations(resultHandler); } - 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(); + public static class findUser extends org.apache.thrift.AsyncProcessFunction> { + public findUser() { + super("findUser"); } - switch (field) { + public findUser_args getEmptyArgsInstance() { + return new findUser_args(); } - throw new IllegalStateException(); - } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof ping_args) - return this.equals((ping_args)that); - return false; - } + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + findUser_result result = new findUser_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; + findUser_result result = new findUser_result(); + if (e instanceof AuthorizationException) { + result.failure = (AuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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(); + } + }; + } - public boolean equals(ping_args that) { - if (that == null) + protected boolean isOneway() { return false; + } - return true; + public void start(I iface, findUser_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.findUser(args.sessionId, args.organizationId, args.searchTerm,resultHandler); + } } - @Override - public int hashCode() { - return 0; - } + public static class getPublicImages extends org.apache.thrift.AsyncProcessFunction> { + public getPublicImages() { + super("getPublicImages"); + } - public int compareTo(ping_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); + public getPublicImages_args getEmptyArgsInstance() { + return new getPublicImages_args(); } - int lastComparison = 0; - ping_args typedOther = (ping_args)other; + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getPublicImages_result result = new getPublicImages_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; + getPublicImages_result result = new getPublicImages_result(); + if (e instanceof AuthorizationException) { + result.failure = (AuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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(); + } + }; + } - return 0; - } + protected boolean isOneway() { + return false; + } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + public void start(I iface, getPublicImages_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getPublicImages(args.sessionId, args.page,resultHandler); + } } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } + public static class getUserFromToken extends org.apache.thrift.AsyncProcessFunction { + public getUserFromToken() { + super("getUserFromToken"); + } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + public getUserFromToken_args getEmptyArgsInstance() { + return new getUserFromToken_args(); + } - @Override + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(UserInfo o) { + getUserFromToken_result result = new getUserFromToken_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; + getUserFromToken_result result = new getUserFromToken_result(); + if (e instanceof InvalidTokenException) { + result.failure = (InvalidTokenException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUserFromToken(args.token,resultHandler); + } + } + + public static class isServerAuthenticated extends org.apache.thrift.AsyncProcessFunction { + public isServerAuthenticated() { + super("isServerAuthenticated"); + } + + public isServerAuthenticated_args getEmptyArgsInstance() { + return new isServerAuthenticated_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + isServerAuthenticated_result result = new isServerAuthenticated_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + isServerAuthenticated_result result = new isServerAuthenticated_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, isServerAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.isServerAuthenticated(args.serverSessionId,resultHandler); + } + } + + public static class startServerAuthentication extends org.apache.thrift.AsyncProcessFunction { + public startServerAuthentication() { + super("startServerAuthentication"); + } + + public startServerAuthentication_args getEmptyArgsInstance() { + return new startServerAuthentication_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ByteBuffer o) { + startServerAuthentication_result result = new startServerAuthentication_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; + startServerAuthentication_result result = new startServerAuthentication_result(); + if (e instanceof AuthenticationException) { + result.failure = (AuthenticationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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, startServerAuthentication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.startServerAuthentication(args.organization,resultHandler); + } + } + + public static class serverAuthenticate extends org.apache.thrift.AsyncProcessFunction { + public serverAuthenticate() { + super("serverAuthenticate"); + } + + public serverAuthenticate_args getEmptyArgsInstance() { + return new serverAuthenticate_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ServerSessionData o) { + serverAuthenticate_result result = new serverAuthenticate_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; + serverAuthenticate_result result = new serverAuthenticate_result(); + if (e instanceof AuthenticationException) { + result.failure = (AuthenticationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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, serverAuthenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.serverAuthenticate(args.organizationId, args.challengeResponse,resultHandler); + } + } + + public static class submitImage extends org.apache.thrift.AsyncProcessFunction { + public submitImage() { + super("submitImage"); + } + + public submitImage_args getEmptyArgsInstance() { + return new submitImage_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(UploadData o) { + submitImage_result result = new submitImage_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; + submitImage_result result = new submitImage_result(); + if (e instanceof AuthorizationException) { + result.failure = (AuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else if (e instanceof ImageDataException) { + result.failure2 = (ImageDataException) e; + result.setFailure2IsSet(true); + msg = result; + } + else if (e instanceof UploadException) { + result.failure3 = (UploadException) e; + result.setFailure3IsSet(true); + msg = result; + } + else + { + 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, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.submitImage(args.serverSessionId, args.imageDescription, args.crcSums,resultHandler); + } + } + + public static class getImage extends org.apache.thrift.AsyncProcessFunction { + public getImage() { + super("getImage"); + } + + public getImage_args getEmptyArgsInstance() { + return new getImage_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(DownloadData o) { + getImage_result result = new getImage_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; + getImage_result result = new getImage_result(); + if (e instanceof AuthorizationException) { + result.failure = (AuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else if (e instanceof ImageDataException) { + result.failure2 = (ImageDataException) e; + result.setFailure2IsSet(true); + msg = result; + } + else + { + 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, getImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getImage(args.serverSessionId, args.uuid,resultHandler); + } + } + + public static class publishUser extends org.apache.thrift.AsyncProcessFunction { + public publishUser() { + super("publishUser"); + } + + public publishUser_args getEmptyArgsInstance() { + return new publishUser_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + publishUser_result result = new publishUser_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + publishUser_result result = new publishUser_result(); + if (e instanceof AuthorizationException) { + result.failure = (AuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else + { + 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, publishUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.publishUser(args.serverSessionId, args.user,resultHandler); + } + } + + public static class registerSatellite extends org.apache.thrift.AsyncProcessFunction { + public registerSatellite() { + super("registerSatellite"); + } + + public registerSatellite_args getEmptyArgsInstance() { + return new registerSatellite_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + registerSatellite_result result = new registerSatellite_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + registerSatellite_result result = new registerSatellite_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, registerSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerSatellite(args.organizationId, args.address, args.modulus, args.exponent,resultHandler); + } + } + + } + + public static class ping_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_args.class, metaDataMap); + } + + public ping_args() { + } + + /** + * Performs a deep copy on other. + */ + public ping_args(ping_args other) { + } + + public ping_args deepCopy() { + return new ping_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 ping_args) + return this.equals((ping_args)that); + return false; + } + + public boolean equals(ping_args that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(ping_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("ping_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 ping_argsStandardSchemeFactory implements SchemeFactory { + public ping_argsStandardScheme getScheme() { + return new ping_argsStandardScheme(); + } + } + + private static class ping_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ping_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, ping_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ping_argsTupleSchemeFactory implements SchemeFactory { + public ping_argsTupleScheme getScheme() { + return new ping_argsTupleScheme(); + } + } + + private static class ping_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + public static class ping_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory()); + } + + public boolean success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap); + } + + public ping_result() { + } + + public ping_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public ping_result(ping_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public ping_result deepCopy() { + return new ping_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public ping_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ping_result) + return this.equals((ping_result)that); + return false; + } + + public boolean equals(ping_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(ping_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("ping_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class ping_resultStandardSchemeFactory implements SchemeFactory { + public ping_resultStandardScheme getScheme() { + return new ping_resultStandardScheme(); + } + } + + private static class ping_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, ping_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ping_resultTupleSchemeFactory implements SchemeFactory { + public ping_resultTupleScheme getScheme() { + return new ping_resultTupleScheme(); + } + } + + private static class ping_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + public static class authenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_args"); + + private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory()); + } + + public String login; // required + public String password; // 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 { + LOGIN((short)1, "login"), + PASSWORD((short)2, "password"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // LOGIN + return LOGIN; + case 2: // PASSWORD + return PASSWORD; + 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.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", 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(authenticate_args.class, metaDataMap); + } + + public authenticate_args() { + } + + public authenticate_args( + String login, + String password) + { + this(); + this.login = login; + this.password = password; + } + + /** + * Performs a deep copy on other. + */ + public authenticate_args(authenticate_args other) { + if (other.isSetLogin()) { + this.login = other.login; + } + if (other.isSetPassword()) { + this.password = other.password; + } + } + + public authenticate_args deepCopy() { + return new authenticate_args(this); + } + + @Override + public void clear() { + this.login = null; + this.password = null; + } + + public String getLogin() { + return this.login; + } + + public authenticate_args setLogin(String login) { + this.login = login; + return this; + } + + public void unsetLogin() { + this.login = null; + } + + /** Returns true if field login is set (has been assigned a value) and false otherwise */ + public boolean isSetLogin() { + return this.login != null; + } + + public void setLoginIsSet(boolean value) { + if (!value) { + this.login = null; + } + } + + public String getPassword() { + return this.password; + } + + public authenticate_args setPassword(String password) { + this.password = password; + return this; + } + + public void unsetPassword() { + this.password = null; + } + + /** Returns true if field password is set (has been assigned a value) and false otherwise */ + public boolean isSetPassword() { + return this.password != null; + } + + public void setPasswordIsSet(boolean value) { + if (!value) { + this.password = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case LOGIN: + if (value == null) { + unsetLogin(); + } else { + setLogin((String)value); + } + break; + + case PASSWORD: + if (value == null) { + unsetPassword(); + } else { + setPassword((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case LOGIN: + return getLogin(); + + case PASSWORD: + return getPassword(); + + } + 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 LOGIN: + return isSetLogin(); + case PASSWORD: + return isSetPassword(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof authenticate_args) + return this.equals((authenticate_args)that); + return false; + } + + public boolean equals(authenticate_args that) { + if (that == null) + return false; + + boolean this_present_login = true && this.isSetLogin(); + boolean that_present_login = true && that.isSetLogin(); + if (this_present_login || that_present_login) { + if (!(this_present_login && that_present_login)) + return false; + if (!this.login.equals(that.login)) + return false; + } + + boolean this_present_password = true && this.isSetPassword(); + boolean that_present_password = true && that.isSetPassword(); + if (this_present_password || that_present_password) { + if (!(this_present_password && that_present_password)) + return false; + if (!this.password.equals(that.password)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(authenticate_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLogin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPassword()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); + 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("ping_args("); + StringBuilder sb = new StringBuilder("authenticate_args("); boolean first = true; + sb.append("login:"); + if (this.login == null) { + sb.append("null"); + } else { + sb.append(this.login); + } + first = false; + if (!first) sb.append(", "); + sb.append("password:"); + if (this.password == null) { + sb.append("null"); + } else { + sb.append(this.password); + } + first = false; sb.append(")"); return sb.toString(); } @@ -1351,15 +2970,15 @@ public class ImageServer { } } - private static class ping_argsStandardSchemeFactory implements SchemeFactory { - public ping_argsStandardScheme getScheme() { - return new ping_argsStandardScheme(); + private static class authenticate_argsStandardSchemeFactory implements SchemeFactory { + public authenticate_argsStandardScheme getScheme() { + return new authenticate_argsStandardScheme(); } } - private static class ping_argsStandardScheme extends StandardScheme { + private static class authenticate_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -1369,6 +2988,22 @@ public class ImageServer { break; } switch (schemeField.id) { + case 1: // LOGIN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.login = iprot.readString(); + struct.setLoginIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PASSWORD + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.password = iprot.readString(); + struct.setPasswordIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1380,53 +3015,89 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, ping_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.login != null) { + oprot.writeFieldBegin(LOGIN_FIELD_DESC); + oprot.writeString(struct.login); + oprot.writeFieldEnd(); + } + if (struct.password != null) { + oprot.writeFieldBegin(PASSWORD_FIELD_DESC); + oprot.writeString(struct.password); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class ping_argsTupleSchemeFactory implements SchemeFactory { - public ping_argsTupleScheme getScheme() { - return new ping_argsTupleScheme(); + private static class authenticate_argsTupleSchemeFactory implements SchemeFactory { + public authenticate_argsTupleScheme getScheme() { + return new authenticate_argsTupleScheme(); } } - private static class ping_argsTupleScheme extends TupleScheme { + private static class authenticate_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetLogin()) { + optionals.set(0); + } + if (struct.isSetPassword()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetLogin()) { + oprot.writeString(struct.login); + } + if (struct.isSetPassword()) { + oprot.writeString(struct.password); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.login = iprot.readString(); + struct.setLoginIsSet(true); + } + if (incoming.get(1)) { + struct.password = iprot.readString(); + struct.setPasswordIsSet(true); + } } } } - public static class ping_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_result"); + public static class authenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new authenticate_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory()); } - public boolean success; // required + public SessionData success; // required + public AuthenticationException failure; // 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"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"); private static final Map byName = new HashMap(); @@ -1443,6 +3114,8 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // FAILURE + return FAILURE; default: return null; } @@ -1483,67 +3156,97 @@ public class ImageServer { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionData.class))); + tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap); } - public ping_result() { + public authenticate_result() { } - public ping_result( - boolean success) + public authenticate_result( + SessionData success, + AuthenticationException failure) { this(); this.success = success; - setSuccessIsSet(true); + this.failure = failure; } /** * Performs a deep copy on other. */ - public ping_result(ping_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public authenticate_result(authenticate_result other) { + if (other.isSetSuccess()) { + this.success = new SessionData(other.success); + } + if (other.isSetFailure()) { + this.failure = new AuthenticationException(other.failure); + } } - public ping_result deepCopy() { - return new ping_result(this); + public authenticate_result deepCopy() { + return new authenticate_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; + this.failure = null; } - public boolean isSuccess() { + public SessionData getSuccess() { return this.success; } - public ping_result setSuccess(boolean success) { + public authenticate_result setSuccess(SessionData success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } + } + + public AuthenticationException getFailure() { + return this.failure; + } + + public authenticate_result setFailure(AuthenticationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -1552,7 +3255,15 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((SessionData)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((AuthenticationException)value); } break; @@ -1562,7 +3273,10 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); + + case FAILURE: + return getFailure(); } throw new IllegalStateException(); @@ -1577,6 +3291,8 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); + case FAILURE: + return isSetFailure(); } throw new IllegalStateException(); } @@ -1585,21 +3301,30 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof ping_result) - return this.equals((ping_result)that); + if (that instanceof authenticate_result) + return this.equals((authenticate_result)that); return false; } - public boolean equals(ping_result that) { + public boolean equals(authenticate_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) return false; } @@ -1611,20 +3336,30 @@ public class ImageServer { return 0; } - public int compareTo(ping_result other) { + @Override + public int compareTo(authenticate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - ping_result typedOther = (ping_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -1646,11 +3381,23 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("ping_result("); + StringBuilder sb = new StringBuilder("authenticate_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + sb.append(this.failure); + } first = false; sb.append(")"); return sb.toString(); @@ -1659,6 +3406,9 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -1671,23 +3421,21 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class ping_resultStandardSchemeFactory implements SchemeFactory { - public ping_resultStandardScheme getScheme() { - return new ping_resultStandardScheme(); + private static class authenticate_resultStandardSchemeFactory implements SchemeFactory { + public authenticate_resultStandardScheme getScheme() { + return new authenticate_resultStandardScheme(); } } - private static class ping_resultStandardScheme extends StandardScheme { + private static class authenticate_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -1698,13 +3446,23 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new SessionData(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // FAILURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure = new AuthenticationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1716,13 +3474,18 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, ping_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + struct.failure.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -1731,59 +3494,66 @@ public class ImageServer { } - private static class ping_resultTupleSchemeFactory implements SchemeFactory { - public ping_resultTupleScheme getScheme() { - return new ping_resultTupleScheme(); + private static class authenticate_resultTupleSchemeFactory implements SchemeFactory { + public authenticate_resultTupleScheme getScheme() { + return new authenticate_resultTupleScheme(); } } - private static class ping_resultTupleScheme extends TupleScheme { + private static class authenticate_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_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.isSetFailure()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); + } + if (struct.isSetFailure()) { + struct.failure.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new SessionData(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.failure = new AuthenticationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } } } } - public static class authenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_args"); + public static class getOrganizations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_args"); - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOrganizations_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOrganizations_argsTupleSchemeFactory()); } - public String login; // required - public String password; // 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 { - LOGIN((short)1, "login"), - PASSWORD((short)2, "password"); +; private static final Map byName = new HashMap(); @@ -1798,10 +3568,6 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // LOGIN - return LOGIN; - case 2: // PASSWORD - return PASSWORD; default: return null; } @@ -1840,130 +3606,37 @@ public class ImageServer { 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.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", 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(authenticate_args.class, metaDataMap); - } - - public authenticate_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_args.class, metaDataMap); } - public authenticate_args( - String login, - String password) - { - this(); - this.login = login; - this.password = password; + public getOrganizations_args() { } /** * Performs a deep copy on other. */ - public authenticate_args(authenticate_args other) { - if (other.isSetLogin()) { - this.login = other.login; - } - if (other.isSetPassword()) { - this.password = other.password; - } + public getOrganizations_args(getOrganizations_args other) { } - public authenticate_args deepCopy() { - return new authenticate_args(this); + public getOrganizations_args deepCopy() { + return new getOrganizations_args(this); } @Override public void clear() { - this.login = null; - this.password = null; - } - - public String getLogin() { - return this.login; - } - - public authenticate_args setLogin(String login) { - this.login = login; - return this; - } - - public void unsetLogin() { - this.login = null; - } - - /** Returns true if field login is set (has been assigned a value) and false otherwise */ - public boolean isSetLogin() { - return this.login != null; - } - - public void setLoginIsSet(boolean value) { - if (!value) { - this.login = null; - } - } - - public String getPassword() { - return this.password; - } - - public authenticate_args setPassword(String password) { - this.password = password; - return this; - } - - public void unsetPassword() { - this.password = null; - } - - /** Returns true if field password is set (has been assigned a value) and false otherwise */ - public boolean isSetPassword() { - return this.password != null; - } - - public void setPasswordIsSet(boolean value) { - if (!value) { - this.password = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case LOGIN: - if (value == null) { - unsetLogin(); - } else { - setLogin((String)value); - } - break; - - case PASSWORD: - if (value == null) { - unsetPassword(); - } else { - setPassword((String)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case LOGIN: - return getLogin(); - - case PASSWORD: - return getPassword(); - } throw new IllegalStateException(); } @@ -1975,10 +3648,6 @@ public class ImageServer { } switch (field) { - case LOGIN: - return isSetLogin(); - case PASSWORD: - return isSetPassword(); } throw new IllegalStateException(); } @@ -1987,33 +3656,15 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof authenticate_args) - return this.equals((authenticate_args)that); + if (that instanceof getOrganizations_args) + return this.equals((getOrganizations_args)that); return false; } - public boolean equals(authenticate_args that) { + public boolean equals(getOrganizations_args that) { if (that == null) return false; - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) - return false; - if (!this.login.equals(that.login)) - return false; - } - - boolean this_present_password = true && this.isSetPassword(); - boolean that_present_password = true && that.isSetPassword(); - if (this_present_password || that_present_password) { - if (!(this_present_password && that_present_password)) - return false; - if (!this.password.equals(that.password)) - return false; - } - return true; } @@ -2022,34 +3673,14 @@ public class ImageServer { return 0; } - public int compareTo(authenticate_args other) { + @Override + public int compareTo(getOrganizations_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - authenticate_args typedOther = (authenticate_args)other; - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(typedOther.isSetLogin()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, typedOther.login); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPassword()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -2067,24 +3698,9 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("authenticate_args("); + StringBuilder sb = new StringBuilder("getOrganizations_args("); boolean first = true; - sb.append("login:"); - if (this.login == null) { - sb.append("null"); - } else { - sb.append(this.login); - } - first = false; - if (!first) sb.append(", "); - sb.append("password:"); - if (this.password == null) { - sb.append("null"); - } else { - sb.append(this.password); - } - first = false; sb.append(")"); return sb.toString(); } @@ -2110,15 +3726,15 @@ public class ImageServer { } } - private static class authenticate_argsStandardSchemeFactory implements SchemeFactory { - public authenticate_argsStandardScheme getScheme() { - return new authenticate_argsStandardScheme(); + private static class getOrganizations_argsStandardSchemeFactory implements SchemeFactory { + public getOrganizations_argsStandardScheme getScheme() { + return new getOrganizations_argsStandardScheme(); } } - private static class authenticate_argsStandardScheme extends StandardScheme { + private static class getOrganizations_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -2128,22 +3744,6 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // LOGIN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PASSWORD - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.password = iprot.readString(); - struct.setPasswordIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2152,92 +3752,56 @@ public class ImageServer { 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, authenticate_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.login != null) { - oprot.writeFieldBegin(LOGIN_FIELD_DESC); - oprot.writeString(struct.login); - oprot.writeFieldEnd(); - } - if (struct.password != null) { - oprot.writeFieldBegin(PASSWORD_FIELD_DESC); - oprot.writeString(struct.password); - oprot.writeFieldEnd(); - } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class authenticate_argsTupleSchemeFactory implements SchemeFactory { - public authenticate_argsTupleScheme getScheme() { - return new authenticate_argsTupleScheme(); + private static class getOrganizations_argsTupleSchemeFactory implements SchemeFactory { + public getOrganizations_argsTupleScheme getScheme() { + return new getOrganizations_argsTupleScheme(); } } - private static class authenticate_argsTupleScheme extends TupleScheme { + private static class getOrganizations_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetLogin()) { - optionals.set(0); - } - if (struct.isSetPassword()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetLogin()) { - oprot.writeString(struct.login); - } - if (struct.isSetPassword()) { - oprot.writeString(struct.password); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } - if (incoming.get(1)) { - struct.password = iprot.readString(); - struct.setPasswordIsSet(true); - } } } } - public static class authenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_result"); + public static class getOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new authenticate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOrganizations_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOrganizations_resultTupleSchemeFactory()); } - public SessionData success; // required - public AuthenticationException failure; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - FAILURE((short)1, "failure"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -2254,8 +3818,6 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // FAILURE - return FAILURE; default: return null; } @@ -2300,52 +3862,64 @@ public class ImageServer { 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionData.class))); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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, OrganizationData.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_result.class, metaDataMap); } - public authenticate_result() { + public getOrganizations_result() { } - public authenticate_result( - SessionData success, - AuthenticationException failure) + public getOrganizations_result( + List success) { this(); this.success = success; - this.failure = failure; } /** * Performs a deep copy on other. */ - public authenticate_result(authenticate_result other) { + public getOrganizations_result(getOrganizations_result other) { if (other.isSetSuccess()) { - this.success = new SessionData(other.success); - } - if (other.isSetFailure()) { - this.failure = new AuthenticationException(other.failure); + List __this__success = new ArrayList(other.success.size()); + for (OrganizationData other_element : other.success) { + __this__success.add(new OrganizationData(other_element)); + } + this.success = __this__success; } } - public authenticate_result deepCopy() { - return new authenticate_result(this); + public getOrganizations_result deepCopy() { + return new getOrganizations_result(this); } @Override public void clear() { this.success = null; - this.failure = null; } - public SessionData getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(OrganizationData elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public authenticate_result setSuccess(SessionData success) { + public getOrganizations_result setSuccess(List success) { this.success = success; return this; } @@ -2365,45 +3939,13 @@ public class ImageServer { } } - public AuthenticationException getFailure() { - return this.failure; - } - - public authenticate_result setFailure(AuthenticationException failure) { - this.failure = failure; - return this; - } - - public void unsetFailure() { - this.failure = null; - } - - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } - - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((SessionData)value); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((AuthenticationException)value); + setSuccess((List)value); } break; @@ -2415,9 +3957,6 @@ public class ImageServer { case SUCCESS: return getSuccess(); - case FAILURE: - return getFailure(); - } throw new IllegalStateException(); } @@ -2431,8 +3970,6 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); - case FAILURE: - return isSetFailure(); } throw new IllegalStateException(); } @@ -2441,12 +3978,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof authenticate_result) - return this.equals((authenticate_result)that); + if (that instanceof getOrganizations_result) + return this.equals((getOrganizations_result)that); return false; } - public boolean equals(authenticate_result that) { + public boolean equals(getOrganizations_result that) { if (that == null) return false; @@ -2459,15 +3996,6 @@ public class ImageServer { return false; } - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - return false; - } - return true; } @@ -2476,30 +4004,20 @@ public class ImageServer { return 0; } - public int compareTo(authenticate_result other) { + @Override + public int compareTo(getOrganizations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - authenticate_result typedOther = (authenticate_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -2521,7 +4039,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("authenticate_result("); + StringBuilder sb = new StringBuilder("getOrganizations_result("); boolean first = true; sb.append("success:"); @@ -2531,14 +4049,6 @@ public class ImageServer { sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } - first = false; sb.append(")"); return sb.toString(); } @@ -2546,9 +4056,6 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -2567,15 +4074,15 @@ public class ImageServer { } } - private static class authenticate_resultStandardSchemeFactory implements SchemeFactory { - public authenticate_resultStandardScheme getScheme() { - return new authenticate_resultStandardScheme(); + private static class getOrganizations_resultStandardSchemeFactory implements SchemeFactory { + public getOrganizations_resultStandardScheme getScheme() { + return new getOrganizations_resultStandardScheme(); } } - private static class authenticate_resultStandardScheme extends StandardScheme { + private static class getOrganizations_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -2586,23 +4093,24 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SessionData(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); + struct.success = new ArrayList(_list8.size); + for (int _i9 = 0; _i9 < _list8.size; ++_i9) + { + OrganizationData _elem10; + _elem10 = new OrganizationData(); + _elem10.read(iprot); + struct.success.add(_elem10); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new AuthenticationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2614,18 +4122,20 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (OrganizationData _iter11 : struct.success) + { + _iter11.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -2634,66 +4144,78 @@ public class ImageServer { } - private static class authenticate_resultTupleSchemeFactory implements SchemeFactory { - public authenticate_resultTupleScheme getScheme() { - return new authenticate_resultTupleScheme(); + private static class getOrganizations_resultTupleSchemeFactory implements SchemeFactory { + public getOrganizations_resultTupleScheme getScheme() { + return new getOrganizations_resultTupleScheme(); } } - private static class authenticate_resultTupleScheme extends TupleScheme { + private static class getOrganizations_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetFailure()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (OrganizationData _iter12 : struct.success) + { + _iter12.write(oprot); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new SessionData(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list13.size); + for (int _i14 = 0; _i14 < _list13.size; ++_i14) + { + OrganizationData _elem15; + _elem15 = new OrganizationData(); + _elem15.read(iprot); + struct.success.add(_elem15); + } + } struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.failure = new AuthenticationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } } } } - public static class getOrganizations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_args"); + public static class findUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_args"); + private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOrganizations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new findUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new findUser_argsTupleSchemeFactory()); } + public String sessionId; // required + public String organizationId; // required + public String searchTerm; // 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 { -; + SESSION_ID((short)1, "sessionId"), + ORGANIZATION_ID((short)2, "organizationId"), + SEARCH_TERM((short)3, "searchTerm"); private static final Map byName = new HashMap(); @@ -2708,6 +4230,12 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // SESSION_ID + return SESSION_ID; + case 2: // ORGANIZATION_ID + return ORGANIZATION_ID; + case 3: // SEARCH_TERM + return SEARCH_TERM; default: return null; } @@ -2746,37 +4274,173 @@ public class ImageServer { 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.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); + tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", 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(getOrganizations_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_args.class, metaDataMap); } - public getOrganizations_args() { + public findUser_args() { + } + + public findUser_args( + String sessionId, + String organizationId, + String searchTerm) + { + this(); + this.sessionId = sessionId; + this.organizationId = organizationId; + this.searchTerm = searchTerm; } /** * Performs a deep copy on other. */ - public getOrganizations_args(getOrganizations_args other) { + public findUser_args(findUser_args other) { + if (other.isSetSessionId()) { + this.sessionId = other.sessionId; + } + if (other.isSetOrganizationId()) { + this.organizationId = other.organizationId; + } + if (other.isSetSearchTerm()) { + this.searchTerm = other.searchTerm; + } } - public getOrganizations_args deepCopy() { - return new getOrganizations_args(this); + public findUser_args deepCopy() { + return new findUser_args(this); } @Override public void clear() { + this.sessionId = null; + this.organizationId = null; + this.searchTerm = null; + } + + public String getSessionId() { + return this.sessionId; + } + + public findUser_args setSessionId(String sessionId) { + this.sessionId = sessionId; + return this; + } + + public void unsetSessionId() { + this.sessionId = null; + } + + /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetSessionId() { + return this.sessionId != null; + } + + public void setSessionIdIsSet(boolean value) { + if (!value) { + this.sessionId = null; + } + } + + public String getOrganizationId() { + return this.organizationId; + } + + public findUser_args setOrganizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + public void unsetOrganizationId() { + this.organizationId = null; + } + + /** Returns true if field organizationId is set (has been assigned a value) and false otherwise */ + public boolean isSetOrganizationId() { + return this.organizationId != null; + } + + public void setOrganizationIdIsSet(boolean value) { + if (!value) { + this.organizationId = null; + } + } + + public String getSearchTerm() { + return this.searchTerm; + } + + public findUser_args setSearchTerm(String searchTerm) { + this.searchTerm = searchTerm; + return this; + } + + public void unsetSearchTerm() { + this.searchTerm = null; + } + + /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */ + public boolean isSetSearchTerm() { + return this.searchTerm != null; + } + + public void setSearchTermIsSet(boolean value) { + if (!value) { + this.searchTerm = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case SESSION_ID: + if (value == null) { + unsetSessionId(); + } else { + setSessionId((String)value); + } + break; + + case ORGANIZATION_ID: + if (value == null) { + unsetOrganizationId(); + } else { + setOrganizationId((String)value); + } + break; + + case SEARCH_TERM: + if (value == null) { + unsetSearchTerm(); + } else { + setSearchTerm((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SESSION_ID: + return getSessionId(); + + case ORGANIZATION_ID: + return getOrganizationId(); + + case SEARCH_TERM: + return getSearchTerm(); + } throw new IllegalStateException(); } @@ -2788,6 +4452,12 @@ public class ImageServer { } switch (field) { + case SESSION_ID: + return isSetSessionId(); + case ORGANIZATION_ID: + return isSetOrganizationId(); + case SEARCH_TERM: + return isSetSearchTerm(); } throw new IllegalStateException(); } @@ -2796,15 +4466,42 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOrganizations_args) - return this.equals((getOrganizations_args)that); + if (that instanceof findUser_args) + return this.equals((findUser_args)that); return false; } - public boolean equals(getOrganizations_args that) { + public boolean equals(findUser_args that) { if (that == null) return false; + boolean this_present_sessionId = true && this.isSetSessionId(); + boolean that_present_sessionId = true && that.isSetSessionId(); + if (this_present_sessionId || that_present_sessionId) { + if (!(this_present_sessionId && that_present_sessionId)) + return false; + if (!this.sessionId.equals(that.sessionId)) + return false; + } + + boolean this_present_organizationId = true && this.isSetOrganizationId(); + boolean that_present_organizationId = true && that.isSetOrganizationId(); + if (this_present_organizationId || that_present_organizationId) { + if (!(this_present_organizationId && that_present_organizationId)) + return false; + if (!this.organizationId.equals(that.organizationId)) + return false; + } + + boolean this_present_searchTerm = true && this.isSetSearchTerm(); + boolean that_present_searchTerm = true && that.isSetSearchTerm(); + if (this_present_searchTerm || that_present_searchTerm) { + if (!(this_present_searchTerm && that_present_searchTerm)) + return false; + if (!this.searchTerm.equals(that.searchTerm)) + return false; + } + return true; } @@ -2813,14 +4510,44 @@ public class ImageServer { return 0; } - public int compareTo(getOrganizations_args other) { + @Override + public int compareTo(findUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } - - int lastComparison = 0; - getOrganizations_args typedOther = (getOrganizations_args)other; - + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSessionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOrganizationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organizationId, other.organizationId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(other.isSetSearchTerm()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSearchTerm()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, other.searchTerm); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -2838,9 +4565,32 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOrganizations_args("); + StringBuilder sb = new StringBuilder("findUser_args("); boolean first = true; + sb.append("sessionId:"); + if (this.sessionId == null) { + sb.append("null"); + } else { + sb.append(this.sessionId); + } + first = false; + if (!first) sb.append(", "); + sb.append("organizationId:"); + if (this.organizationId == null) { + sb.append("null"); + } else { + sb.append(this.organizationId); + } + first = false; + if (!first) sb.append(", "); + sb.append("searchTerm:"); + if (this.searchTerm == null) { + sb.append("null"); + } else { + sb.append(this.searchTerm); + } + first = false; sb.append(")"); return sb.toString(); } @@ -2866,15 +4616,15 @@ public class ImageServer { } } - private static class getOrganizations_argsStandardSchemeFactory implements SchemeFactory { - public getOrganizations_argsStandardScheme getScheme() { - return new getOrganizations_argsStandardScheme(); + private static class findUser_argsStandardSchemeFactory implements SchemeFactory { + public findUser_argsStandardScheme getScheme() { + return new findUser_argsStandardScheme(); } } - private static class getOrganizations_argsStandardScheme extends StandardScheme { + private static class findUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -2884,6 +4634,30 @@ public class ImageServer { break; } switch (schemeField.id) { + case 1: // SESSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.sessionId = iprot.readString(); + struct.setSessionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ORGANIZATION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SEARCH_TERM + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.searchTerm = iprot.readString(); + struct.setSearchTermIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2895,53 +4669,104 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.sessionId != null) { + oprot.writeFieldBegin(SESSION_ID_FIELD_DESC); + oprot.writeString(struct.sessionId); + oprot.writeFieldEnd(); + } + if (struct.organizationId != null) { + oprot.writeFieldBegin(ORGANIZATION_ID_FIELD_DESC); + oprot.writeString(struct.organizationId); + oprot.writeFieldEnd(); + } + if (struct.searchTerm != null) { + oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC); + oprot.writeString(struct.searchTerm); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getOrganizations_argsTupleSchemeFactory implements SchemeFactory { - public getOrganizations_argsTupleScheme getScheme() { - return new getOrganizations_argsTupleScheme(); + private static class findUser_argsTupleSchemeFactory implements SchemeFactory { + public findUser_argsTupleScheme getScheme() { + return new findUser_argsTupleScheme(); } } - private static class getOrganizations_argsTupleScheme extends TupleScheme { + private static class findUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSessionId()) { + optionals.set(0); + } + if (struct.isSetOrganizationId()) { + optionals.set(1); + } + if (struct.isSetSearchTerm()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSessionId()) { + oprot.writeString(struct.sessionId); + } + if (struct.isSetOrganizationId()) { + oprot.writeString(struct.organizationId); + } + if (struct.isSetSearchTerm()) { + oprot.writeString(struct.searchTerm); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sessionId = iprot.readString(); + struct.setSessionIdIsSet(true); + } + if (incoming.get(1)) { + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); + } + if (incoming.get(2)) { + struct.searchTerm = iprot.readString(); + struct.setSearchTermIsSet(true); + } } } } - public static class getOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_result"); + public static class findUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_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 org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOrganizations_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new findUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new findUser_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required + public AuthorizationException failure; // 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"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"); private static final Map byName = new HashMap(); @@ -2958,6 +4783,8 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // FAILURE + return FAILURE; default: return null; } @@ -3003,63 +4830,71 @@ public class ImageServer { 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, OrganizationData.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class)))); + tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_result.class, metaDataMap); } - public getOrganizations_result() { + public findUser_result() { } - public getOrganizations_result( - List success) + public findUser_result( + List success, + AuthorizationException failure) { this(); this.success = success; + this.failure = failure; } /** * Performs a deep copy on other. */ - public getOrganizations_result(getOrganizations_result other) { + public findUser_result(findUser_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (OrganizationData other_element : other.success) { - __this__success.add(new OrganizationData(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (UserInfo other_element : other.success) { + __this__success.add(new UserInfo(other_element)); } this.success = __this__success; } + if (other.isSetFailure()) { + this.failure = new AuthorizationException(other.failure); + } } - public getOrganizations_result deepCopy() { - return new getOrganizations_result(this); + public findUser_result deepCopy() { + return new findUser_result(this); } @Override public void clear() { this.success = null; + this.failure = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(OrganizationData elem) { + public void addToSuccess(UserInfo elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getOrganizations_result setSuccess(List success) { + public findUser_result setSuccess(List success) { this.success = success; return this; } @@ -3079,13 +4914,45 @@ public class ImageServer { } } + public AuthorizationException getFailure() { + return this.failure; + } + + public findUser_result setFailure(AuthorizationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((AuthorizationException)value); } break; @@ -3097,6 +4964,9 @@ public class ImageServer { case SUCCESS: return getSuccess(); + case FAILURE: + return getFailure(); + } throw new IllegalStateException(); } @@ -3110,6 +4980,8 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); + case FAILURE: + return isSetFailure(); } throw new IllegalStateException(); } @@ -3118,12 +4990,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOrganizations_result) - return this.equals((getOrganizations_result)that); + if (that instanceof findUser_result) + return this.equals((findUser_result)that); return false; } - public boolean equals(getOrganizations_result that) { + public boolean equals(findUser_result that) { if (that == null) return false; @@ -3136,6 +5008,15 @@ public class ImageServer { return false; } + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) + return false; + } + return true; } @@ -3144,20 +5025,30 @@ public class ImageServer { return 0; } - public int compareTo(getOrganizations_result other) { + @Override + public int compareTo(findUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getOrganizations_result typedOther = (getOrganizations_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -3179,7 +5070,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOrganizations_result("); + StringBuilder sb = new StringBuilder("findUser_result("); boolean first = true; sb.append("success:"); @@ -3189,6 +5080,14 @@ public class ImageServer { sb.append(this.success); } first = false; + if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + sb.append(this.failure); + } + first = false; sb.append(")"); return sb.toString(); } @@ -3214,15 +5113,15 @@ public class ImageServer { } } - private static class getOrganizations_resultStandardSchemeFactory implements SchemeFactory { - public getOrganizations_resultStandardScheme getScheme() { - return new getOrganizations_resultStandardScheme(); + private static class findUser_resultStandardSchemeFactory implements SchemeFactory { + public findUser_resultStandardScheme getScheme() { + return new findUser_resultStandardScheme(); } } - private static class getOrganizations_resultStandardScheme extends StandardScheme { + private static class findUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -3235,14 +5134,14 @@ public class ImageServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.success = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); + struct.success = new ArrayList(_list16.size); + for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - OrganizationData _elem10; // required - _elem10 = new OrganizationData(); - _elem10.read(iprot); - struct.success.add(_elem10); + UserInfo _elem18; + _elem18 = new UserInfo(); + _elem18.read(iprot); + struct.success.add(_elem18); } iprot.readListEnd(); } @@ -3251,6 +5150,15 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // FAILURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure = new AuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3262,7 +5170,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -3270,92 +5178,105 @@ public class ImageServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OrganizationData _iter11 : struct.success) + for (UserInfo _iter19 : struct.success) { - _iter11.write(oprot); + _iter19.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + struct.failure.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getOrganizations_resultTupleSchemeFactory implements SchemeFactory { - public getOrganizations_resultTupleScheme getScheme() { - return new getOrganizations_resultTupleScheme(); + private static class findUser_resultTupleSchemeFactory implements SchemeFactory { + public findUser_resultTupleScheme getScheme() { + return new findUser_resultTupleScheme(); } } - private static class getOrganizations_resultTupleScheme extends TupleScheme { + private static class findUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, findUser_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.isSetFailure()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OrganizationData _iter12 : struct.success) + for (UserInfo _iter20 : struct.success) { - _iter12.write(oprot); + _iter20.write(oprot); } } } + if (struct.isSetFailure()) { + struct.failure.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list21.size); + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - OrganizationData _elem15; // required - _elem15 = new OrganizationData(); - _elem15.read(iprot); - struct.success.add(_elem15); + UserInfo _elem23; + _elem23 = new UserInfo(); + _elem23.read(iprot); + struct.success.add(_elem23); } } struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.failure = new AuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } } } } - public static class findUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_args"); + public static class getPublicImages_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_args"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new findUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new findUser_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPublicImages_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPublicImages_argsTupleSchemeFactory()); } public String sessionId; // required - public String organizationId; // required - public String searchTerm; // required + public int page; // 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 { SESSION_ID((short)1, "sessionId"), - ORGANIZATION_ID((short)2, "organizationId"), - SEARCH_TERM((short)3, "searchTerm"); + PAGE((short)2, "page"); private static final Map byName = new HashMap(); @@ -3372,10 +5293,8 @@ public class ImageServer { switch(fieldId) { case 1: // SESSION_ID return SESSION_ID; - case 2: // ORGANIZATION_ID - return ORGANIZATION_ID; - case 3: // SEARCH_TERM - return SEARCH_TERM; + case 2: // PAGE + return PAGE; default: return null; } @@ -3416,64 +5335,59 @@ public class ImageServer { } // isset id assignments + private static final int __PAGE_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_args.class, metaDataMap); } - public findUser_args() { + public getPublicImages_args() { } - public findUser_args( + public getPublicImages_args( String sessionId, - String organizationId, - String searchTerm) + int page) { this(); this.sessionId = sessionId; - this.organizationId = organizationId; - this.searchTerm = searchTerm; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public findUser_args(findUser_args other) { + public getPublicImages_args(getPublicImages_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetSessionId()) { this.sessionId = other.sessionId; } - if (other.isSetOrganizationId()) { - this.organizationId = other.organizationId; - } - if (other.isSetSearchTerm()) { - this.searchTerm = other.searchTerm; - } + this.page = other.page; } - public findUser_args deepCopy() { - return new findUser_args(this); + public getPublicImages_args deepCopy() { + return new getPublicImages_args(this); } @Override public void clear() { this.sessionId = null; - this.organizationId = null; - this.searchTerm = null; + setPageIsSet(false); + this.page = 0; } public String getSessionId() { return this.sessionId; } - public findUser_args setSessionId(String sessionId) { + public getPublicImages_args setSessionId(String sessionId) { this.sessionId = sessionId; return this; } @@ -3493,52 +5407,27 @@ public class ImageServer { } } - public String getOrganizationId() { - return this.organizationId; - } - - public findUser_args setOrganizationId(String organizationId) { - this.organizationId = organizationId; - return this; - } - - public void unsetOrganizationId() { - this.organizationId = null; - } - - /** Returns true if field organizationId is set (has been assigned a value) and false otherwise */ - public boolean isSetOrganizationId() { - return this.organizationId != null; - } - - public void setOrganizationIdIsSet(boolean value) { - if (!value) { - this.organizationId = null; - } - } - - public String getSearchTerm() { - return this.searchTerm; + public int getPage() { + return this.page; } - public findUser_args setSearchTerm(String searchTerm) { - this.searchTerm = searchTerm; + public getPublicImages_args setPage(int page) { + this.page = page; + setPageIsSet(true); return this; } - public void unsetSearchTerm() { - this.searchTerm = null; + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); } - /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */ - public boolean isSetSearchTerm() { - return this.searchTerm != null; + /** Returns true if field page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } - public void setSearchTermIsSet(boolean value) { - if (!value) { - this.searchTerm = null; - } + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -3551,19 +5440,11 @@ public class ImageServer { } break; - case ORGANIZATION_ID: - if (value == null) { - unsetOrganizationId(); - } else { - setOrganizationId((String)value); - } - break; - - case SEARCH_TERM: + case PAGE: if (value == null) { - unsetSearchTerm(); + unsetPage(); } else { - setSearchTerm((String)value); + setPage((Integer)value); } break; @@ -3575,11 +5456,8 @@ public class ImageServer { case SESSION_ID: return getSessionId(); - case ORGANIZATION_ID: - return getOrganizationId(); - - case SEARCH_TERM: - return getSearchTerm(); + case PAGE: + return Integer.valueOf(getPage()); } throw new IllegalStateException(); @@ -3594,10 +5472,8 @@ public class ImageServer { switch (field) { case SESSION_ID: return isSetSessionId(); - case ORGANIZATION_ID: - return isSetOrganizationId(); - case SEARCH_TERM: - return isSetSearchTerm(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -3606,12 +5482,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof findUser_args) - return this.equals((findUser_args)that); + if (that instanceof getPublicImages_args) + return this.equals((getPublicImages_args)that); return false; } - public boolean equals(findUser_args that) { + public boolean equals(getPublicImages_args that) { if (that == null) return false; @@ -3624,21 +5500,12 @@ public class ImageServer { return false; } - boolean this_present_organizationId = true && this.isSetOrganizationId(); - boolean that_present_organizationId = true && that.isSetOrganizationId(); - if (this_present_organizationId || that_present_organizationId) { - if (!(this_present_organizationId && that_present_organizationId)) - return false; - if (!this.organizationId.equals(that.organizationId)) - return false; - } - - boolean this_present_searchTerm = true && this.isSetSearchTerm(); - boolean that_present_searchTerm = true && that.isSetSearchTerm(); - if (this_present_searchTerm || that_present_searchTerm) { - if (!(this_present_searchTerm && that_present_searchTerm)) + boolean this_present_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) return false; - if (!this.searchTerm.equals(that.searchTerm)) + if (this.page != that.page) return false; } @@ -3650,40 +5517,30 @@ public class ImageServer { return 0; } - public int compareTo(findUser_args other) { + @Override + public int compareTo(getPublicImages_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - findUser_args typedOther = (findUser_args)other; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId()); + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(typedOther.isSetOrganizationId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOrganizationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organizationId, typedOther.organizationId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm()); + lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); if (lastComparison != 0) { return lastComparison; } - if (isSetSearchTerm()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm); + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); if (lastComparison != 0) { return lastComparison; } @@ -3705,7 +5562,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("findUser_args("); + StringBuilder sb = new StringBuilder("getPublicImages_args("); boolean first = true; sb.append("sessionId:"); @@ -3716,20 +5573,8 @@ public class ImageServer { } first = false; if (!first) sb.append(", "); - sb.append("organizationId:"); - if (this.organizationId == null) { - sb.append("null"); - } else { - sb.append(this.organizationId); - } - first = false; - if (!first) sb.append(", "); - sb.append("searchTerm:"); - if (this.searchTerm == null) { - sb.append("null"); - } else { - sb.append(this.searchTerm); - } + sb.append("page:"); + sb.append(this.page); first = false; sb.append(")"); return sb.toString(); @@ -3750,21 +5595,23 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class findUser_argsStandardSchemeFactory implements SchemeFactory { - public findUser_argsStandardScheme getScheme() { - return new findUser_argsStandardScheme(); + private static class getPublicImages_argsStandardSchemeFactory implements SchemeFactory { + public getPublicImages_argsStandardScheme getScheme() { + return new getPublicImages_argsStandardScheme(); } } - private static class findUser_argsStandardScheme extends StandardScheme { + private static class getPublicImages_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -3782,18 +5629,10 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ORGANIZATION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.organizationId = iprot.readString(); - struct.setOrganizationIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SEARCH_TERM - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.searchTerm = iprot.readString(); - struct.setSearchTermIsSet(true); + case 2: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3809,7 +5648,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -3818,89 +5657,72 @@ public class ImageServer { oprot.writeString(struct.sessionId); oprot.writeFieldEnd(); } - if (struct.organizationId != null) { - oprot.writeFieldBegin(ORGANIZATION_ID_FIELD_DESC); - oprot.writeString(struct.organizationId); - oprot.writeFieldEnd(); - } - if (struct.searchTerm != null) { - oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC); - oprot.writeString(struct.searchTerm); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class findUser_argsTupleSchemeFactory implements SchemeFactory { - public findUser_argsTupleScheme getScheme() { - return new findUser_argsTupleScheme(); + private static class getPublicImages_argsTupleSchemeFactory implements SchemeFactory { + public getPublicImages_argsTupleScheme getScheme() { + return new getPublicImages_argsTupleScheme(); } } - private static class findUser_argsTupleScheme extends TupleScheme { + private static class getPublicImages_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } - if (struct.isSetOrganizationId()) { + if (struct.isSetPage()) { optionals.set(1); } - if (struct.isSetSearchTerm()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSessionId()) { oprot.writeString(struct.sessionId); } - if (struct.isSetOrganizationId()) { - oprot.writeString(struct.organizationId); - } - if (struct.isSetSearchTerm()) { - oprot.writeString(struct.searchTerm); + if (struct.isSetPage()) { + oprot.writeI32(struct.page); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); } if (incoming.get(1)) { - struct.organizationId = iprot.readString(); - struct.setOrganizationIdIsSet(true); - } - if (incoming.get(2)) { - struct.searchTerm = iprot.readString(); - struct.setSearchTermIsSet(true); + struct.page = iprot.readI32(); + struct.setPageIsSet(true); } } } } - public static class findUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_result"); + public static class getPublicImages_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_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 org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new findUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new findUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPublicImages_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPublicImages_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required public AuthorizationException failure; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -3970,18 +5792,18 @@ public class ImageServer { 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, UserInfo.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageData.class)))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_result.class, metaDataMap); } - public findUser_result() { + public getPublicImages_result() { } - public findUser_result( - List success, + public getPublicImages_result( + List success, AuthorizationException failure) { this(); @@ -3992,11 +5814,11 @@ public class ImageServer { /** * Performs a deep copy on other. */ - public findUser_result(findUser_result other) { + public getPublicImages_result(getPublicImages_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (UserInfo other_element : other.success) { - __this__success.add(new UserInfo(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (ImageData other_element : other.success) { + __this__success.add(new ImageData(other_element)); } this.success = __this__success; } @@ -4005,8 +5827,8 @@ public class ImageServer { } } - public findUser_result deepCopy() { - return new findUser_result(this); + public getPublicImages_result deepCopy() { + return new getPublicImages_result(this); } @Override @@ -4019,22 +5841,22 @@ public class ImageServer { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(UserInfo elem) { + public void addToSuccess(ImageData elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public findUser_result setSuccess(List success) { + public getPublicImages_result setSuccess(List success) { this.success = success; return this; } @@ -4058,7 +5880,7 @@ public class ImageServer { return this.failure; } - public findUser_result setFailure(AuthorizationException failure) { + public getPublicImages_result setFailure(AuthorizationException failure) { this.failure = failure; return this; } @@ -4084,7 +5906,7 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -4130,12 +5952,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof findUser_result) - return this.equals((findUser_result)that); + if (that instanceof getPublicImages_result) + return this.equals((getPublicImages_result)that); return false; } - public boolean equals(findUser_result that) { + public boolean equals(getPublicImages_result that) { if (that == null) return false; @@ -4165,30 +5987,30 @@ public class ImageServer { return 0; } - public int compareTo(findUser_result other) { + @Override + public int compareTo(getPublicImages_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - findUser_result typedOther = (findUser_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -4210,7 +6032,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("findUser_result("); + StringBuilder sb = new StringBuilder("getPublicImages_result("); boolean first = true; sb.append("success:"); @@ -4253,15 +6075,15 @@ public class ImageServer { } } - private static class findUser_resultStandardSchemeFactory implements SchemeFactory { - public findUser_resultStandardScheme getScheme() { - return new findUser_resultStandardScheme(); + private static class getPublicImages_resultStandardSchemeFactory implements SchemeFactory { + public getPublicImages_resultStandardScheme getScheme() { + return new getPublicImages_resultStandardScheme(); } } - private static class findUser_resultStandardScheme extends StandardScheme { + private static class getPublicImages_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4274,14 +6096,14 @@ public class ImageServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.success = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - UserInfo _elem18; // required - _elem18 = new UserInfo(); - _elem18.read(iprot); - struct.success.add(_elem18); + ImageData _elem26; + _elem26 = new ImageData(); + _elem26.read(iprot); + struct.success.add(_elem26); } iprot.readListEnd(); } @@ -4310,7 +6132,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -4318,9 +6140,9 @@ public class ImageServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter19 : struct.success) + for (ImageData _iter27 : struct.success) { - _iter19.write(oprot); + _iter27.write(oprot); } oprot.writeListEnd(); } @@ -4337,16 +6159,16 @@ public class ImageServer { } - private static class findUser_resultTupleSchemeFactory implements SchemeFactory { - public findUser_resultTupleScheme getScheme() { - return new findUser_resultTupleScheme(); + private static class getPublicImages_resultTupleSchemeFactory implements SchemeFactory { + public getPublicImages_resultTupleScheme getScheme() { + return new getPublicImages_resultTupleScheme(); } } - private static class findUser_resultTupleScheme extends TupleScheme { + private static class getPublicImages_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -4359,9 +6181,9 @@ public class ImageServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter20 : struct.success) + for (ImageData _iter28 : struct.success) { - _iter20.write(oprot); + _iter28.write(oprot); } } } @@ -4371,19 +6193,19 @@ public class ImageServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) { - UserInfo _elem23; // required - _elem23 = new UserInfo(); - _elem23.read(iprot); - struct.success.add(_elem23); + ImageData _elem31; + _elem31 = new ImageData(); + _elem31.read(iprot); + struct.success.add(_elem31); } } struct.setSuccessIsSet(true); @@ -4398,25 +6220,22 @@ public class ImageServer { } - public static class getPublicImages_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_args"); + public static class getUserFromToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_args"); - private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPublicImages_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPublicImages_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory()); } - public String sessionId; // required - public int page; // required + public String token; // 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 { - SESSION_ID((short)1, "sessionId"), - PAGE((short)2, "page"); + TOKEN((short)1, "token"); private static final Map byName = new HashMap(); @@ -4431,10 +6250,8 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SESSION_ID - return SESSION_ID; - case 2: // PAGE - return PAGE; + case 1: // TOKEN + return TOKEN; default: return null; } @@ -4475,116 +6292,74 @@ public class ImageServer { } // isset id assignments - private static final int __PAGE_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_args.class, metaDataMap); } - public getPublicImages_args() { + public getUserFromToken_args() { } - - public getPublicImages_args( - String sessionId, - int page) + + public getUserFromToken_args( + String token) { this(); - this.sessionId = sessionId; - this.page = page; - setPageIsSet(true); + this.token = token; } /** * Performs a deep copy on other. */ - public getPublicImages_args(getPublicImages_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetSessionId()) { - this.sessionId = other.sessionId; + public getUserFromToken_args(getUserFromToken_args other) { + if (other.isSetToken()) { + this.token = other.token; } - this.page = other.page; } - public getPublicImages_args deepCopy() { - return new getPublicImages_args(this); + public getUserFromToken_args deepCopy() { + return new getUserFromToken_args(this); } @Override public void clear() { - this.sessionId = null; - setPageIsSet(false); - this.page = 0; + this.token = null; } - public String getSessionId() { - return this.sessionId; + public String getToken() { + return this.token; } - public getPublicImages_args setSessionId(String sessionId) { - this.sessionId = sessionId; + public getUserFromToken_args setToken(String token) { + this.token = token; return this; } - public void unsetSessionId() { - this.sessionId = null; + public void unsetToken() { + this.token = null; } - /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetSessionId() { - return this.sessionId != null; + /** Returns true if field token is set (has been assigned a value) and false otherwise */ + public boolean isSetToken() { + return this.token != null; } - public void setSessionIdIsSet(boolean value) { + public void setTokenIsSet(boolean value) { if (!value) { - this.sessionId = null; + this.token = null; } } - public int getPage() { - return this.page; - } - - public getPublicImages_args setPage(int page) { - this.page = page; - setPageIsSet(true); - return this; - } - - public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - /** Returns true if field page is set (has been assigned a value) and false otherwise */ - public boolean isSetPage() { - return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case SESSION_ID: - if (value == null) { - unsetSessionId(); - } else { - setSessionId((String)value); - } - break; - - case PAGE: + case TOKEN: if (value == null) { - unsetPage(); + unsetToken(); } else { - setPage((Integer)value); + setToken((String)value); } break; @@ -4593,11 +6368,8 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case SESSION_ID: - return getSessionId(); - - case PAGE: - return Integer.valueOf(getPage()); + case TOKEN: + return getToken(); } throw new IllegalStateException(); @@ -4610,10 +6382,8 @@ public class ImageServer { } switch (field) { - case SESSION_ID: - return isSetSessionId(); - case PAGE: - return isSetPage(); + case TOKEN: + return isSetToken(); } throw new IllegalStateException(); } @@ -4622,30 +6392,21 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPublicImages_args) - return this.equals((getPublicImages_args)that); + if (that instanceof getUserFromToken_args) + return this.equals((getUserFromToken_args)that); return false; } - public boolean equals(getPublicImages_args that) { + public boolean equals(getUserFromToken_args that) { if (that == null) return false; - boolean this_present_sessionId = true && this.isSetSessionId(); - boolean that_present_sessionId = true && that.isSetSessionId(); - if (this_present_sessionId || that_present_sessionId) { - if (!(this_present_sessionId && that_present_sessionId)) - return false; - if (!this.sessionId.equals(that.sessionId)) - return false; - } - - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) + boolean this_present_token = true && this.isSetToken(); + boolean that_present_token = true && that.isSetToken(); + if (this_present_token || that_present_token) { + if (!(this_present_token && that_present_token)) return false; - if (this.page != that.page) + if (!this.token.equals(that.token)) return false; } @@ -4657,30 +6418,20 @@ public class ImageServer { return 0; } - public int compareTo(getPublicImages_args other) { + @Override + public int compareTo(getUserFromToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getPublicImages_args typedOther = (getPublicImages_args)other; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(typedOther.isSetPage()); + lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, typedOther.page); + if (isSetToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } @@ -4702,20 +6453,16 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPublicImages_args("); + StringBuilder sb = new StringBuilder("getUserFromToken_args("); boolean first = true; - sb.append("sessionId:"); - if (this.sessionId == null) { + sb.append("token:"); + if (this.token == null) { sb.append("null"); } else { - sb.append(this.sessionId); + sb.append(this.token); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -4735,23 +6482,21 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getPublicImages_argsStandardSchemeFactory implements SchemeFactory { - public getPublicImages_argsStandardScheme getScheme() { - return new getPublicImages_argsStandardScheme(); + private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory { + public getUserFromToken_argsStandardScheme getScheme() { + return new getUserFromToken_argsStandardScheme(); } } - private static class getPublicImages_argsStandardScheme extends StandardScheme { + private static class getUserFromToken_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4761,18 +6506,10 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // SESSION_ID + case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.sessionId = iprot.readString(); - struct.setSessionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -4788,82 +6525,69 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.sessionId != null) { - oprot.writeFieldBegin(SESSION_ID_FIELD_DESC); - oprot.writeString(struct.sessionId); + if (struct.token != null) { + oprot.writeFieldBegin(TOKEN_FIELD_DESC); + oprot.writeString(struct.token); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPublicImages_argsTupleSchemeFactory implements SchemeFactory { - public getPublicImages_argsTupleScheme getScheme() { - return new getPublicImages_argsTupleScheme(); + private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory { + public getUserFromToken_argsTupleScheme getScheme() { + return new getUserFromToken_argsTupleScheme(); } } - private static class getPublicImages_argsTupleScheme extends TupleScheme { + private static class getUserFromToken_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSessionId()) { + if (struct.isSetToken()) { optionals.set(0); } - if (struct.isSetPage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSessionId()) { - oprot.writeString(struct.sessionId); - } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); + oprot.writeBitSet(optionals, 1); + if (struct.isSetToken()) { + oprot.writeString(struct.token); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.sessionId = iprot.readString(); - struct.setSessionIdIsSet(true); - } - if (incoming.get(1)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); + struct.token = iprot.readString(); + struct.setTokenIsSet(true); } } } } - public static class getPublicImages_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_result"); + public static class getUserFromToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPublicImages_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPublicImages_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory()); } - public List success; // required - public AuthorizationException failure; // required + public UserInfo success; // required + public InvalidTokenException failure; // 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 { @@ -4931,20 +6655,19 @@ public class ImageServer { 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, ImageData.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap); } - public getPublicImages_result() { + public getUserFromToken_result() { } - public getPublicImages_result( - List success, - AuthorizationException failure) + public getUserFromToken_result( + UserInfo success, + InvalidTokenException failure) { this(); this.success = success; @@ -4954,21 +6677,17 @@ public class ImageServer { /** * Performs a deep copy on other. */ - public getPublicImages_result(getPublicImages_result other) { + public getUserFromToken_result(getUserFromToken_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (ImageData other_element : other.success) { - __this__success.add(new ImageData(other_element)); - } - this.success = __this__success; + this.success = new UserInfo(other.success); } if (other.isSetFailure()) { - this.failure = new AuthorizationException(other.failure); + this.failure = new InvalidTokenException(other.failure); } } - public getPublicImages_result deepCopy() { - return new getPublicImages_result(this); + public getUserFromToken_result deepCopy() { + return new getUserFromToken_result(this); } @Override @@ -4977,26 +6696,11 @@ public class ImageServer { this.failure = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(ImageData elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public UserInfo getSuccess() { return this.success; } - public getPublicImages_result setSuccess(List success) { + public getUserFromToken_result setSuccess(UserInfo success) { this.success = success; return this; } @@ -5016,11 +6720,11 @@ public class ImageServer { } } - public AuthorizationException getFailure() { + public InvalidTokenException getFailure() { return this.failure; } - public getPublicImages_result setFailure(AuthorizationException failure) { + public getUserFromToken_result setFailure(InvalidTokenException failure) { this.failure = failure; return this; } @@ -5046,7 +6750,7 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((UserInfo)value); } break; @@ -5054,7 +6758,7 @@ public class ImageServer { if (value == null) { unsetFailure(); } else { - setFailure((AuthorizationException)value); + setFailure((InvalidTokenException)value); } break; @@ -5092,12 +6796,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPublicImages_result) - return this.equals((getPublicImages_result)that); + if (that instanceof getUserFromToken_result) + return this.equals((getUserFromToken_result)that); return false; } - public boolean equals(getPublicImages_result that) { + public boolean equals(getUserFromToken_result that) { if (that == null) return false; @@ -5127,30 +6831,30 @@ public class ImageServer { return 0; } - public int compareTo(getPublicImages_result other) { + @Override + public int compareTo(getUserFromToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getPublicImages_result typedOther = (getPublicImages_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -5172,7 +6876,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPublicImages_result("); + StringBuilder sb = new StringBuilder("getUserFromToken_result("); boolean first = true; sb.append("success:"); @@ -5197,6 +6901,9 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -5215,15 +6922,15 @@ public class ImageServer { } } - private static class getPublicImages_resultStandardSchemeFactory implements SchemeFactory { - public getPublicImages_resultStandardScheme getScheme() { - return new getPublicImages_resultStandardScheme(); + private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory { + public getUserFromToken_resultStandardScheme getScheme() { + return new getUserFromToken_resultStandardScheme(); } } - private static class getPublicImages_resultStandardScheme extends StandardScheme { + private static class getUserFromToken_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5234,19 +6941,9 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) - { - ImageData _elem26; // required - _elem26 = new ImageData(); - _elem26.read(iprot); - struct.success.add(_elem26); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new UserInfo(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -5254,7 +6951,7 @@ public class ImageServer { break; case 1: // FAILURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new AuthorizationException(); + struct.failure = new InvalidTokenException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } else { @@ -5272,20 +6969,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_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 (ImageData _iter27 : struct.success) - { - _iter27.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -5299,16 +6989,16 @@ public class ImageServer { } - private static class getPublicImages_resultTupleSchemeFactory implements SchemeFactory { - public getPublicImages_resultTupleScheme getScheme() { - return new getPublicImages_resultTupleScheme(); + private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory { + public getUserFromToken_resultTupleScheme getScheme() { + return new getUserFromToken_resultTupleScheme(); } } - private static class getPublicImages_resultTupleScheme extends TupleScheme { + private static class getUserFromToken_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -5319,13 +7009,7 @@ public class ImageServer { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (ImageData _iter28 : struct.success) - { - _iter28.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); @@ -5333,25 +7017,16 @@ public class ImageServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) - { - ImageData _elem31; // required - _elem31 = new ImageData(); - _elem31.read(iprot); - struct.success.add(_elem31); - } - } + struct.success = new UserInfo(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.failure = new AuthorizationException(); + struct.failure = new InvalidTokenException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } @@ -5360,22 +7035,22 @@ public class ImageServer { } - public static class getUserFromToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_args"); + public static class isServerAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_args"); - private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isServerAuthenticated_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isServerAuthenticated_argsTupleSchemeFactory()); } - public String token; // required + public String serverSessionId; // 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 { - TOKEN((short)1, "token"); + SERVER_SESSION_ID((short)1, "serverSessionId"); private static final Map byName = new HashMap(); @@ -5390,8 +7065,8 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TOKEN - return TOKEN; + case 1: // SERVER_SESSION_ID + return SERVER_SESSION_ID; default: return null; } @@ -5435,71 +7110,71 @@ public class ImageServer { 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.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", 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(getUserFromToken_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_args.class, metaDataMap); } - public getUserFromToken_args() { + public isServerAuthenticated_args() { } - public getUserFromToken_args( - String token) + public isServerAuthenticated_args( + String serverSessionId) { this(); - this.token = token; + this.serverSessionId = serverSessionId; } /** * Performs a deep copy on other. */ - public getUserFromToken_args(getUserFromToken_args other) { - if (other.isSetToken()) { - this.token = other.token; + public isServerAuthenticated_args(isServerAuthenticated_args other) { + if (other.isSetServerSessionId()) { + this.serverSessionId = other.serverSessionId; } } - public getUserFromToken_args deepCopy() { - return new getUserFromToken_args(this); + public isServerAuthenticated_args deepCopy() { + return new isServerAuthenticated_args(this); } @Override public void clear() { - this.token = null; + this.serverSessionId = null; } - public String getToken() { - return this.token; + public String getServerSessionId() { + return this.serverSessionId; } - public getUserFromToken_args setToken(String token) { - this.token = token; + public isServerAuthenticated_args setServerSessionId(String serverSessionId) { + this.serverSessionId = serverSessionId; return this; } - public void unsetToken() { - this.token = null; + public void unsetServerSessionId() { + this.serverSessionId = null; } - /** Returns true if field token is set (has been assigned a value) and false otherwise */ - public boolean isSetToken() { - return this.token != null; + /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetServerSessionId() { + return this.serverSessionId != null; } - public void setTokenIsSet(boolean value) { + public void setServerSessionIdIsSet(boolean value) { if (!value) { - this.token = null; + this.serverSessionId = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TOKEN: + case SERVER_SESSION_ID: if (value == null) { - unsetToken(); + unsetServerSessionId(); } else { - setToken((String)value); + setServerSessionId((String)value); } break; @@ -5508,8 +7183,8 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case TOKEN: - return getToken(); + case SERVER_SESSION_ID: + return getServerSessionId(); } throw new IllegalStateException(); @@ -5522,8 +7197,8 @@ public class ImageServer { } switch (field) { - case TOKEN: - return isSetToken(); + case SERVER_SESSION_ID: + return isSetServerSessionId(); } throw new IllegalStateException(); } @@ -5532,21 +7207,21 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserFromToken_args) - return this.equals((getUserFromToken_args)that); + if (that instanceof isServerAuthenticated_args) + return this.equals((isServerAuthenticated_args)that); return false; } - public boolean equals(getUserFromToken_args that) { + public boolean equals(isServerAuthenticated_args that) { if (that == null) return false; - boolean this_present_token = true && this.isSetToken(); - boolean that_present_token = true && that.isSetToken(); - if (this_present_token || that_present_token) { - if (!(this_present_token && that_present_token)) + boolean this_present_serverSessionId = true && this.isSetServerSessionId(); + boolean that_present_serverSessionId = true && that.isSetServerSessionId(); + if (this_present_serverSessionId || that_present_serverSessionId) { + if (!(this_present_serverSessionId && that_present_serverSessionId)) return false; - if (!this.token.equals(that.token)) + if (!this.serverSessionId.equals(that.serverSessionId)) return false; } @@ -5558,20 +7233,20 @@ public class ImageServer { return 0; } - public int compareTo(getUserFromToken_args other) { + @Override + public int compareTo(isServerAuthenticated_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getUserFromToken_args typedOther = (getUserFromToken_args)other; - lastComparison = Boolean.valueOf(isSetToken()).compareTo(typedOther.isSetToken()); + lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, typedOther.token); + if (isSetServerSessionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); if (lastComparison != 0) { return lastComparison; } @@ -5593,14 +7268,14 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_args("); + StringBuilder sb = new StringBuilder("isServerAuthenticated_args("); boolean first = true; - sb.append("token:"); - if (this.token == null) { + sb.append("serverSessionId:"); + if (this.serverSessionId == null) { sb.append("null"); } else { - sb.append(this.token); + sb.append(this.serverSessionId); } first = false; sb.append(")"); @@ -5628,15 +7303,15 @@ public class ImageServer { } } - private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory { - public getUserFromToken_argsStandardScheme getScheme() { - return new getUserFromToken_argsStandardScheme(); + private static class isServerAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + public isServerAuthenticated_argsStandardScheme getScheme() { + return new isServerAuthenticated_argsStandardScheme(); } } - private static class getUserFromToken_argsStandardScheme extends StandardScheme { + private static class isServerAuthenticated_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5646,10 +7321,10 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // TOKEN + case 1: // SERVER_SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.token = iprot.readString(); - struct.setTokenIsSet(true); + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5665,13 +7340,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.token != null) { - oprot.writeFieldBegin(TOKEN_FIELD_DESC); - oprot.writeString(struct.token); + if (struct.serverSessionId != null) { + oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); + oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -5680,59 +7355,56 @@ public class ImageServer { } - private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory { - public getUserFromToken_argsTupleScheme getScheme() { - return new getUserFromToken_argsTupleScheme(); + private static class isServerAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + public isServerAuthenticated_argsTupleScheme getScheme() { + return new isServerAuthenticated_argsTupleScheme(); } } - private static class getUserFromToken_argsTupleScheme extends TupleScheme { + private static class isServerAuthenticated_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetToken()) { + if (struct.isSetServerSessionId()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetToken()) { - oprot.writeString(struct.token); + if (struct.isSetServerSessionId()) { + oprot.writeString(struct.serverSessionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.token = iprot.readString(); - struct.setTokenIsSet(true); + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); } } } } - public static class getUserFromToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_result"); + public static class isServerAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isServerAuthenticated_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isServerAuthenticated_resultTupleSchemeFactory()); } - public UserInfo success; // required - public InvalidTokenException failure; // required + public boolean 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"), - FAILURE((short)1, "failure"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -5749,8 +7421,6 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // FAILURE - return FAILURE; default: return null; } @@ -5791,97 +7461,67 @@ public class ImageServer { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_result.class, metaDataMap); } - public getUserFromToken_result() { + public isServerAuthenticated_result() { } - public getUserFromToken_result( - UserInfo success, - InvalidTokenException failure) + public isServerAuthenticated_result( + boolean success) { this(); this.success = success; - this.failure = failure; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public getUserFromToken_result(getUserFromToken_result other) { - if (other.isSetSuccess()) { - this.success = new UserInfo(other.success); - } - if (other.isSetFailure()) { - this.failure = new InvalidTokenException(other.failure); - } + public isServerAuthenticated_result(isServerAuthenticated_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public getUserFromToken_result deepCopy() { - return new getUserFromToken_result(this); + public isServerAuthenticated_result deepCopy() { + return new isServerAuthenticated_result(this); } @Override public void clear() { - this.success = null; - this.failure = null; + setSuccessIsSet(false); + this.success = false; } - public UserInfo getSuccess() { + public boolean isSuccess() { return this.success; } - public getUserFromToken_result setSuccess(UserInfo success) { + public isServerAuthenticated_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public InvalidTokenException getFailure() { - return this.failure; - } - - public getUserFromToken_result setFailure(InvalidTokenException failure) { - this.failure = failure; - return this; - } - - public void unsetFailure() { - this.failure = null; - } - - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } - - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -5890,15 +7530,7 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((UserInfo)value); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((InvalidTokenException)value); + setSuccess((Boolean)value); } break; @@ -5908,10 +7540,7 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); - - case FAILURE: - return getFailure(); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -5926,8 +7555,6 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); - case FAILURE: - return isSetFailure(); } throw new IllegalStateException(); } @@ -5936,30 +7563,21 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserFromToken_result) - return this.equals((getUserFromToken_result)that); + if (that instanceof isServerAuthenticated_result) + return this.equals((isServerAuthenticated_result)that); return false; } - public boolean equals(getUserFromToken_result that) { + public boolean equals(isServerAuthenticated_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) - return false; - } - - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) + if (this.success != that.success) return false; } @@ -5971,30 +7589,20 @@ public class ImageServer { return 0; } - public int compareTo(getUserFromToken_result other) { + @Override + public int compareTo(isServerAuthenticated_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getUserFromToken_result typedOther = (getUserFromToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -6016,23 +7624,11 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_result("); + StringBuilder sb = new StringBuilder("isServerAuthenticated_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -6041,9 +7637,6 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -6056,21 +7649,23 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory { - public getUserFromToken_resultStandardScheme getScheme() { - return new getUserFromToken_resultStandardScheme(); + private static class isServerAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + public isServerAuthenticated_resultStandardScheme getScheme() { + return new isServerAuthenticated_resultStandardScheme(); } } - private static class getUserFromToken_resultStandardScheme extends StandardScheme { + private static class isServerAuthenticated_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6081,23 +7676,13 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new UserInfo(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new InvalidTokenException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6109,18 +7694,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6129,68 +7709,56 @@ public class ImageServer { } - private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory { - public getUserFromToken_resultTupleScheme getScheme() { - return new getUserFromToken_resultTupleScheme(); + private static class isServerAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + public isServerAuthenticated_resultTupleScheme getScheme() { + return new isServerAuthenticated_resultTupleScheme(); } } - private static class getUserFromToken_resultTupleScheme extends TupleScheme { + private static class isServerAuthenticated_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetFailure()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetFailure()) { - struct.failure.write(oprot); + oprot.writeBool(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new UserInfo(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.failure = new InvalidTokenException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } } } } - public static class isServerAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_args"); + public static class startServerAuthentication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ORGANIZATION_FIELD_DESC = new org.apache.thrift.protocol.TField("organization", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isServerAuthenticated_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isServerAuthenticated_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new startServerAuthentication_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new startServerAuthentication_argsTupleSchemeFactory()); } - public String serverSessionId; // required + public String organization; // 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 { - SERVER_SESSION_ID((short)1, "serverSessionId"); + ORGANIZATION((short)1, "organization"); private static final Map byName = new HashMap(); @@ -6205,8 +7773,8 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SERVER_SESSION_ID - return SERVER_SESSION_ID; + case 1: // ORGANIZATION + return ORGANIZATION; default: return null; } @@ -6250,71 +7818,71 @@ public class ImageServer { 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.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ORGANIZATION, new org.apache.thrift.meta_data.FieldMetaData("organization", 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(isServerAuthenticated_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_args.class, metaDataMap); } - public isServerAuthenticated_args() { + public startServerAuthentication_args() { } - public isServerAuthenticated_args( - String serverSessionId) + public startServerAuthentication_args( + String organization) { this(); - this.serverSessionId = serverSessionId; + this.organization = organization; } /** * Performs a deep copy on other. */ - public isServerAuthenticated_args(isServerAuthenticated_args other) { - if (other.isSetServerSessionId()) { - this.serverSessionId = other.serverSessionId; + public startServerAuthentication_args(startServerAuthentication_args other) { + if (other.isSetOrganization()) { + this.organization = other.organization; } } - public isServerAuthenticated_args deepCopy() { - return new isServerAuthenticated_args(this); + public startServerAuthentication_args deepCopy() { + return new startServerAuthentication_args(this); } @Override public void clear() { - this.serverSessionId = null; + this.organization = null; } - public String getServerSessionId() { - return this.serverSessionId; + public String getOrganization() { + return this.organization; } - public isServerAuthenticated_args setServerSessionId(String serverSessionId) { - this.serverSessionId = serverSessionId; + public startServerAuthentication_args setOrganization(String organization) { + this.organization = organization; return this; } - public void unsetServerSessionId() { - this.serverSessionId = null; + public void unsetOrganization() { + this.organization = null; } - /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetServerSessionId() { - return this.serverSessionId != null; + /** Returns true if field organization is set (has been assigned a value) and false otherwise */ + public boolean isSetOrganization() { + return this.organization != null; } - public void setServerSessionIdIsSet(boolean value) { + public void setOrganizationIsSet(boolean value) { if (!value) { - this.serverSessionId = null; + this.organization = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SERVER_SESSION_ID: + case ORGANIZATION: if (value == null) { - unsetServerSessionId(); + unsetOrganization(); } else { - setServerSessionId((String)value); + setOrganization((String)value); } break; @@ -6323,8 +7891,8 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case SERVER_SESSION_ID: - return getServerSessionId(); + case ORGANIZATION: + return getOrganization(); } throw new IllegalStateException(); @@ -6337,8 +7905,8 @@ public class ImageServer { } switch (field) { - case SERVER_SESSION_ID: - return isSetServerSessionId(); + case ORGANIZATION: + return isSetOrganization(); } throw new IllegalStateException(); } @@ -6347,21 +7915,21 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isServerAuthenticated_args) - return this.equals((isServerAuthenticated_args)that); + if (that instanceof startServerAuthentication_args) + return this.equals((startServerAuthentication_args)that); return false; } - public boolean equals(isServerAuthenticated_args that) { + public boolean equals(startServerAuthentication_args that) { if (that == null) return false; - boolean this_present_serverSessionId = true && this.isSetServerSessionId(); - boolean that_present_serverSessionId = true && that.isSetServerSessionId(); - if (this_present_serverSessionId || that_present_serverSessionId) { - if (!(this_present_serverSessionId && that_present_serverSessionId)) + boolean this_present_organization = true && this.isSetOrganization(); + boolean that_present_organization = true && that.isSetOrganization(); + if (this_present_organization || that_present_organization) { + if (!(this_present_organization && that_present_organization)) return false; - if (!this.serverSessionId.equals(that.serverSessionId)) + if (!this.organization.equals(that.organization)) return false; } @@ -6373,20 +7941,20 @@ public class ImageServer { return 0; } - public int compareTo(isServerAuthenticated_args other) { + @Override + public int compareTo(startServerAuthentication_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - isServerAuthenticated_args typedOther = (isServerAuthenticated_args)other; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(typedOther.isSetServerSessionId()); + lastComparison = Boolean.valueOf(isSetOrganization()).compareTo(other.isSetOrganization()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, typedOther.serverSessionId); + if (isSetOrganization()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organization, other.organization); if (lastComparison != 0) { return lastComparison; } @@ -6408,14 +7976,14 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isServerAuthenticated_args("); + StringBuilder sb = new StringBuilder("startServerAuthentication_args("); boolean first = true; - sb.append("serverSessionId:"); - if (this.serverSessionId == null) { + sb.append("organization:"); + if (this.organization == null) { sb.append("null"); } else { - sb.append(this.serverSessionId); + sb.append(this.organization); } first = false; sb.append(")"); @@ -6443,15 +8011,15 @@ public class ImageServer { } } - private static class isServerAuthenticated_argsStandardSchemeFactory implements SchemeFactory { - public isServerAuthenticated_argsStandardScheme getScheme() { - return new isServerAuthenticated_argsStandardScheme(); + private static class startServerAuthentication_argsStandardSchemeFactory implements SchemeFactory { + public startServerAuthentication_argsStandardScheme getScheme() { + return new startServerAuthentication_argsStandardScheme(); } } - private static class isServerAuthenticated_argsStandardScheme extends StandardScheme { + private static class startServerAuthentication_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6461,10 +8029,10 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // SERVER_SESSION_ID + case 1: // ORGANIZATION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.organization = iprot.readString(); + struct.setOrganizationIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6480,13 +8048,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.serverSessionId != null) { - oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); - oprot.writeString(struct.serverSessionId); + if (struct.organization != null) { + oprot.writeFieldBegin(ORGANIZATION_FIELD_DESC); + oprot.writeString(struct.organization); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6495,56 +8063,59 @@ public class ImageServer { } - private static class isServerAuthenticated_argsTupleSchemeFactory implements SchemeFactory { - public isServerAuthenticated_argsTupleScheme getScheme() { - return new isServerAuthenticated_argsTupleScheme(); + private static class startServerAuthentication_argsTupleSchemeFactory implements SchemeFactory { + public startServerAuthentication_argsTupleScheme getScheme() { + return new startServerAuthentication_argsTupleScheme(); } } - private static class isServerAuthenticated_argsTupleScheme extends TupleScheme { + private static class startServerAuthentication_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetServerSessionId()) { + if (struct.isSetOrganization()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetServerSessionId()) { - oprot.writeString(struct.serverSessionId); + if (struct.isSetOrganization()) { + oprot.writeString(struct.organization); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.organization = iprot.readString(); + struct.setOrganizationIsSet(true); } } } } - public static class isServerAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_result"); + public static class startServerAuthentication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); + private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isServerAuthenticated_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isServerAuthenticated_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new startServerAuthentication_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new startServerAuthentication_resultTupleSchemeFactory()); } - public boolean success; // required + public ByteBuffer success; // required + public AuthenticationException failure; // 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"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"); private static final Map byName = new HashMap(); @@ -6561,6 +8132,8 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // FAILURE + return FAILURE; default: return null; } @@ -6601,67 +8174,108 @@ public class ImageServer { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_result.class, metaDataMap); } - public isServerAuthenticated_result() { + public startServerAuthentication_result() { } - public isServerAuthenticated_result( - boolean success) + public startServerAuthentication_result( + ByteBuffer success, + AuthenticationException failure) { this(); this.success = success; - setSuccessIsSet(true); + this.failure = failure; } /** * Performs a deep copy on other. */ - public isServerAuthenticated_result(isServerAuthenticated_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public startServerAuthentication_result(startServerAuthentication_result other) { + if (other.isSetSuccess()) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); +; + } + if (other.isSetFailure()) { + this.failure = new AuthenticationException(other.failure); + } } - public isServerAuthenticated_result deepCopy() { - return new isServerAuthenticated_result(this); + public startServerAuthentication_result deepCopy() { + return new startServerAuthentication_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; + this.failure = null; } - public boolean isSuccess() { - return this.success; + public byte[] getSuccess() { + setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); + return success == null ? null : success.array(); } - public isServerAuthenticated_result setSuccess(boolean success) { + public ByteBuffer bufferForSuccess() { + return success; + } + + public startServerAuthentication_result setSuccess(byte[] success) { + setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success)); + return this; + } + + public startServerAuthentication_result setSuccess(ByteBuffer success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } + } + + public AuthenticationException getFailure() { + return this.failure; + } + + public startServerAuthentication_result setFailure(AuthenticationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -6670,7 +8284,15 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((ByteBuffer)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((AuthenticationException)value); } break; @@ -6680,7 +8302,10 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); + + case FAILURE: + return getFailure(); } throw new IllegalStateException(); @@ -6695,6 +8320,8 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); + case FAILURE: + return isSetFailure(); } throw new IllegalStateException(); } @@ -6703,21 +8330,30 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isServerAuthenticated_result) - return this.equals((isServerAuthenticated_result)that); + if (that instanceof startServerAuthentication_result) + return this.equals((startServerAuthentication_result)that); return false; } - public boolean equals(isServerAuthenticated_result that) { + public boolean equals(startServerAuthentication_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) return false; } @@ -6729,20 +8365,30 @@ public class ImageServer { return 0; } - public int compareTo(isServerAuthenticated_result other) { + @Override + public int compareTo(startServerAuthentication_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - isServerAuthenticated_result typedOther = (isServerAuthenticated_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -6764,11 +8410,23 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isServerAuthenticated_result("); + StringBuilder sb = new StringBuilder("startServerAuthentication_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.success, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + sb.append(this.failure); + } first = false; sb.append(")"); return sb.toString(); @@ -6789,23 +8447,21 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class isServerAuthenticated_resultStandardSchemeFactory implements SchemeFactory { - public isServerAuthenticated_resultStandardScheme getScheme() { - return new isServerAuthenticated_resultStandardScheme(); + private static class startServerAuthentication_resultStandardSchemeFactory implements SchemeFactory { + public startServerAuthentication_resultStandardScheme getScheme() { + return new startServerAuthentication_resultStandardScheme(); } } - private static class isServerAuthenticated_resultStandardScheme extends StandardScheme { + private static class startServerAuthentication_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6816,13 +8472,22 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readBinary(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // FAILURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure = new AuthenticationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6834,13 +8499,18 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + oprot.writeBinary(struct.success); + oprot.writeFieldEnd(); + } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + struct.failure.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6849,56 +8519,70 @@ public class ImageServer { } - private static class isServerAuthenticated_resultTupleSchemeFactory implements SchemeFactory { - public isServerAuthenticated_resultTupleScheme getScheme() { - return new isServerAuthenticated_resultTupleScheme(); + private static class startServerAuthentication_resultTupleSchemeFactory implements SchemeFactory { + public startServerAuthentication_resultTupleScheme getScheme() { + return new startServerAuthentication_resultTupleScheme(); } } - private static class isServerAuthenticated_resultTupleScheme extends TupleScheme { + private static class startServerAuthentication_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_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.isSetFailure()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + oprot.writeBinary(struct.success); + } + if (struct.isSetFailure()) { + struct.failure.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = iprot.readBinary(); struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.failure = new AuthenticationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } } } } - public static class startServerAuthentication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_args"); + public static class serverAuthenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_args"); - private static final org.apache.thrift.protocol.TField ORGANIZATION_FIELD_DESC = new org.apache.thrift.protocol.TField("organization", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CHALLENGE_RESPONSE_FIELD_DESC = new org.apache.thrift.protocol.TField("challengeResponse", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new startServerAuthentication_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startServerAuthentication_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new serverAuthenticate_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new serverAuthenticate_argsTupleSchemeFactory()); } - public String organization; // required + public String organizationId; // required + public ByteBuffer challengeResponse; // 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 { - ORGANIZATION((short)1, "organization"); + ORGANIZATION_ID((short)1, "organizationId"), + CHALLENGE_RESPONSE((short)2, "challengeResponse"); private static final Map byName = new HashMap(); @@ -6913,8 +8597,10 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ORGANIZATION - return ORGANIZATION; + case 1: // ORGANIZATION_ID + return ORGANIZATION_ID; + case 2: // CHALLENGE_RESPONSE + return CHALLENGE_RESPONSE; default: return null; } @@ -6958,71 +8644,122 @@ public class ImageServer { 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.ORGANIZATION, new org.apache.thrift.meta_data.FieldMetaData("organization", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CHALLENGE_RESPONSE, new org.apache.thrift.meta_data.FieldMetaData("challengeResponse", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_args.class, metaDataMap); } - public startServerAuthentication_args() { + public serverAuthenticate_args() { } - public startServerAuthentication_args( - String organization) + public serverAuthenticate_args( + String organizationId, + ByteBuffer challengeResponse) { this(); - this.organization = organization; + this.organizationId = organizationId; + this.challengeResponse = challengeResponse; } /** * Performs a deep copy on other. */ - public startServerAuthentication_args(startServerAuthentication_args other) { - if (other.isSetOrganization()) { - this.organization = other.organization; + public serverAuthenticate_args(serverAuthenticate_args other) { + if (other.isSetOrganizationId()) { + this.organizationId = other.organizationId; + } + if (other.isSetChallengeResponse()) { + this.challengeResponse = org.apache.thrift.TBaseHelper.copyBinary(other.challengeResponse); +; } } - public startServerAuthentication_args deepCopy() { - return new startServerAuthentication_args(this); + public serverAuthenticate_args deepCopy() { + return new serverAuthenticate_args(this); } @Override public void clear() { - this.organization = null; + this.organizationId = null; + this.challengeResponse = null; } - public String getOrganization() { - return this.organization; + public String getOrganizationId() { + return this.organizationId; } - public startServerAuthentication_args setOrganization(String organization) { - this.organization = organization; + public serverAuthenticate_args setOrganizationId(String organizationId) { + this.organizationId = organizationId; return this; } - public void unsetOrganization() { - this.organization = null; + public void unsetOrganizationId() { + this.organizationId = null; } - /** Returns true if field organization is set (has been assigned a value) and false otherwise */ - public boolean isSetOrganization() { - return this.organization != null; + /** Returns true if field organizationId is set (has been assigned a value) and false otherwise */ + public boolean isSetOrganizationId() { + return this.organizationId != null; } - public void setOrganizationIsSet(boolean value) { + public void setOrganizationIdIsSet(boolean value) { if (!value) { - this.organization = null; + this.organizationId = null; + } + } + + public byte[] getChallengeResponse() { + setChallengeResponse(org.apache.thrift.TBaseHelper.rightSize(challengeResponse)); + return challengeResponse == null ? null : challengeResponse.array(); + } + + public ByteBuffer bufferForChallengeResponse() { + return challengeResponse; + } + + public serverAuthenticate_args setChallengeResponse(byte[] challengeResponse) { + setChallengeResponse(challengeResponse == null ? (ByteBuffer)null : ByteBuffer.wrap(challengeResponse)); + return this; + } + + public serverAuthenticate_args setChallengeResponse(ByteBuffer challengeResponse) { + this.challengeResponse = challengeResponse; + return this; + } + + public void unsetChallengeResponse() { + this.challengeResponse = null; + } + + /** Returns true if field challengeResponse is set (has been assigned a value) and false otherwise */ + public boolean isSetChallengeResponse() { + return this.challengeResponse != null; + } + + public void setChallengeResponseIsSet(boolean value) { + if (!value) { + this.challengeResponse = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ORGANIZATION: + case ORGANIZATION_ID: if (value == null) { - unsetOrganization(); + unsetOrganizationId(); } else { - setOrganization((String)value); + setOrganizationId((String)value); + } + break; + + case CHALLENGE_RESPONSE: + if (value == null) { + unsetChallengeResponse(); + } else { + setChallengeResponse((ByteBuffer)value); } break; @@ -7031,8 +8768,11 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case ORGANIZATION: - return getOrganization(); + case ORGANIZATION_ID: + return getOrganizationId(); + + case CHALLENGE_RESPONSE: + return getChallengeResponse(); } throw new IllegalStateException(); @@ -7045,8 +8785,10 @@ public class ImageServer { } switch (field) { - case ORGANIZATION: - return isSetOrganization(); + case ORGANIZATION_ID: + return isSetOrganizationId(); + case CHALLENGE_RESPONSE: + return isSetChallengeResponse(); } throw new IllegalStateException(); } @@ -7055,21 +8797,30 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof startServerAuthentication_args) - return this.equals((startServerAuthentication_args)that); + if (that instanceof serverAuthenticate_args) + return this.equals((serverAuthenticate_args)that); return false; } - public boolean equals(startServerAuthentication_args that) { + public boolean equals(serverAuthenticate_args that) { if (that == null) return false; - boolean this_present_organization = true && this.isSetOrganization(); - boolean that_present_organization = true && that.isSetOrganization(); - if (this_present_organization || that_present_organization) { - if (!(this_present_organization && that_present_organization)) + boolean this_present_organizationId = true && this.isSetOrganizationId(); + boolean that_present_organizationId = true && that.isSetOrganizationId(); + if (this_present_organizationId || that_present_organizationId) { + if (!(this_present_organizationId && that_present_organizationId)) + return false; + if (!this.organizationId.equals(that.organizationId)) + return false; + } + + boolean this_present_challengeResponse = true && this.isSetChallengeResponse(); + boolean that_present_challengeResponse = true && that.isSetChallengeResponse(); + if (this_present_challengeResponse || that_present_challengeResponse) { + if (!(this_present_challengeResponse && that_present_challengeResponse)) return false; - if (!this.organization.equals(that.organization)) + if (!this.challengeResponse.equals(that.challengeResponse)) return false; } @@ -7081,20 +8832,30 @@ public class ImageServer { return 0; } - public int compareTo(startServerAuthentication_args other) { + @Override + public int compareTo(serverAuthenticate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - startServerAuthentication_args typedOther = (startServerAuthentication_args)other; - lastComparison = Boolean.valueOf(isSetOrganization()).compareTo(typedOther.isSetOrganization()); + lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId()); if (lastComparison != 0) { return lastComparison; } - if (isSetOrganization()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organization, typedOther.organization); + if (isSetOrganizationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organizationId, other.organizationId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetChallengeResponse()).compareTo(other.isSetChallengeResponse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetChallengeResponse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.challengeResponse, other.challengeResponse); if (lastComparison != 0) { return lastComparison; } @@ -7116,14 +8877,22 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("startServerAuthentication_args("); + StringBuilder sb = new StringBuilder("serverAuthenticate_args("); boolean first = true; - sb.append("organization:"); - if (this.organization == null) { + sb.append("organizationId:"); + if (this.organizationId == null) { sb.append("null"); } else { - sb.append(this.organization); + sb.append(this.organizationId); + } + first = false; + if (!first) sb.append(", "); + sb.append("challengeResponse:"); + if (this.challengeResponse == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.challengeResponse, sb); } first = false; sb.append(")"); @@ -7151,15 +8920,15 @@ public class ImageServer { } } - private static class startServerAuthentication_argsStandardSchemeFactory implements SchemeFactory { - public startServerAuthentication_argsStandardScheme getScheme() { - return new startServerAuthentication_argsStandardScheme(); + private static class serverAuthenticate_argsStandardSchemeFactory implements SchemeFactory { + public serverAuthenticate_argsStandardScheme getScheme() { + return new serverAuthenticate_argsStandardScheme(); } } - private static class startServerAuthentication_argsStandardScheme extends StandardScheme { + private static class serverAuthenticate_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7169,10 +8938,18 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // ORGANIZATION + case 1: // ORGANIZATION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.organization = iprot.readString(); - struct.setOrganizationIsSet(true); + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CHALLENGE_RESPONSE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.challengeResponse = iprot.readBinary(); + struct.setChallengeResponseIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7188,13 +8965,18 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.organization != null) { - oprot.writeFieldBegin(ORGANIZATION_FIELD_DESC); - oprot.writeString(struct.organization); + if (struct.organizationId != null) { + oprot.writeFieldBegin(ORGANIZATION_ID_FIELD_DESC); + oprot.writeString(struct.organizationId); + oprot.writeFieldEnd(); + } + if (struct.challengeResponse != null) { + oprot.writeFieldBegin(CHALLENGE_RESPONSE_FIELD_DESC); + oprot.writeBinary(struct.challengeResponse); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -7203,53 +8985,63 @@ public class ImageServer { } - private static class startServerAuthentication_argsTupleSchemeFactory implements SchemeFactory { - public startServerAuthentication_argsTupleScheme getScheme() { - return new startServerAuthentication_argsTupleScheme(); + private static class serverAuthenticate_argsTupleSchemeFactory implements SchemeFactory { + public serverAuthenticate_argsTupleScheme getScheme() { + return new serverAuthenticate_argsTupleScheme(); } } - private static class startServerAuthentication_argsTupleScheme extends TupleScheme { + private static class serverAuthenticate_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetOrganization()) { + if (struct.isSetOrganizationId()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetOrganization()) { - oprot.writeString(struct.organization); + if (struct.isSetChallengeResponse()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetOrganizationId()) { + oprot.writeString(struct.organizationId); + } + if (struct.isSetChallengeResponse()) { + oprot.writeBinary(struct.challengeResponse); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.organization = iprot.readString(); - struct.setOrganizationIsSet(true); + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); + } + if (incoming.get(1)) { + struct.challengeResponse = iprot.readBinary(); + struct.setChallengeResponseIsSet(true); } } } } - public static class startServerAuthentication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_result"); + public static class serverAuthenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new startServerAuthentication_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startServerAuthentication_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new serverAuthenticate_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new serverAuthenticate_resultTupleSchemeFactory()); } - public ByteBuffer success; // required + public ServerSessionData success; // required public AuthenticationException failure; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -7318,18 +9110,18 @@ public class ImageServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ServerSessionData.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_result.class, metaDataMap); } - public startServerAuthentication_result() { + public serverAuthenticate_result() { } - public startServerAuthentication_result( - ByteBuffer success, + public serverAuthenticate_result( + ServerSessionData success, AuthenticationException failure) { this(); @@ -7340,18 +9132,17 @@ public class ImageServer { /** * Performs a deep copy on other. */ - public startServerAuthentication_result(startServerAuthentication_result other) { + public serverAuthenticate_result(serverAuthenticate_result other) { if (other.isSetSuccess()) { - this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); -; + this.success = new ServerSessionData(other.success); } if (other.isSetFailure()) { this.failure = new AuthenticationException(other.failure); } } - public startServerAuthentication_result deepCopy() { - return new startServerAuthentication_result(this); + public serverAuthenticate_result deepCopy() { + return new serverAuthenticate_result(this); } @Override @@ -7360,21 +9151,11 @@ public class ImageServer { this.failure = null; } - public byte[] getSuccess() { - setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); - return success == null ? null : success.array(); - } - - public ByteBuffer bufferForSuccess() { - return success; - } - - public startServerAuthentication_result setSuccess(byte[] success) { - setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success)); - return this; + public ServerSessionData getSuccess() { + return this.success; } - public startServerAuthentication_result setSuccess(ByteBuffer success) { + public serverAuthenticate_result setSuccess(ServerSessionData success) { this.success = success; return this; } @@ -7398,7 +9179,7 @@ public class ImageServer { return this.failure; } - public startServerAuthentication_result setFailure(AuthenticationException failure) { + public serverAuthenticate_result setFailure(AuthenticationException failure) { this.failure = failure; return this; } @@ -7424,7 +9205,7 @@ public class ImageServer { if (value == null) { unsetSuccess(); } else { - setSuccess((ByteBuffer)value); + setSuccess((ServerSessionData)value); } break; @@ -7470,12 +9251,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof startServerAuthentication_result) - return this.equals((startServerAuthentication_result)that); + if (that instanceof serverAuthenticate_result) + return this.equals((serverAuthenticate_result)that); return false; } - public boolean equals(startServerAuthentication_result that) { + public boolean equals(serverAuthenticate_result that) { if (that == null) return false; @@ -7505,30 +9286,30 @@ public class ImageServer { return 0; } - public int compareTo(startServerAuthentication_result other) { + @Override + public int compareTo(serverAuthenticate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - startServerAuthentication_result typedOther = (startServerAuthentication_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -7550,14 +9331,14 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("startServerAuthentication_result("); + StringBuilder sb = new StringBuilder("serverAuthenticate_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.success, sb); + sb.append(this.success); } first = false; if (!first) sb.append(", "); @@ -7575,6 +9356,9 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -7593,15 +9377,15 @@ public class ImageServer { } } - private static class startServerAuthentication_resultStandardSchemeFactory implements SchemeFactory { - public startServerAuthentication_resultStandardScheme getScheme() { - return new startServerAuthentication_resultStandardScheme(); + private static class serverAuthenticate_resultStandardSchemeFactory implements SchemeFactory { + public serverAuthenticate_resultStandardScheme getScheme() { + return new serverAuthenticate_resultStandardScheme(); } } - private static class startServerAuthentication_resultStandardScheme extends StandardScheme { + private static class serverAuthenticate_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7612,8 +9396,9 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readBinary(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new ServerSessionData(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -7639,13 +9424,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBinary(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -7659,16 +9444,16 @@ public class ImageServer { } - private static class startServerAuthentication_resultTupleSchemeFactory implements SchemeFactory { - public startServerAuthentication_resultTupleScheme getScheme() { - return new startServerAuthentication_resultTupleScheme(); + private static class serverAuthenticate_resultTupleSchemeFactory implements SchemeFactory { + public serverAuthenticate_resultTupleScheme getScheme() { + return new serverAuthenticate_resultTupleScheme(); } } - private static class startServerAuthentication_resultTupleScheme extends TupleScheme { + private static class serverAuthenticate_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -7679,7 +9464,7 @@ public class ImageServer { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - oprot.writeBinary(struct.success); + struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); @@ -7687,11 +9472,12 @@ public class ImageServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBinary(); + struct.success = new ServerSessionData(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -7704,25 +9490,28 @@ public class ImageServer { } - public static class serverAuthenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_args"); + public static class submitImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_args"); - private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField CHALLENGE_RESPONSE_FIELD_DESC = new org.apache.thrift.protocol.TField("challengeResponse", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageDescription", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField CRC_SUMS_FIELD_DESC = new org.apache.thrift.protocol.TField("crcSums", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new serverAuthenticate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new serverAuthenticate_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new submitImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory()); } - public String organizationId; // required - public ByteBuffer challengeResponse; // required + public String serverSessionId; // required + public ImageData imageDescription; // required + public List crcSums; // 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 { - ORGANIZATION_ID((short)1, "organizationId"), - CHALLENGE_RESPONSE((short)2, "challengeResponse"); + SERVER_SESSION_ID((short)1, "serverSessionId"), + IMAGE_DESCRIPTION((short)2, "imageDescription"), + CRC_SUMS((short)3, "crcSums"); private static final Map byName = new HashMap(); @@ -7737,10 +9526,12 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ORGANIZATION_ID - return ORGANIZATION_ID; - case 2: // CHALLENGE_RESPONSE - return CHALLENGE_RESPONSE; + case 1: // SERVER_SESSION_ID + return SERVER_SESSION_ID; + case 2: // IMAGE_DESCRIPTION + return IMAGE_DESCRIPTION; + case 3: // CRC_SUMS + return CRC_SUMS; default: return null; } @@ -7784,122 +9575,168 @@ public class ImageServer { 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.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.CHALLENGE_RESPONSE, new org.apache.thrift.meta_data.FieldMetaData("challengeResponse", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); + tmpMap.put(_Fields.IMAGE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageData.class))); + tmpMap.put(_Fields.CRC_SUMS, new org.apache.thrift.meta_data.FieldMetaData("crcSums", 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.I32)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap); } - public serverAuthenticate_args() { + public submitImage_args() { } - public serverAuthenticate_args( - String organizationId, - ByteBuffer challengeResponse) + public submitImage_args( + String serverSessionId, + ImageData imageDescription, + List crcSums) { this(); - this.organizationId = organizationId; - this.challengeResponse = challengeResponse; + this.serverSessionId = serverSessionId; + this.imageDescription = imageDescription; + this.crcSums = crcSums; } /** * Performs a deep copy on other. */ - public serverAuthenticate_args(serverAuthenticate_args other) { - if (other.isSetOrganizationId()) { - this.organizationId = other.organizationId; + public submitImage_args(submitImage_args other) { + if (other.isSetServerSessionId()) { + this.serverSessionId = other.serverSessionId; } - if (other.isSetChallengeResponse()) { - this.challengeResponse = org.apache.thrift.TBaseHelper.copyBinary(other.challengeResponse); -; + if (other.isSetImageDescription()) { + this.imageDescription = new ImageData(other.imageDescription); + } + if (other.isSetCrcSums()) { + List __this__crcSums = new ArrayList(other.crcSums); + this.crcSums = __this__crcSums; } } - public serverAuthenticate_args deepCopy() { - return new serverAuthenticate_args(this); + public submitImage_args deepCopy() { + return new submitImage_args(this); } @Override public void clear() { - this.organizationId = null; - this.challengeResponse = null; + this.serverSessionId = null; + this.imageDescription = null; + this.crcSums = null; } - public String getOrganizationId() { - return this.organizationId; + public String getServerSessionId() { + return this.serverSessionId; } - public serverAuthenticate_args setOrganizationId(String organizationId) { - this.organizationId = organizationId; + public submitImage_args setServerSessionId(String serverSessionId) { + this.serverSessionId = serverSessionId; return this; } - public void unsetOrganizationId() { - this.organizationId = null; + public void unsetServerSessionId() { + this.serverSessionId = null; } - /** Returns true if field organizationId is set (has been assigned a value) and false otherwise */ - public boolean isSetOrganizationId() { - return this.organizationId != null; + /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetServerSessionId() { + return this.serverSessionId != null; } - public void setOrganizationIdIsSet(boolean value) { + public void setServerSessionIdIsSet(boolean value) { if (!value) { - this.organizationId = null; + this.serverSessionId = null; } } - public byte[] getChallengeResponse() { - setChallengeResponse(org.apache.thrift.TBaseHelper.rightSize(challengeResponse)); - return challengeResponse == null ? null : challengeResponse.array(); + public ImageData getImageDescription() { + return this.imageDescription; } - public ByteBuffer bufferForChallengeResponse() { - return challengeResponse; + public submitImage_args setImageDescription(ImageData imageDescription) { + this.imageDescription = imageDescription; + return this; } - public serverAuthenticate_args setChallengeResponse(byte[] challengeResponse) { - setChallengeResponse(challengeResponse == null ? (ByteBuffer)null : ByteBuffer.wrap(challengeResponse)); - return this; + public void unsetImageDescription() { + this.imageDescription = null; } - public serverAuthenticate_args setChallengeResponse(ByteBuffer challengeResponse) { - this.challengeResponse = challengeResponse; + /** Returns true if field imageDescription is set (has been assigned a value) and false otherwise */ + public boolean isSetImageDescription() { + return this.imageDescription != null; + } + + public void setImageDescriptionIsSet(boolean value) { + if (!value) { + this.imageDescription = null; + } + } + + public int getCrcSumsSize() { + return (this.crcSums == null) ? 0 : this.crcSums.size(); + } + + public java.util.Iterator getCrcSumsIterator() { + return (this.crcSums == null) ? null : this.crcSums.iterator(); + } + + public void addToCrcSums(int elem) { + if (this.crcSums == null) { + this.crcSums = new ArrayList(); + } + this.crcSums.add(elem); + } + + public List getCrcSums() { + return this.crcSums; + } + + public submitImage_args setCrcSums(List crcSums) { + this.crcSums = crcSums; return this; } - public void unsetChallengeResponse() { - this.challengeResponse = null; + public void unsetCrcSums() { + this.crcSums = null; } - /** Returns true if field challengeResponse is set (has been assigned a value) and false otherwise */ - public boolean isSetChallengeResponse() { - return this.challengeResponse != null; + /** Returns true if field crcSums is set (has been assigned a value) and false otherwise */ + public boolean isSetCrcSums() { + return this.crcSums != null; } - public void setChallengeResponseIsSet(boolean value) { + public void setCrcSumsIsSet(boolean value) { if (!value) { - this.challengeResponse = null; + this.crcSums = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case ORGANIZATION_ID: + case SERVER_SESSION_ID: if (value == null) { - unsetOrganizationId(); + unsetServerSessionId(); } else { - setOrganizationId((String)value); + setServerSessionId((String)value); } break; - case CHALLENGE_RESPONSE: + case IMAGE_DESCRIPTION: if (value == null) { - unsetChallengeResponse(); + unsetImageDescription(); } else { - setChallengeResponse((ByteBuffer)value); + setImageDescription((ImageData)value); + } + break; + + case CRC_SUMS: + if (value == null) { + unsetCrcSums(); + } else { + setCrcSums((List)value); } break; @@ -7908,11 +9745,14 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case ORGANIZATION_ID: - return getOrganizationId(); + case SERVER_SESSION_ID: + return getServerSessionId(); - case CHALLENGE_RESPONSE: - return getChallengeResponse(); + case IMAGE_DESCRIPTION: + return getImageDescription(); + + case CRC_SUMS: + return getCrcSums(); } throw new IllegalStateException(); @@ -7925,10 +9765,12 @@ public class ImageServer { } switch (field) { - case ORGANIZATION_ID: - return isSetOrganizationId(); - case CHALLENGE_RESPONSE: - return isSetChallengeResponse(); + case SERVER_SESSION_ID: + return isSetServerSessionId(); + case IMAGE_DESCRIPTION: + return isSetImageDescription(); + case CRC_SUMS: + return isSetCrcSums(); } throw new IllegalStateException(); } @@ -7937,30 +9779,39 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof serverAuthenticate_args) - return this.equals((serverAuthenticate_args)that); + if (that instanceof submitImage_args) + return this.equals((submitImage_args)that); return false; } - public boolean equals(serverAuthenticate_args that) { + public boolean equals(submitImage_args that) { if (that == null) return false; - boolean this_present_organizationId = true && this.isSetOrganizationId(); - boolean that_present_organizationId = true && that.isSetOrganizationId(); - if (this_present_organizationId || that_present_organizationId) { - if (!(this_present_organizationId && that_present_organizationId)) + boolean this_present_serverSessionId = true && this.isSetServerSessionId(); + boolean that_present_serverSessionId = true && that.isSetServerSessionId(); + if (this_present_serverSessionId || that_present_serverSessionId) { + if (!(this_present_serverSessionId && that_present_serverSessionId)) return false; - if (!this.organizationId.equals(that.organizationId)) + if (!this.serverSessionId.equals(that.serverSessionId)) return false; } - boolean this_present_challengeResponse = true && this.isSetChallengeResponse(); - boolean that_present_challengeResponse = true && that.isSetChallengeResponse(); - if (this_present_challengeResponse || that_present_challengeResponse) { - if (!(this_present_challengeResponse && that_present_challengeResponse)) + boolean this_present_imageDescription = true && this.isSetImageDescription(); + boolean that_present_imageDescription = true && that.isSetImageDescription(); + if (this_present_imageDescription || that_present_imageDescription) { + if (!(this_present_imageDescription && that_present_imageDescription)) return false; - if (!this.challengeResponse.equals(that.challengeResponse)) + if (!this.imageDescription.equals(that.imageDescription)) + return false; + } + + boolean this_present_crcSums = true && this.isSetCrcSums(); + boolean that_present_crcSums = true && that.isSetCrcSums(); + if (this_present_crcSums || that_present_crcSums) { + if (!(this_present_crcSums && that_present_crcSums)) + return false; + if (!this.crcSums.equals(that.crcSums)) return false; } @@ -7972,30 +9823,40 @@ public class ImageServer { return 0; } - public int compareTo(serverAuthenticate_args other) { + @Override + public int compareTo(submitImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - serverAuthenticate_args typedOther = (serverAuthenticate_args)other; - lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(typedOther.isSetOrganizationId()); + lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetOrganizationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organizationId, typedOther.organizationId); + if (isSetServerSessionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetChallengeResponse()).compareTo(typedOther.isSetChallengeResponse()); + lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(other.isSetImageDescription()); if (lastComparison != 0) { return lastComparison; } - if (isSetChallengeResponse()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.challengeResponse, typedOther.challengeResponse); + if (isSetImageDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageDescription, other.imageDescription); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCrcSums()).compareTo(other.isSetCrcSums()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCrcSums()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.crcSums, other.crcSums); if (lastComparison != 0) { return lastComparison; } @@ -8017,22 +9878,30 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("serverAuthenticate_args("); + StringBuilder sb = new StringBuilder("submitImage_args("); boolean first = true; - sb.append("organizationId:"); - if (this.organizationId == null) { + sb.append("serverSessionId:"); + if (this.serverSessionId == null) { sb.append("null"); } else { - sb.append(this.organizationId); + sb.append(this.serverSessionId); } first = false; if (!first) sb.append(", "); - sb.append("challengeResponse:"); - if (this.challengeResponse == null) { + sb.append("imageDescription:"); + if (this.imageDescription == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.challengeResponse, sb); + sb.append(this.imageDescription); + } + first = false; + if (!first) sb.append(", "); + sb.append("crcSums:"); + if (this.crcSums == null) { + sb.append("null"); + } else { + sb.append(this.crcSums); } first = false; sb.append(")"); @@ -8042,6 +9911,9 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (imageDescription != null) { + imageDescription.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -8060,15 +9932,15 @@ public class ImageServer { } } - private static class serverAuthenticate_argsStandardSchemeFactory implements SchemeFactory { - public serverAuthenticate_argsStandardScheme getScheme() { - return new serverAuthenticate_argsStandardScheme(); + private static class submitImage_argsStandardSchemeFactory implements SchemeFactory { + public submitImage_argsStandardScheme getScheme() { + return new submitImage_argsStandardScheme(); } } - private static class serverAuthenticate_argsStandardScheme extends StandardScheme { + private static class submitImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8078,18 +9950,37 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // ORGANIZATION_ID + case 1: // SERVER_SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.organizationId = iprot.readString(); - struct.setOrganizationIdIsSet(true); + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // CHALLENGE_RESPONSE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.challengeResponse = iprot.readBinary(); - struct.setChallengeResponseIsSet(true); + case 2: // IMAGE_DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imageDescription = new ImageData(); + struct.imageDescription.read(iprot); + struct.setImageDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CRC_SUMS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.crcSums = new ArrayList(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) + { + int _elem34; + _elem34 = iprot.readI32(); + struct.crcSums.add(_elem34); + } + iprot.readListEnd(); + } + struct.setCrcSumsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8105,18 +9996,30 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.organizationId != null) { - oprot.writeFieldBegin(ORGANIZATION_ID_FIELD_DESC); - oprot.writeString(struct.organizationId); + if (struct.serverSessionId != null) { + oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); + oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } - if (struct.challengeResponse != null) { - oprot.writeFieldBegin(CHALLENGE_RESPONSE_FIELD_DESC); - oprot.writeBinary(struct.challengeResponse); + if (struct.imageDescription != null) { + oprot.writeFieldBegin(IMAGE_DESCRIPTION_FIELD_DESC); + struct.imageDescription.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.crcSums != null) { + oprot.writeFieldBegin(CRC_SUMS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.crcSums.size())); + for (int _iter35 : struct.crcSums) + { + oprot.writeI32(_iter35); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8125,69 +10028,101 @@ public class ImageServer { } - private static class serverAuthenticate_argsTupleSchemeFactory implements SchemeFactory { - public serverAuthenticate_argsTupleScheme getScheme() { - return new serverAuthenticate_argsTupleScheme(); + private static class submitImage_argsTupleSchemeFactory implements SchemeFactory { + public submitImage_argsTupleScheme getScheme() { + return new submitImage_argsTupleScheme(); } } - private static class serverAuthenticate_argsTupleScheme extends TupleScheme { + private static class submitImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetOrganizationId()) { + if (struct.isSetServerSessionId()) { optionals.set(0); } - if (struct.isSetChallengeResponse()) { + if (struct.isSetImageDescription()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetOrganizationId()) { - oprot.writeString(struct.organizationId); + if (struct.isSetCrcSums()) { + optionals.set(2); } - if (struct.isSetChallengeResponse()) { - oprot.writeBinary(struct.challengeResponse); + oprot.writeBitSet(optionals, 3); + if (struct.isSetServerSessionId()) { + oprot.writeString(struct.serverSessionId); + } + if (struct.isSetImageDescription()) { + struct.imageDescription.write(oprot); + } + if (struct.isSetCrcSums()) { + { + oprot.writeI32(struct.crcSums.size()); + for (int _iter36 : struct.crcSums) + { + oprot.writeI32(_iter36); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.organizationId = iprot.readString(); - struct.setOrganizationIdIsSet(true); + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); } if (incoming.get(1)) { - struct.challengeResponse = iprot.readBinary(); - struct.setChallengeResponseIsSet(true); + struct.imageDescription = new ImageData(); + struct.imageDescription.read(iprot); + struct.setImageDescriptionIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.crcSums = new ArrayList(_list37.size); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) + { + int _elem39; + _elem39 = iprot.readI32(); + struct.crcSums.add(_elem39); + } + } + struct.setCrcSumsIsSet(true); } } } } - public static class serverAuthenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_result"); + public static class submitImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField FAILURE3_FIELD_DESC = new org.apache.thrift.protocol.TField("failure3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new serverAuthenticate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new serverAuthenticate_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new submitImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory()); } - public ServerSessionData success; // required - public AuthenticationException failure; // required + public UploadData success; // required + public AuthorizationException failure; // required + public ImageDataException failure2; // required + public UploadException failure3; // 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"), - FAILURE((short)1, "failure"); + FAILURE((short)1, "failure"), + FAILURE2((short)2, "failure2"), + FAILURE3((short)3, "failure3"); private static final Map byName = new HashMap(); @@ -8206,6 +10141,10 @@ public class ImageServer { return SUCCESS; case 1: // FAILURE return FAILURE; + case 2: // FAILURE2 + return FAILURE2; + case 3: // FAILURE3 + return FAILURE3; default: return null; } @@ -8250,52 +10189,68 @@ public class ImageServer { 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ServerSessionData.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UploadData.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.FAILURE3, new org.apache.thrift.meta_data.FieldMetaData("failure3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap); } - public serverAuthenticate_result() { + public submitImage_result() { } - public serverAuthenticate_result( - ServerSessionData success, - AuthenticationException failure) + public submitImage_result( + UploadData success, + AuthorizationException failure, + ImageDataException failure2, + UploadException failure3) { this(); this.success = success; this.failure = failure; + this.failure2 = failure2; + this.failure3 = failure3; } /** * Performs a deep copy on other. */ - public serverAuthenticate_result(serverAuthenticate_result other) { + public submitImage_result(submitImage_result other) { if (other.isSetSuccess()) { - this.success = new ServerSessionData(other.success); + this.success = new UploadData(other.success); } if (other.isSetFailure()) { - this.failure = new AuthenticationException(other.failure); + this.failure = new AuthorizationException(other.failure); + } + if (other.isSetFailure2()) { + this.failure2 = new ImageDataException(other.failure2); + } + if (other.isSetFailure3()) { + this.failure3 = new UploadException(other.failure3); } } - public serverAuthenticate_result deepCopy() { - return new serverAuthenticate_result(this); + public submitImage_result deepCopy() { + return new submitImage_result(this); } @Override public void clear() { this.success = null; this.failure = null; + this.failure2 = null; + this.failure3 = null; } - public ServerSessionData getSuccess() { + public UploadData getSuccess() { return this.success; } - public serverAuthenticate_result setSuccess(ServerSessionData success) { + public submitImage_result setSuccess(UploadData success) { this.success = success; return this; } @@ -8315,11 +10270,11 @@ public class ImageServer { } } - public AuthenticationException getFailure() { + public AuthorizationException getFailure() { return this.failure; } - public serverAuthenticate_result setFailure(AuthenticationException failure) { + public submitImage_result setFailure(AuthorizationException failure) { this.failure = failure; return this; } @@ -8339,13 +10294,61 @@ public class ImageServer { } } + public ImageDataException getFailure2() { + return this.failure2; + } + + public submitImage_result setFailure2(ImageDataException failure2) { + this.failure2 = failure2; + return this; + } + + public void unsetFailure2() { + this.failure2 = null; + } + + /** Returns true if field failure2 is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure2() { + return this.failure2 != null; + } + + public void setFailure2IsSet(boolean value) { + if (!value) { + this.failure2 = null; + } + } + + public UploadException getFailure3() { + return this.failure3; + } + + public submitImage_result setFailure3(UploadException failure3) { + this.failure3 = failure3; + return this; + } + + public void unsetFailure3() { + this.failure3 = null; + } + + /** Returns true if field failure3 is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure3() { + return this.failure3 != null; + } + + public void setFailure3IsSet(boolean value) { + if (!value) { + this.failure3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((ServerSessionData)value); + setSuccess((UploadData)value); } break; @@ -8353,7 +10356,23 @@ public class ImageServer { if (value == null) { unsetFailure(); } else { - setFailure((AuthenticationException)value); + setFailure((AuthorizationException)value); + } + break; + + case FAILURE2: + if (value == null) { + unsetFailure2(); + } else { + setFailure2((ImageDataException)value); + } + break; + + case FAILURE3: + if (value == null) { + unsetFailure3(); + } else { + setFailure3((UploadException)value); } break; @@ -8368,6 +10387,12 @@ public class ImageServer { case FAILURE: return getFailure(); + case FAILURE2: + return getFailure2(); + + case FAILURE3: + return getFailure3(); + } throw new IllegalStateException(); } @@ -8383,6 +10408,10 @@ public class ImageServer { return isSetSuccess(); case FAILURE: return isSetFailure(); + case FAILURE2: + return isSetFailure2(); + case FAILURE3: + return isSetFailure3(); } throw new IllegalStateException(); } @@ -8391,12 +10420,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof serverAuthenticate_result) - return this.equals((serverAuthenticate_result)that); + if (that instanceof submitImage_result) + return this.equals((submitImage_result)that); return false; } - public boolean equals(serverAuthenticate_result that) { + public boolean equals(submitImage_result that) { if (that == null) return false; @@ -8418,6 +10447,24 @@ public class ImageServer { return false; } + boolean this_present_failure2 = true && this.isSetFailure2(); + boolean that_present_failure2 = true && that.isSetFailure2(); + if (this_present_failure2 || that_present_failure2) { + if (!(this_present_failure2 && that_present_failure2)) + return false; + if (!this.failure2.equals(that.failure2)) + return false; + } + + boolean this_present_failure3 = true && this.isSetFailure3(); + boolean that_present_failure3 = true && that.isSetFailure3(); + if (this_present_failure3 || that_present_failure3) { + if (!(this_present_failure3 && that_present_failure3)) + return false; + if (!this.failure3.equals(that.failure3)) + return false; + } + return true; } @@ -8426,30 +10473,50 @@ public class ImageServer { return 0; } - public int compareTo(serverAuthenticate_result other) { + @Override + public int compareTo(submitImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - serverAuthenticate_result typedOther = (serverAuthenticate_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure2, other.failure2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(other.isSetFailure3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure3, other.failure3); if (lastComparison != 0) { return lastComparison; } @@ -8471,7 +10538,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("serverAuthenticate_result("); + StringBuilder sb = new StringBuilder("submitImage_result("); boolean first = true; sb.append("success:"); @@ -8489,6 +10556,22 @@ public class ImageServer { sb.append(this.failure); } first = false; + if (!first) sb.append(", "); + sb.append("failure2:"); + if (this.failure2 == null) { + sb.append("null"); + } else { + sb.append(this.failure2); + } + first = false; + if (!first) sb.append(", "); + sb.append("failure3:"); + if (this.failure3 == null) { + sb.append("null"); + } else { + sb.append(this.failure3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -8517,15 +10600,15 @@ public class ImageServer { } } - private static class serverAuthenticate_resultStandardSchemeFactory implements SchemeFactory { - public serverAuthenticate_resultStandardScheme getScheme() { - return new serverAuthenticate_resultStandardScheme(); + private static class submitImage_resultStandardSchemeFactory implements SchemeFactory { + public submitImage_resultStandardScheme getScheme() { + return new submitImage_resultStandardScheme(); } } - private static class serverAuthenticate_resultStandardScheme extends StandardScheme { + private static class submitImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8537,7 +10620,7 @@ public class ImageServer { switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ServerSessionData(); + struct.success = new UploadData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -8546,13 +10629,31 @@ public class ImageServer { break; case 1: // FAILURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new AuthenticationException(); + struct.failure = new AuthorizationException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // FAILURE2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure2 = new ImageDataException(); + struct.failure2.read(iprot); + struct.setFailure2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FAILURE3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure3 = new UploadException(); + struct.failure3.read(iprot); + struct.setFailure3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8564,7 +10665,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8578,22 +10679,32 @@ public class ImageServer { struct.failure.write(oprot); oprot.writeFieldEnd(); } + if (struct.failure2 != null) { + oprot.writeFieldBegin(FAILURE2_FIELD_DESC); + struct.failure2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.failure3 != null) { + oprot.writeFieldBegin(FAILURE3_FIELD_DESC); + struct.failure3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class serverAuthenticate_resultTupleSchemeFactory implements SchemeFactory { - public serverAuthenticate_resultTupleScheme getScheme() { - return new serverAuthenticate_resultTupleScheme(); + private static class submitImage_resultTupleSchemeFactory implements SchemeFactory { + public submitImage_resultTupleScheme getScheme() { + return new submitImage_resultTupleScheme(); } } - private static class serverAuthenticate_resultTupleScheme extends TupleScheme { + private static class submitImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -8602,56 +10713,75 @@ public class ImageServer { if (struct.isSetFailure()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetFailure2()) { + optionals.set(2); + } + if (struct.isSetFailure3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); } + if (struct.isSetFailure2()) { + struct.failure2.write(oprot); + } + if (struct.isSetFailure3()) { + struct.failure3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new ServerSessionData(); + struct.success = new UploadData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.failure = new AuthenticationException(); + struct.failure = new AuthorizationException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } + if (incoming.get(2)) { + struct.failure2 = new ImageDataException(); + struct.failure2.read(iprot); + struct.setFailure2IsSet(true); + } + if (incoming.get(3)) { + struct.failure3 = new UploadException(); + struct.failure3.read(iprot); + struct.setFailure3IsSet(true); + } } } } - public static class submitImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_args"); + public static class getImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageDescription", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField CRC_SUMS_FIELD_DESC = new org.apache.thrift.protocol.TField("crcSums", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new submitImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImage_argsTupleSchemeFactory()); } public String serverSessionId; // required - public ImageData imageDescription; // required - public List crcSums; // required + public String uuid; // 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 { - SERVER_SESSION_ID((short)1, "serverSessionId"), - IMAGE_DESCRIPTION((short)2, "imageDescription"), - CRC_SUMS((short)3, "crcSums"); + SERVER_SESSION_ID((short)2, "serverSessionId"), + UUID((short)1, "uuid"); private static final Map byName = new HashMap(); @@ -8666,12 +10796,10 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SERVER_SESSION_ID + case 2: // SERVER_SESSION_ID return SERVER_SESSION_ID; - case 2: // IMAGE_DESCRIPTION - return IMAGE_DESCRIPTION; - case 3: // CRC_SUMS - return CRC_SUMS; + case 1: // UUID + return UUID; default: return null; } @@ -8717,143 +10845,91 @@ public class ImageServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.IMAGE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageData.class))); - tmpMap.put(_Fields.CRC_SUMS, new org.apache.thrift.meta_data.FieldMetaData("crcSums", 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.I32)))); + tmpMap.put(_Fields.UUID, new org.apache.thrift.meta_data.FieldMetaData("uuid", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_args.class, metaDataMap); } - public submitImage_args() { + public getImage_args() { } - public submitImage_args( + public getImage_args( String serverSessionId, - ImageData imageDescription, - List crcSums) + String uuid) { this(); this.serverSessionId = serverSessionId; - this.imageDescription = imageDescription; - this.crcSums = crcSums; + this.uuid = uuid; } /** * Performs a deep copy on other. */ - public submitImage_args(submitImage_args other) { + public getImage_args(getImage_args other) { if (other.isSetServerSessionId()) { this.serverSessionId = other.serverSessionId; } - if (other.isSetImageDescription()) { - this.imageDescription = new ImageData(other.imageDescription); - } - if (other.isSetCrcSums()) { - List __this__crcSums = new ArrayList(); - for (Integer other_element : other.crcSums) { - __this__crcSums.add(other_element); - } - this.crcSums = __this__crcSums; - } - } - - public submitImage_args deepCopy() { - return new submitImage_args(this); - } - - @Override - public void clear() { - this.serverSessionId = null; - this.imageDescription = null; - this.crcSums = null; - } - - public String getServerSessionId() { - return this.serverSessionId; - } - - public submitImage_args setServerSessionId(String serverSessionId) { - this.serverSessionId = serverSessionId; - return this; - } - - public void unsetServerSessionId() { - this.serverSessionId = null; - } - - /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetServerSessionId() { - return this.serverSessionId != null; - } - - public void setServerSessionIdIsSet(boolean value) { - if (!value) { - this.serverSessionId = null; + if (other.isSetUuid()) { + this.uuid = other.uuid; } } - public ImageData getImageDescription() { - return this.imageDescription; - } - - public submitImage_args setImageDescription(ImageData imageDescription) { - this.imageDescription = imageDescription; - return this; + public getImage_args deepCopy() { + return new getImage_args(this); } - public void unsetImageDescription() { - this.imageDescription = null; + @Override + public void clear() { + this.serverSessionId = null; + this.uuid = null; } - /** Returns true if field imageDescription is set (has been assigned a value) and false otherwise */ - public boolean isSetImageDescription() { - return this.imageDescription != null; + public String getServerSessionId() { + return this.serverSessionId; } - public void setImageDescriptionIsSet(boolean value) { - if (!value) { - this.imageDescription = null; - } + public getImage_args setServerSessionId(String serverSessionId) { + this.serverSessionId = serverSessionId; + return this; } - public int getCrcSumsSize() { - return (this.crcSums == null) ? 0 : this.crcSums.size(); + public void unsetServerSessionId() { + this.serverSessionId = null; } - public java.util.Iterator getCrcSumsIterator() { - return (this.crcSums == null) ? null : this.crcSums.iterator(); + /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetServerSessionId() { + return this.serverSessionId != null; } - public void addToCrcSums(int elem) { - if (this.crcSums == null) { - this.crcSums = new ArrayList(); + public void setServerSessionIdIsSet(boolean value) { + if (!value) { + this.serverSessionId = null; } - this.crcSums.add(elem); } - public List getCrcSums() { - return this.crcSums; + public String getUuid() { + return this.uuid; } - public submitImage_args setCrcSums(List crcSums) { - this.crcSums = crcSums; + public getImage_args setUuid(String uuid) { + this.uuid = uuid; return this; } - public void unsetCrcSums() { - this.crcSums = null; + public void unsetUuid() { + this.uuid = null; } - /** Returns true if field crcSums is set (has been assigned a value) and false otherwise */ - public boolean isSetCrcSums() { - return this.crcSums != null; + /** Returns true if field uuid is set (has been assigned a value) and false otherwise */ + public boolean isSetUuid() { + return this.uuid != null; } - public void setCrcSumsIsSet(boolean value) { + public void setUuidIsSet(boolean value) { if (!value) { - this.crcSums = null; + this.uuid = null; } } @@ -8867,19 +10943,11 @@ public class ImageServer { } break; - case IMAGE_DESCRIPTION: - if (value == null) { - unsetImageDescription(); - } else { - setImageDescription((ImageData)value); - } - break; - - case CRC_SUMS: + case UUID: if (value == null) { - unsetCrcSums(); + unsetUuid(); } else { - setCrcSums((List)value); + setUuid((String)value); } break; @@ -8891,11 +10959,8 @@ public class ImageServer { case SERVER_SESSION_ID: return getServerSessionId(); - case IMAGE_DESCRIPTION: - return getImageDescription(); - - case CRC_SUMS: - return getCrcSums(); + case UUID: + return getUuid(); } throw new IllegalStateException(); @@ -8910,10 +10975,8 @@ public class ImageServer { switch (field) { case SERVER_SESSION_ID: return isSetServerSessionId(); - case IMAGE_DESCRIPTION: - return isSetImageDescription(); - case CRC_SUMS: - return isSetCrcSums(); + case UUID: + return isSetUuid(); } throw new IllegalStateException(); } @@ -8922,12 +10985,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof submitImage_args) - return this.equals((submitImage_args)that); + if (that instanceof getImage_args) + return this.equals((getImage_args)that); return false; } - public boolean equals(submitImage_args that) { + public boolean equals(getImage_args that) { if (that == null) return false; @@ -8940,21 +11003,12 @@ public class ImageServer { return false; } - boolean this_present_imageDescription = true && this.isSetImageDescription(); - boolean that_present_imageDescription = true && that.isSetImageDescription(); - if (this_present_imageDescription || that_present_imageDescription) { - if (!(this_present_imageDescription && that_present_imageDescription)) - return false; - if (!this.imageDescription.equals(that.imageDescription)) - return false; - } - - boolean this_present_crcSums = true && this.isSetCrcSums(); - boolean that_present_crcSums = true && that.isSetCrcSums(); - if (this_present_crcSums || that_present_crcSums) { - if (!(this_present_crcSums && that_present_crcSums)) + boolean this_present_uuid = true && this.isSetUuid(); + boolean that_present_uuid = true && that.isSetUuid(); + if (this_present_uuid || that_present_uuid) { + if (!(this_present_uuid && that_present_uuid)) return false; - if (!this.crcSums.equals(that.crcSums)) + if (!this.uuid.equals(that.uuid)) return false; } @@ -8966,40 +11020,30 @@ public class ImageServer { return 0; } - public int compareTo(submitImage_args other) { + @Override + public int compareTo(getImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - submitImage_args typedOther = (submitImage_args)other; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(typedOther.isSetServerSessionId()); + lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetServerSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, typedOther.serverSessionId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(typedOther.isSetImageDescription()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageDescription, typedOther.imageDescription); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCrcSums()).compareTo(typedOther.isSetCrcSums()); + lastComparison = Boolean.valueOf(isSetUuid()).compareTo(other.isSetUuid()); if (lastComparison != 0) { return lastComparison; } - if (isSetCrcSums()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.crcSums, typedOther.crcSums); + if (isSetUuid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, other.uuid); if (lastComparison != 0) { return lastComparison; } @@ -9021,7 +11065,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("submitImage_args("); + StringBuilder sb = new StringBuilder("getImage_args("); boolean first = true; sb.append("serverSessionId:"); @@ -9032,19 +11076,11 @@ public class ImageServer { } first = false; if (!first) sb.append(", "); - sb.append("imageDescription:"); - if (this.imageDescription == null) { - sb.append("null"); - } else { - sb.append(this.imageDescription); - } - first = false; - if (!first) sb.append(", "); - sb.append("crcSums:"); - if (this.crcSums == null) { + sb.append("uuid:"); + if (this.uuid == null) { sb.append("null"); } else { - sb.append(this.crcSums); + sb.append(this.uuid); } first = false; sb.append(")"); @@ -9054,9 +11090,6 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (imageDescription != null) { - imageDescription.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -9075,15 +11108,15 @@ public class ImageServer { } } - private static class submitImage_argsStandardSchemeFactory implements SchemeFactory { - public submitImage_argsStandardScheme getScheme() { - return new submitImage_argsStandardScheme(); + private static class getImage_argsStandardSchemeFactory implements SchemeFactory { + public getImage_argsStandardScheme getScheme() { + return new getImage_argsStandardScheme(); } } - private static class submitImage_argsStandardScheme extends StandardScheme { + private static class getImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9093,7 +11126,7 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // SERVER_SESSION_ID + case 2: // SERVER_SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -9101,29 +11134,10 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imageDescription = new ImageData(); - struct.imageDescription.read(iprot); - struct.setImageDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CRC_SUMS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.crcSums = new ArrayList(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) - { - int _elem34; // required - _elem34 = iprot.readI32(); - struct.crcSums.add(_elem34); - } - iprot.readListEnd(); - } - struct.setCrcSumsIsSet(true); + case 1: // UUID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.uuid = iprot.readString(); + struct.setUuidIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9139,133 +11153,92 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.uuid != null) { + oprot.writeFieldBegin(UUID_FIELD_DESC); + oprot.writeString(struct.uuid); + oprot.writeFieldEnd(); + } if (struct.serverSessionId != null) { oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } - if (struct.imageDescription != null) { - oprot.writeFieldBegin(IMAGE_DESCRIPTION_FIELD_DESC); - struct.imageDescription.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.crcSums != null) { - oprot.writeFieldBegin(CRC_SUMS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.crcSums.size())); - for (int _iter35 : struct.crcSums) - { - oprot.writeI32(_iter35); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class submitImage_argsTupleSchemeFactory implements SchemeFactory { - public submitImage_argsTupleScheme getScheme() { - return new submitImage_argsTupleScheme(); + private static class getImage_argsTupleSchemeFactory implements SchemeFactory { + public getImage_argsTupleScheme getScheme() { + return new getImage_argsTupleScheme(); } } - private static class submitImage_argsTupleScheme extends TupleScheme { + private static class getImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } - if (struct.isSetImageDescription()) { + if (struct.isSetUuid()) { optionals.set(1); } - if (struct.isSetCrcSums()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetServerSessionId()) { oprot.writeString(struct.serverSessionId); } - if (struct.isSetImageDescription()) { - struct.imageDescription.write(oprot); - } - if (struct.isSetCrcSums()) { - { - oprot.writeI32(struct.crcSums.size()); - for (int _iter36 : struct.crcSums) - { - oprot.writeI32(_iter36); - } - } - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); - } - if (incoming.get(1)) { - struct.imageDescription = new ImageData(); - struct.imageDescription.read(iprot); - struct.setImageDescriptionIsSet(true); + if (struct.isSetUuid()) { + oprot.writeString(struct.uuid); } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.crcSums = new ArrayList(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) - { - int _elem39; // required - _elem39 = iprot.readI32(); - struct.crcSums.add(_elem39); - } - } - struct.setCrcSumsIsSet(true); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); + } + if (incoming.get(1)) { + struct.uuid = iprot.readString(); + struct.setUuidIsSet(true); } } } } - public static class submitImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_result"); + public static class getImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField FAILURE3_FIELD_DESC = new org.apache.thrift.protocol.TField("failure3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new submitImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImage_resultTupleSchemeFactory()); } - public UploadData success; // required + public DownloadData success; // required public AuthorizationException failure; // required public ImageDataException failure2; // required - public UploadException failure3; // 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"), FAILURE((short)1, "failure"), - FAILURE2((short)2, "failure2"), - FAILURE3((short)3, "failure3"); + FAILURE2((short)2, "failure2"); private static final Map byName = new HashMap(); @@ -9286,8 +11259,6 @@ public class ImageServer { return FAILURE; case 2: // FAILURE2 return FAILURE2; - case 3: // FAILURE3 - return FAILURE3; default: return null; } @@ -9332,39 +11303,35 @@ public class ImageServer { 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UploadData.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DownloadData.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.FAILURE3, new org.apache.thrift.meta_data.FieldMetaData("failure3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_result.class, metaDataMap); } - public submitImage_result() { + public getImage_result() { } - public submitImage_result( - UploadData success, + public getImage_result( + DownloadData success, AuthorizationException failure, - ImageDataException failure2, - UploadException failure3) + ImageDataException failure2) { this(); this.success = success; this.failure = failure; this.failure2 = failure2; - this.failure3 = failure3; } /** * Performs a deep copy on other. */ - public submitImage_result(submitImage_result other) { + public getImage_result(getImage_result other) { if (other.isSetSuccess()) { - this.success = new UploadData(other.success); + this.success = new DownloadData(other.success); } if (other.isSetFailure()) { this.failure = new AuthorizationException(other.failure); @@ -9372,13 +11339,10 @@ public class ImageServer { if (other.isSetFailure2()) { this.failure2 = new ImageDataException(other.failure2); } - if (other.isSetFailure3()) { - this.failure3 = new UploadException(other.failure3); - } } - public submitImage_result deepCopy() { - return new submitImage_result(this); + public getImage_result deepCopy() { + return new getImage_result(this); } @Override @@ -9386,14 +11350,13 @@ public class ImageServer { this.success = null; this.failure = null; this.failure2 = null; - this.failure3 = null; } - public UploadData getSuccess() { + public DownloadData getSuccess() { return this.success; } - public submitImage_result setSuccess(UploadData success) { + public getImage_result setSuccess(DownloadData success) { this.success = success; return this; } @@ -9417,7 +11380,7 @@ public class ImageServer { return this.failure; } - public submitImage_result setFailure(AuthorizationException failure) { + public getImage_result setFailure(AuthorizationException failure) { this.failure = failure; return this; } @@ -9441,7 +11404,7 @@ public class ImageServer { return this.failure2; } - public submitImage_result setFailure2(ImageDataException failure2) { + public getImage_result setFailure2(ImageDataException failure2) { this.failure2 = failure2; return this; } @@ -9461,37 +11424,13 @@ public class ImageServer { } } - public UploadException getFailure3() { - return this.failure3; - } - - public submitImage_result setFailure3(UploadException failure3) { - this.failure3 = failure3; - return this; - } - - public void unsetFailure3() { - this.failure3 = null; - } - - /** Returns true if field failure3 is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure3() { - return this.failure3 != null; - } - - public void setFailure3IsSet(boolean value) { - if (!value) { - this.failure3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((UploadData)value); + setSuccess((DownloadData)value); } break; @@ -9511,14 +11450,6 @@ public class ImageServer { } break; - case FAILURE3: - if (value == null) { - unsetFailure3(); - } else { - setFailure3((UploadException)value); - } - break; - } } @@ -9533,9 +11464,6 @@ public class ImageServer { case FAILURE2: return getFailure2(); - case FAILURE3: - return getFailure3(); - } throw new IllegalStateException(); } @@ -9553,8 +11481,6 @@ public class ImageServer { return isSetFailure(); case FAILURE2: return isSetFailure2(); - case FAILURE3: - return isSetFailure3(); } throw new IllegalStateException(); } @@ -9563,12 +11489,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof submitImage_result) - return this.equals((submitImage_result)that); + if (that instanceof getImage_result) + return this.equals((getImage_result)that); return false; } - public boolean equals(submitImage_result that) { + public boolean equals(getImage_result that) { if (that == null) return false; @@ -9599,15 +11525,6 @@ public class ImageServer { return false; } - boolean this_present_failure3 = true && this.isSetFailure3(); - boolean that_present_failure3 = true && that.isSetFailure3(); - if (this_present_failure3 || that_present_failure3) { - if (!(this_present_failure3 && that_present_failure3)) - return false; - if (!this.failure3.equals(that.failure3)) - return false; - } - return true; } @@ -9616,50 +11533,40 @@ public class ImageServer { return 0; } - public int compareTo(submitImage_result other) { + @Override + public int compareTo(getImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - submitImage_result typedOther = (submitImage_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(typedOther.isSetFailure2()); + lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); if (lastComparison != 0) { return lastComparison; } if (isSetFailure2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure2, typedOther.failure2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(typedOther.isSetFailure3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure3, typedOther.failure3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure2, other.failure2); if (lastComparison != 0) { return lastComparison; } @@ -9681,7 +11588,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("submitImage_result("); + StringBuilder sb = new StringBuilder("getImage_result("); boolean first = true; sb.append("success:"); @@ -9707,14 +11614,6 @@ public class ImageServer { sb.append(this.failure2); } first = false; - if (!first) sb.append(", "); - sb.append("failure3:"); - if (this.failure3 == null) { - sb.append("null"); - } else { - sb.append(this.failure3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -9743,15 +11642,15 @@ public class ImageServer { } } - private static class submitImage_resultStandardSchemeFactory implements SchemeFactory { - public submitImage_resultStandardScheme getScheme() { - return new submitImage_resultStandardScheme(); + private static class getImage_resultStandardSchemeFactory implements SchemeFactory { + public getImage_resultStandardScheme getScheme() { + return new getImage_resultStandardScheme(); } } - private static class submitImage_resultStandardScheme extends StandardScheme { + private static class getImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9763,7 +11662,7 @@ public class ImageServer { switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new UploadData(); + struct.success = new DownloadData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -9788,15 +11687,6 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FAILURE3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure3 = new UploadException(); - struct.failure3.read(iprot); - struct.setFailure3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9808,7 +11698,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9827,27 +11717,22 @@ public class ImageServer { struct.failure2.write(oprot); oprot.writeFieldEnd(); } - if (struct.failure3 != null) { - oprot.writeFieldBegin(FAILURE3_FIELD_DESC); - struct.failure3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class submitImage_resultTupleSchemeFactory implements SchemeFactory { - public submitImage_resultTupleScheme getScheme() { - return new submitImage_resultTupleScheme(); + private static class getImage_resultTupleSchemeFactory implements SchemeFactory { + public getImage_resultTupleScheme getScheme() { + return new getImage_resultTupleScheme(); } } - private static class submitImage_resultTupleScheme extends TupleScheme { + private static class getImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -9859,10 +11744,7 @@ public class ImageServer { if (struct.isSetFailure2()) { optionals.set(2); } - if (struct.isSetFailure3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -9872,17 +11754,14 @@ public class ImageServer { if (struct.isSetFailure2()) { struct.failure2.write(oprot); } - if (struct.isSetFailure3()) { - struct.failure3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new UploadData(); + struct.success = new DownloadData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -9896,35 +11775,30 @@ public class ImageServer { struct.failure2.read(iprot); struct.setFailure2IsSet(true); } - if (incoming.get(3)) { - struct.failure3 = new UploadException(); - struct.failure3.read(iprot); - struct.setFailure3IsSet(true); - } } } } - public static class getImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_args"); + public static class publishUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishUser_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new publishUser_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new publishUser_argsTupleSchemeFactory()); } public String serverSessionId; // required - public String uuid; // required + public UserInfo user; // 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 { - SERVER_SESSION_ID((short)2, "serverSessionId"), - UUID((short)1, "uuid"); + SERVER_SESSION_ID((short)1, "serverSessionId"), + USER((short)2, "user"); private static final Map byName = new HashMap(); @@ -9939,10 +11813,10 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 2: // SERVER_SESSION_ID + case 1: // SERVER_SESSION_ID return SERVER_SESSION_ID; - case 1: // UUID - return UUID; + case 2: // USER + return USER; default: return null; } @@ -9988,51 +11862,51 @@ public class ImageServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.UUID, new org.apache.thrift.meta_data.FieldMetaData("uuid", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publishUser_args.class, metaDataMap); } - public getImage_args() { + public publishUser_args() { } - public getImage_args( + public publishUser_args( String serverSessionId, - String uuid) + UserInfo user) { this(); this.serverSessionId = serverSessionId; - this.uuid = uuid; + this.user = user; } /** * Performs a deep copy on other. */ - public getImage_args(getImage_args other) { + public publishUser_args(publishUser_args other) { if (other.isSetServerSessionId()) { this.serverSessionId = other.serverSessionId; } - if (other.isSetUuid()) { - this.uuid = other.uuid; + if (other.isSetUser()) { + this.user = new UserInfo(other.user); } } - public getImage_args deepCopy() { - return new getImage_args(this); + public publishUser_args deepCopy() { + return new publishUser_args(this); } @Override public void clear() { this.serverSessionId = null; - this.uuid = null; + this.user = null; } public String getServerSessionId() { return this.serverSessionId; } - public getImage_args setServerSessionId(String serverSessionId) { + public publishUser_args setServerSessionId(String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -10052,27 +11926,27 @@ public class ImageServer { } } - public String getUuid() { - return this.uuid; + public UserInfo getUser() { + return this.user; } - public getImage_args setUuid(String uuid) { - this.uuid = uuid; + public publishUser_args setUser(UserInfo user) { + this.user = user; return this; } - public void unsetUuid() { - this.uuid = null; + public void unsetUser() { + this.user = null; } - /** Returns true if field uuid is set (has been assigned a value) and false otherwise */ - public boolean isSetUuid() { - return this.uuid != null; + /** Returns true if field user is set (has been assigned a value) and false otherwise */ + public boolean isSetUser() { + return this.user != null; } - public void setUuidIsSet(boolean value) { + public void setUserIsSet(boolean value) { if (!value) { - this.uuid = null; + this.user = null; } } @@ -10086,11 +11960,11 @@ public class ImageServer { } break; - case UUID: + case USER: if (value == null) { - unsetUuid(); + unsetUser(); } else { - setUuid((String)value); + setUser((UserInfo)value); } break; @@ -10102,8 +11976,8 @@ public class ImageServer { case SERVER_SESSION_ID: return getServerSessionId(); - case UUID: - return getUuid(); + case USER: + return getUser(); } throw new IllegalStateException(); @@ -10118,8 +11992,8 @@ public class ImageServer { switch (field) { case SERVER_SESSION_ID: return isSetServerSessionId(); - case UUID: - return isSetUuid(); + case USER: + return isSetUser(); } throw new IllegalStateException(); } @@ -10128,12 +12002,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImage_args) - return this.equals((getImage_args)that); + if (that instanceof publishUser_args) + return this.equals((publishUser_args)that); return false; } - public boolean equals(getImage_args that) { + public boolean equals(publishUser_args that) { if (that == null) return false; @@ -10146,12 +12020,12 @@ public class ImageServer { return false; } - boolean this_present_uuid = true && this.isSetUuid(); - boolean that_present_uuid = true && that.isSetUuid(); - if (this_present_uuid || that_present_uuid) { - if (!(this_present_uuid && that_present_uuid)) + boolean this_present_user = true && this.isSetUser(); + boolean that_present_user = true && that.isSetUser(); + if (this_present_user || that_present_user) { + if (!(this_present_user && that_present_user)) return false; - if (!this.uuid.equals(that.uuid)) + if (!this.user.equals(that.user)) return false; } @@ -10163,30 +12037,30 @@ public class ImageServer { return 0; } - public int compareTo(getImage_args other) { + @Override + public int compareTo(publishUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getImage_args typedOther = (getImage_args)other; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(typedOther.isSetServerSessionId()); + lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetServerSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, typedOther.serverSessionId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUuid()).compareTo(typedOther.isSetUuid()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); if (lastComparison != 0) { return lastComparison; } - if (isSetUuid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, typedOther.uuid); + if (isSetUser()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); if (lastComparison != 0) { return lastComparison; } @@ -10208,7 +12082,7 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImage_args("); + StringBuilder sb = new StringBuilder("publishUser_args("); boolean first = true; sb.append("serverSessionId:"); @@ -10219,11 +12093,11 @@ public class ImageServer { } first = false; if (!first) sb.append(", "); - sb.append("uuid:"); - if (this.uuid == null) { + sb.append("user:"); + if (this.user == null) { sb.append("null"); } else { - sb.append(this.uuid); + sb.append(this.user); } first = false; sb.append(")"); @@ -10233,6 +12107,9 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (user != null) { + user.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -10251,15 +12128,15 @@ public class ImageServer { } } - private static class getImage_argsStandardSchemeFactory implements SchemeFactory { - public getImage_argsStandardScheme getScheme() { - return new getImage_argsStandardScheme(); + private static class publishUser_argsStandardSchemeFactory implements SchemeFactory { + public publishUser_argsStandardScheme getScheme() { + return new publishUser_argsStandardScheme(); } } - private static class getImage_argsStandardScheme extends StandardScheme { + private static class publishUser_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, publishUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10269,7 +12146,7 @@ public class ImageServer { break; } switch (schemeField.id) { - case 2: // SERVER_SESSION_ID + case 1: // SERVER_SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -10277,10 +12154,11 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // UUID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.uuid = iprot.readString(); - struct.setUuidIsSet(true); + case 2: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.user = new UserInfo(); + struct.user.read(iprot); + struct.setUserIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10296,55 +12174,55 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, publishUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.uuid != null) { - oprot.writeFieldBegin(UUID_FIELD_DESC); - oprot.writeString(struct.uuid); - oprot.writeFieldEnd(); - } if (struct.serverSessionId != null) { oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } + if (struct.user != null) { + oprot.writeFieldBegin(USER_FIELD_DESC); + struct.user.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImage_argsTupleSchemeFactory implements SchemeFactory { - public getImage_argsTupleScheme getScheme() { - return new getImage_argsTupleScheme(); + private static class publishUser_argsTupleSchemeFactory implements SchemeFactory { + public publishUser_argsTupleScheme getScheme() { + return new publishUser_argsTupleScheme(); } } - private static class getImage_argsTupleScheme extends TupleScheme { + private static class publishUser_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, publishUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } - if (struct.isSetUuid()) { + if (struct.isSetUser()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetServerSessionId()) { oprot.writeString(struct.serverSessionId); } - if (struct.isSetUuid()) { - oprot.writeString(struct.uuid); + if (struct.isSetUser()) { + struct.user.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, publishUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -10352,36 +12230,34 @@ public class ImageServer { struct.setServerSessionIdIsSet(true); } if (incoming.get(1)) { - struct.uuid = iprot.readString(); - struct.setUuidIsSet(true); + struct.user = new UserInfo(); + struct.user.read(iprot); + struct.setUserIsSet(true); } } } } - public static class getImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_result"); + public static class publishUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishUser_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new publishUser_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new publishUser_resultTupleSchemeFactory()); } - public DownloadData success; // required + public boolean success; // required public AuthorizationException failure; // required - public ImageDataException failure2; // 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"), - FAILURE((short)1, "failure"), - FAILURE2((short)2, "failure2"); + FAILURE((short)1, "failure"); private static final Map byName = new HashMap(); @@ -10400,8 +12276,6 @@ public class ImageServer { return SUCCESS; case 1: // FAILURE return FAILURE; - case 2: // FAILURE2 - return FAILURE2; default: return null; } @@ -10442,88 +12316,82 @@ public class ImageServer { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DownloadData.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publishUser_result.class, metaDataMap); } - public getImage_result() { + public publishUser_result() { } - public getImage_result( - DownloadData success, - AuthorizationException failure, - ImageDataException failure2) + public publishUser_result( + boolean success, + AuthorizationException failure) { this(); this.success = success; + setSuccessIsSet(true); this.failure = failure; - this.failure2 = failure2; } /** * Performs a deep copy on other. */ - public getImage_result(getImage_result other) { - if (other.isSetSuccess()) { - this.success = new DownloadData(other.success); - } + public publishUser_result(publishUser_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetFailure()) { this.failure = new AuthorizationException(other.failure); } - if (other.isSetFailure2()) { - this.failure2 = new ImageDataException(other.failure2); - } } - public getImage_result deepCopy() { - return new getImage_result(this); + public publishUser_result deepCopy() { + return new publishUser_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.failure = null; - this.failure2 = null; } - public DownloadData getSuccess() { + public boolean isSuccess() { return this.success; } - public getImage_result setSuccess(DownloadData success) { + public publishUser_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public AuthorizationException getFailure() { return this.failure; } - public getImage_result setFailure(AuthorizationException failure) { + public publishUser_result setFailure(AuthorizationException failure) { this.failure = failure; return this; } @@ -10543,37 +12411,13 @@ public class ImageServer { } } - public ImageDataException getFailure2() { - return this.failure2; - } - - public getImage_result setFailure2(ImageDataException failure2) { - this.failure2 = failure2; - return this; - } - - public void unsetFailure2() { - this.failure2 = null; - } - - /** Returns true if field failure2 is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure2() { - return this.failure2 != null; - } - - public void setFailure2IsSet(boolean value) { - if (!value) { - this.failure2 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((DownloadData)value); + setSuccess((Boolean)value); } break; @@ -10585,28 +12429,17 @@ public class ImageServer { } break; - case FAILURE2: - if (value == null) { - unsetFailure2(); - } else { - setFailure2((ImageDataException)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); case FAILURE: return getFailure(); - case FAILURE2: - return getFailure2(); - } throw new IllegalStateException(); } @@ -10622,8 +12455,6 @@ public class ImageServer { return isSetSuccess(); case FAILURE: return isSetFailure(); - case FAILURE2: - return isSetFailure2(); } throw new IllegalStateException(); } @@ -10632,21 +12463,21 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImage_result) - return this.equals((getImage_result)that); + if (that instanceof publishUser_result) + return this.equals((publishUser_result)that); return false; } - public boolean equals(getImage_result that) { + public boolean equals(publishUser_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -10659,15 +12490,6 @@ public class ImageServer { return false; } - boolean this_present_failure2 = true && this.isSetFailure2(); - boolean that_present_failure2 = true && that.isSetFailure2(); - if (this_present_failure2 || that_present_failure2) { - if (!(this_present_failure2 && that_present_failure2)) - return false; - if (!this.failure2.equals(that.failure2)) - return false; - } - return true; } @@ -10676,40 +12498,30 @@ public class ImageServer { return 0; } - public int compareTo(getImage_result other) { + @Override + public int compareTo(publishUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getImage_result typedOther = (getImage_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(typedOther.isSetFailure2()); + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } - if (isSetFailure2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure2, typedOther.failure2); + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); if (lastComparison != 0) { return lastComparison; } @@ -10731,15 +12543,11 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImage_result("); + StringBuilder sb = new StringBuilder("publishUser_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("failure:"); @@ -10749,14 +12557,6 @@ public class ImageServer { sb.append(this.failure); } first = false; - if (!first) sb.append(", "); - sb.append("failure2:"); - if (this.failure2 == null) { - sb.append("null"); - } else { - sb.append(this.failure2); - } - first = false; sb.append(")"); return sb.toString(); } @@ -10764,9 +12564,6 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -10779,21 +12576,23 @@ public class ImageServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getImage_resultStandardSchemeFactory implements SchemeFactory { - public getImage_resultStandardScheme getScheme() { - return new getImage_resultStandardScheme(); + private static class publishUser_resultStandardSchemeFactory implements SchemeFactory { + public publishUser_resultStandardScheme getScheme() { + return new publishUser_resultStandardScheme(); } } - private static class getImage_resultStandardScheme extends StandardScheme { + private static class publishUser_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, publishUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10804,9 +12603,8 @@ public class ImageServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new DownloadData(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -10821,15 +12619,6 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // FAILURE2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure2 = new ImageDataException(); - struct.failure2.read(iprot); - struct.setFailure2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10841,13 +12630,13 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, publishUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -10855,27 +12644,22 @@ public class ImageServer { struct.failure.write(oprot); oprot.writeFieldEnd(); } - if (struct.failure2 != null) { - oprot.writeFieldBegin(FAILURE2_FIELD_DESC); - struct.failure2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImage_resultTupleSchemeFactory implements SchemeFactory { - public getImage_resultTupleScheme getScheme() { - return new getImage_resultTupleScheme(); + private static class publishUser_resultTupleSchemeFactory implements SchemeFactory { + public publishUser_resultTupleScheme getScheme() { + return new publishUser_resultTupleScheme(); } } - private static class getImage_resultTupleScheme extends TupleScheme { + private static class publishUser_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, publishUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -10884,28 +12668,21 @@ public class ImageServer { if (struct.isSetFailure()) { optionals.set(1); } - if (struct.isSetFailure2()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetFailure()) { struct.failure.write(oprot); } - if (struct.isSetFailure2()) { - struct.failure2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, publishUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new DownloadData(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -10913,35 +12690,36 @@ public class ImageServer { struct.failure.read(iprot); struct.setFailureIsSet(true); } - if (incoming.get(2)) { - struct.failure2 = new ImageDataException(); - struct.failure2.read(iprot); - struct.setFailure2IsSet(true); - } } } } - public static class publishUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishUser_args"); + public static class registerSatellite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MODULUS_FIELD_DESC = new org.apache.thrift.protocol.TField("modulus", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField EXPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("exponent", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new publishUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new publishUser_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new registerSatellite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new registerSatellite_argsTupleSchemeFactory()); } - public String serverSessionId; // required - public UserInfo user; // required + public String organizationId; // required + public String address; // required + public String modulus; // required + public String exponent; // 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 { - SERVER_SESSION_ID((short)1, "serverSessionId"), - USER((short)2, "user"); + ORGANIZATION_ID((short)1, "organizationId"), + ADDRESS((short)2, "address"), + MODULUS((short)3, "modulus"), + EXPONENT((short)4, "exponent"); private static final Map byName = new HashMap(); @@ -10956,10 +12734,14 @@ public class ImageServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SERVER_SESSION_ID - return SERVER_SESSION_ID; - case 2: // USER - return USER; + case 1: // ORGANIZATION_ID + return ORGANIZATION_ID; + case 2: // ADDRESS + return ADDRESS; + case 3: // MODULUS + return MODULUS; + case 4: // EXPONENT + return EXPONENT; default: return null; } @@ -11003,111 +12785,191 @@ public class ImageServer { 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.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "ID"))); - tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); + tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MODULUS, new org.apache.thrift.meta_data.FieldMetaData("modulus", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.EXPONENT, new org.apache.thrift.meta_data.FieldMetaData("exponent", 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(publishUser_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_args.class, metaDataMap); } - public publishUser_args() { + public registerSatellite_args() { } - public publishUser_args( - String serverSessionId, - UserInfo user) + public registerSatellite_args( + String organizationId, + String address, + String modulus, + String exponent) { this(); - this.serverSessionId = serverSessionId; - this.user = user; + this.organizationId = organizationId; + this.address = address; + this.modulus = modulus; + this.exponent = exponent; } /** * Performs a deep copy on other. */ - public publishUser_args(publishUser_args other) { - if (other.isSetServerSessionId()) { - this.serverSessionId = other.serverSessionId; + public registerSatellite_args(registerSatellite_args other) { + if (other.isSetOrganizationId()) { + this.organizationId = other.organizationId; } - if (other.isSetUser()) { - this.user = new UserInfo(other.user); + if (other.isSetAddress()) { + this.address = other.address; + } + if (other.isSetModulus()) { + this.modulus = other.modulus; + } + if (other.isSetExponent()) { + this.exponent = other.exponent; } } - public publishUser_args deepCopy() { - return new publishUser_args(this); + public registerSatellite_args deepCopy() { + return new registerSatellite_args(this); } @Override public void clear() { - this.serverSessionId = null; - this.user = null; + this.organizationId = null; + this.address = null; + this.modulus = null; + this.exponent = null; } - public String getServerSessionId() { - return this.serverSessionId; + public String getOrganizationId() { + return this.organizationId; } - public publishUser_args setServerSessionId(String serverSessionId) { - this.serverSessionId = serverSessionId; + public registerSatellite_args setOrganizationId(String organizationId) { + this.organizationId = organizationId; return this; } - public void unsetServerSessionId() { - this.serverSessionId = null; + public void unsetOrganizationId() { + this.organizationId = null; } - /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetServerSessionId() { - return this.serverSessionId != null; + /** Returns true if field organizationId is set (has been assigned a value) and false otherwise */ + public boolean isSetOrganizationId() { + return this.organizationId != null; } - public void setServerSessionIdIsSet(boolean value) { + public void setOrganizationIdIsSet(boolean value) { if (!value) { - this.serverSessionId = null; + this.organizationId = null; } } - public UserInfo getUser() { - return this.user; + public String getAddress() { + return this.address; } - public publishUser_args setUser(UserInfo user) { - this.user = user; + public registerSatellite_args setAddress(String address) { + this.address = address; return this; } - public void unsetUser() { - this.user = null; + public void unsetAddress() { + this.address = null; } - /** Returns true if field user is set (has been assigned a value) and false otherwise */ - public boolean isSetUser() { - return this.user != null; + /** Returns true if field address is set (has been assigned a value) and false otherwise */ + public boolean isSetAddress() { + return this.address != null; } - public void setUserIsSet(boolean value) { + public void setAddressIsSet(boolean value) { if (!value) { - this.user = null; + this.address = null; + } + } + + public String getModulus() { + return this.modulus; + } + + public registerSatellite_args setModulus(String modulus) { + this.modulus = modulus; + return this; + } + + public void unsetModulus() { + this.modulus = null; + } + + /** Returns true if field modulus is set (has been assigned a value) and false otherwise */ + public boolean isSetModulus() { + return this.modulus != null; + } + + public void setModulusIsSet(boolean value) { + if (!value) { + this.modulus = null; + } + } + + public String getExponent() { + return this.exponent; + } + + public registerSatellite_args setExponent(String exponent) { + this.exponent = exponent; + return this; + } + + public void unsetExponent() { + this.exponent = null; + } + + /** Returns true if field exponent is set (has been assigned a value) and false otherwise */ + public boolean isSetExponent() { + return this.exponent != null; + } + + public void setExponentIsSet(boolean value) { + if (!value) { + this.exponent = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SERVER_SESSION_ID: + case ORGANIZATION_ID: if (value == null) { - unsetServerSessionId(); + unsetOrganizationId(); } else { - setServerSessionId((String)value); + setOrganizationId((String)value); } break; - case USER: + case ADDRESS: if (value == null) { - unsetUser(); + unsetAddress(); } else { - setUser((UserInfo)value); + setAddress((String)value); + } + break; + + case MODULUS: + if (value == null) { + unsetModulus(); + } else { + setModulus((String)value); + } + break; + + case EXPONENT: + if (value == null) { + unsetExponent(); + } else { + setExponent((String)value); } break; @@ -11116,11 +12978,17 @@ public class ImageServer { public Object getFieldValue(_Fields field) { switch (field) { - case SERVER_SESSION_ID: - return getServerSessionId(); + case ORGANIZATION_ID: + return getOrganizationId(); - case USER: - return getUser(); + case ADDRESS: + return getAddress(); + + case MODULUS: + return getModulus(); + + case EXPONENT: + return getExponent(); } throw new IllegalStateException(); @@ -11133,10 +13001,14 @@ public class ImageServer { } switch (field) { - case SERVER_SESSION_ID: - return isSetServerSessionId(); - case USER: - return isSetUser(); + case ORGANIZATION_ID: + return isSetOrganizationId(); + case ADDRESS: + return isSetAddress(); + case MODULUS: + return isSetModulus(); + case EXPONENT: + return isSetExponent(); } throw new IllegalStateException(); } @@ -11145,30 +13017,48 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof publishUser_args) - return this.equals((publishUser_args)that); + if (that instanceof registerSatellite_args) + return this.equals((registerSatellite_args)that); return false; } - public boolean equals(publishUser_args that) { + public boolean equals(registerSatellite_args that) { if (that == null) return false; - boolean this_present_serverSessionId = true && this.isSetServerSessionId(); - boolean that_present_serverSessionId = true && that.isSetServerSessionId(); - if (this_present_serverSessionId || that_present_serverSessionId) { - if (!(this_present_serverSessionId && that_present_serverSessionId)) + boolean this_present_organizationId = true && this.isSetOrganizationId(); + boolean that_present_organizationId = true && that.isSetOrganizationId(); + if (this_present_organizationId || that_present_organizationId) { + if (!(this_present_organizationId && that_present_organizationId)) return false; - if (!this.serverSessionId.equals(that.serverSessionId)) + if (!this.organizationId.equals(that.organizationId)) return false; } - boolean this_present_user = true && this.isSetUser(); - boolean that_present_user = true && that.isSetUser(); - if (this_present_user || that_present_user) { - if (!(this_present_user && that_present_user)) + boolean this_present_address = true && this.isSetAddress(); + boolean that_present_address = true && that.isSetAddress(); + if (this_present_address || that_present_address) { + if (!(this_present_address && that_present_address)) + return false; + if (!this.address.equals(that.address)) + return false; + } + + boolean this_present_modulus = true && this.isSetModulus(); + boolean that_present_modulus = true && that.isSetModulus(); + if (this_present_modulus || that_present_modulus) { + if (!(this_present_modulus && that_present_modulus)) + return false; + if (!this.modulus.equals(that.modulus)) + return false; + } + + boolean this_present_exponent = true && this.isSetExponent(); + boolean that_present_exponent = true && that.isSetExponent(); + if (this_present_exponent || that_present_exponent) { + if (!(this_present_exponent && that_present_exponent)) return false; - if (!this.user.equals(that.user)) + if (!this.exponent.equals(that.exponent)) return false; } @@ -11180,30 +13070,50 @@ public class ImageServer { return 0; } - public int compareTo(publishUser_args other) { + @Override + public int compareTo(registerSatellite_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - publishUser_args typedOther = (publishUser_args)other; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(typedOther.isSetServerSessionId()); + lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, typedOther.serverSessionId); + if (isSetOrganizationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organizationId, other.organizationId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); + lastComparison = Boolean.valueOf(isSetAddress()).compareTo(other.isSetAddress()); if (lastComparison != 0) { return lastComparison; } - if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); + if (isSetAddress()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, other.address); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetModulus()).compareTo(other.isSetModulus()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetModulus()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modulus, other.modulus); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetExponent()).compareTo(other.isSetExponent()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetExponent()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exponent, other.exponent); if (lastComparison != 0) { return lastComparison; } @@ -11225,22 +13135,38 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("publishUser_args("); + StringBuilder sb = new StringBuilder("registerSatellite_args("); boolean first = true; - sb.append("serverSessionId:"); - if (this.serverSessionId == null) { + sb.append("organizationId:"); + if (this.organizationId == null) { sb.append("null"); } else { - sb.append(this.serverSessionId); + sb.append(this.organizationId); } first = false; if (!first) sb.append(", "); - sb.append("user:"); - if (this.user == null) { + sb.append("address:"); + if (this.address == null) { sb.append("null"); } else { - sb.append(this.user); + sb.append(this.address); + } + first = false; + if (!first) sb.append(", "); + sb.append("modulus:"); + if (this.modulus == null) { + sb.append("null"); + } else { + sb.append(this.modulus); + } + first = false; + if (!first) sb.append(", "); + sb.append("exponent:"); + if (this.exponent == null) { + sb.append("null"); + } else { + sb.append(this.exponent); } first = false; sb.append(")"); @@ -11250,9 +13176,6 @@ public class ImageServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (user != null) { - user.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -11271,15 +13194,15 @@ public class ImageServer { } } - private static class publishUser_argsStandardSchemeFactory implements SchemeFactory { - public publishUser_argsStandardScheme getScheme() { - return new publishUser_argsStandardScheme(); + private static class registerSatellite_argsStandardSchemeFactory implements SchemeFactory { + public registerSatellite_argsStandardScheme getScheme() { + return new registerSatellite_argsStandardScheme(); } } - private static class publishUser_argsStandardScheme extends StandardScheme { + private static class registerSatellite_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, publishUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11289,19 +13212,34 @@ public class ImageServer { break; } switch (schemeField.id) { - case 1: // SERVER_SESSION_ID + case 1: // ORGANIZATION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.user = new UserInfo(); - struct.user.read(iprot); - struct.setUserIsSet(true); + case 2: // ADDRESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.address = iprot.readString(); + struct.setAddressIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MODULUS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.modulus = iprot.readString(); + struct.setModulusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXPONENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.exponent = iprot.readString(); + struct.setExponentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11317,18 +13255,28 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, publishUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.serverSessionId != null) { - oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); - oprot.writeString(struct.serverSessionId); + if (struct.organizationId != null) { + oprot.writeFieldBegin(ORGANIZATION_ID_FIELD_DESC); + oprot.writeString(struct.organizationId); oprot.writeFieldEnd(); } - if (struct.user != null) { - oprot.writeFieldBegin(USER_FIELD_DESC); - struct.user.write(oprot); + if (struct.address != null) { + oprot.writeFieldBegin(ADDRESS_FIELD_DESC); + oprot.writeString(struct.address); + oprot.writeFieldEnd(); + } + if (struct.modulus != null) { + oprot.writeFieldBegin(MODULUS_FIELD_DESC); + oprot.writeString(struct.modulus); + oprot.writeFieldEnd(); + } + if (struct.exponent != null) { + oprot.writeFieldBegin(EXPONENT_FIELD_DESC); + oprot.writeString(struct.exponent); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -11337,70 +13285,86 @@ public class ImageServer { } - private static class publishUser_argsTupleSchemeFactory implements SchemeFactory { - public publishUser_argsTupleScheme getScheme() { - return new publishUser_argsTupleScheme(); + private static class registerSatellite_argsTupleSchemeFactory implements SchemeFactory { + public registerSatellite_argsTupleScheme getScheme() { + return new registerSatellite_argsTupleScheme(); } } - private static class publishUser_argsTupleScheme extends TupleScheme { + private static class registerSatellite_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, publishUser_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetServerSessionId()) { + if (struct.isSetOrganizationId()) { optionals.set(0); } - if (struct.isSetUser()) { + if (struct.isSetAddress()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetServerSessionId()) { - oprot.writeString(struct.serverSessionId); + if (struct.isSetModulus()) { + optionals.set(2); } - if (struct.isSetUser()) { - struct.user.write(oprot); + if (struct.isSetExponent()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetOrganizationId()) { + oprot.writeString(struct.organizationId); + } + if (struct.isSetAddress()) { + oprot.writeString(struct.address); + } + if (struct.isSetModulus()) { + oprot.writeString(struct.modulus); + } + if (struct.isSetExponent()) { + oprot.writeString(struct.exponent); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, publishUser_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); } if (incoming.get(1)) { - struct.user = new UserInfo(); - struct.user.read(iprot); - struct.setUserIsSet(true); + struct.address = iprot.readString(); + struct.setAddressIsSet(true); + } + if (incoming.get(2)) { + struct.modulus = iprot.readString(); + struct.setModulusIsSet(true); + } + if (incoming.get(3)) { + struct.exponent = iprot.readString(); + struct.setExponentIsSet(true); } } } } - public static class publishUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishUser_result"); + public static class registerSatellite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new publishUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new publishUser_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new registerSatellite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new registerSatellite_resultTupleSchemeFactory()); } public boolean success; // required - public AuthorizationException failure; // 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"), - FAILURE((short)1, "failure"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -11417,8 +13381,6 @@ public class ImageServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // FAILURE - return FAILURE; default: return null; } @@ -11466,52 +13428,44 @@ public class ImageServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publishUser_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_result.class, metaDataMap); } - public publishUser_result() { + public registerSatellite_result() { } - public publishUser_result( - boolean success, - AuthorizationException failure) + public registerSatellite_result( + boolean success) { this(); this.success = success; setSuccessIsSet(true); - this.failure = failure; } /** * Performs a deep copy on other. */ - public publishUser_result(publishUser_result other) { + public registerSatellite_result(registerSatellite_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; - if (other.isSetFailure()) { - this.failure = new AuthorizationException(other.failure); - } } - public publishUser_result deepCopy() { - return new publishUser_result(this); + public registerSatellite_result deepCopy() { + return new registerSatellite_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; - this.failure = null; } public boolean isSuccess() { return this.success; } - public publishUser_result setSuccess(boolean success) { + public registerSatellite_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -11530,30 +13484,6 @@ public class ImageServer { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public AuthorizationException getFailure() { - return this.failure; - } - - public publishUser_result setFailure(AuthorizationException failure) { - this.failure = failure; - return this; - } - - public void unsetFailure() { - this.failure = null; - } - - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } - - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -11564,14 +13494,6 @@ public class ImageServer { } break; - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((AuthorizationException)value); - } - break; - } } @@ -11580,9 +13502,6 @@ public class ImageServer { case SUCCESS: return Boolean.valueOf(isSuccess()); - case FAILURE: - return getFailure(); - } throw new IllegalStateException(); } @@ -11596,8 +13515,6 @@ public class ImageServer { switch (field) { case SUCCESS: return isSetSuccess(); - case FAILURE: - return isSetFailure(); } throw new IllegalStateException(); } @@ -11606,12 +13523,12 @@ public class ImageServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof publishUser_result) - return this.equals((publishUser_result)that); + if (that instanceof registerSatellite_result) + return this.equals((registerSatellite_result)that); return false; } - public boolean equals(publishUser_result that) { + public boolean equals(registerSatellite_result that) { if (that == null) return false; @@ -11624,15 +13541,6 @@ public class ImageServer { return false; } - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - return false; - } - return true; } @@ -11641,30 +13549,20 @@ public class ImageServer { return 0; } - public int compareTo(publishUser_result other) { + @Override + public int compareTo(registerSatellite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - publishUser_result typedOther = (publishUser_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(typedOther.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, typedOther.failure); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -11686,20 +13584,12 @@ public class ImageServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("publishUser_result("); + StringBuilder sb = new StringBuilder("registerSatellite_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; - if (!first) sb.append(", "); - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } - first = false; sb.append(")"); return sb.toString(); } @@ -11727,15 +13617,15 @@ public class ImageServer { } } - private static class publishUser_resultStandardSchemeFactory implements SchemeFactory { - public publishUser_resultStandardScheme getScheme() { - return new publishUser_resultStandardScheme(); + private static class registerSatellite_resultStandardSchemeFactory implements SchemeFactory { + public registerSatellite_resultStandardScheme getScheme() { + return new registerSatellite_resultStandardScheme(); } } - private static class publishUser_resultStandardScheme extends StandardScheme { + private static class registerSatellite_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, publishUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11753,15 +13643,6 @@ public class ImageServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new AuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11773,7 +13654,7 @@ public class ImageServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, publishUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11782,57 +13663,41 @@ public class ImageServer { oprot.writeBool(struct.success); oprot.writeFieldEnd(); } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class publishUser_resultTupleSchemeFactory implements SchemeFactory { - public publishUser_resultTupleScheme getScheme() { - return new publishUser_resultTupleScheme(); + private static class registerSatellite_resultTupleSchemeFactory implements SchemeFactory { + public registerSatellite_resultTupleScheme getScheme() { + return new registerSatellite_resultTupleScheme(); } } - private static class publishUser_resultTupleScheme extends TupleScheme { + private static class registerSatellite_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, publishUser_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetFailure()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, publishUser_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.failure = new AuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } } } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/InvalidTokenException.java b/src/main/java/org/openslx/imagemaster/thrift/iface/InvalidTokenException.java index 50a6e5d..e163c4f 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/InvalidTokenException.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/InvalidTokenException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class InvalidTokenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class InvalidTokenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidTokenException"); @@ -163,13 +165,13 @@ public class InvalidTokenException extends TException implements org.apache.thri return 0; } + @Override public int compareTo(InvalidTokenException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - InvalidTokenException typedOther = (InvalidTokenException)other; return 0; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java b/src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java index 2ca153d..2e40652 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,11 +32,12 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class OrganizationData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class OrganizationData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OrganizationData"); private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ECP_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("ecpUrl", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -44,11 +47,13 @@ public class OrganizationData implements org.apache.thrift.TBase byName = new HashMap(); @@ -67,6 +72,8 @@ public class OrganizationData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ServerSessionData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ServerSessionData"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -228,20 +230,20 @@ public class ServerSessionData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class SessionData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SessionData"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -346,40 +348,40 @@ public class SessionData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class UploadData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UploadData"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -289,30 +291,30 @@ public class UploadData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class UploadException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UploadException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); @@ -303,30 +305,30 @@ public class UploadException extends TException implements org.apache.thrift.TBa return 0; } + @Override public int compareTo(UploadException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - UploadException typedOther = (UploadException)other; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber()); + lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, other.number); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/UserInfo.java b/src/main/java/org/openslx/imagemaster/thrift/iface/UserInfo.java index d5c3a69..2d9581b 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/UserInfo.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/UserInfo.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -30,7 +32,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class UserInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class UserInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserInfo"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -464,60 +466,60 @@ public class UserInfo implements org.apache.thrift.TBase