summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java')
-rw-r--r--src/main/java/org/openslx/imagemaster/thrift/iface/OrganizationData.java124
1 files changed, 113 insertions, 11 deletions
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<OrganizationData, OrganizationData._Fields>, java.io.Serializable, Cloneable {
+public class OrganizationData implements org.apache.thrift.TBase<OrganizationData, OrganizationData._Fields>, java.io.Serializable, Cloneable, Comparable<OrganizationData> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -44,11 +47,13 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
public String organizationId; // required
public String displayName; // required
+ public String ecpUrl; // 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"),
- DISPLAY_NAME((short)2, "displayName");
+ DISPLAY_NAME((short)2, "displayName"),
+ ECP_URL((short)3, "ecpUrl");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -67,6 +72,8 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
return ORGANIZATION_ID;
case 2: // DISPLAY_NAME
return DISPLAY_NAME;
+ case 3: // ECP_URL
+ return ECP_URL;
default:
return null;
}
@@ -114,6 +121,8 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.ECP_URL, new org.apache.thrift.meta_data.FieldMetaData("ecpUrl", 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(OrganizationData.class, metaDataMap);
}
@@ -123,11 +132,13 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
public OrganizationData(
String organizationId,
- String displayName)
+ String displayName,
+ String ecpUrl)
{
this();
this.organizationId = organizationId;
this.displayName = displayName;
+ this.ecpUrl = ecpUrl;
}
/**
@@ -140,6 +151,9 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
if (other.isSetDisplayName()) {
this.displayName = other.displayName;
}
+ if (other.isSetEcpUrl()) {
+ this.ecpUrl = other.ecpUrl;
+ }
}
public OrganizationData deepCopy() {
@@ -150,6 +164,7 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
public void clear() {
this.organizationId = null;
this.displayName = null;
+ this.ecpUrl = null;
}
public String getOrganizationId() {
@@ -200,6 +215,30 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
}
}
+ public String getEcpUrl() {
+ return this.ecpUrl;
+ }
+
+ public OrganizationData setEcpUrl(String ecpUrl) {
+ this.ecpUrl = ecpUrl;
+ return this;
+ }
+
+ public void unsetEcpUrl() {
+ this.ecpUrl = null;
+ }
+
+ /** Returns true if field ecpUrl is set (has been assigned a value) and false otherwise */
+ public boolean isSetEcpUrl() {
+ return this.ecpUrl != null;
+ }
+
+ public void setEcpUrlIsSet(boolean value) {
+ if (!value) {
+ this.ecpUrl = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case ORGANIZATION_ID:
@@ -218,6 +257,14 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
}
break;
+ case ECP_URL:
+ if (value == null) {
+ unsetEcpUrl();
+ } else {
+ setEcpUrl((String)value);
+ }
+ break;
+
}
}
@@ -229,6 +276,9 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
case DISPLAY_NAME:
return getDisplayName();
+ case ECP_URL:
+ return getEcpUrl();
+
}
throw new IllegalStateException();
}
@@ -244,6 +294,8 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
return isSetOrganizationId();
case DISPLAY_NAME:
return isSetDisplayName();
+ case ECP_URL:
+ return isSetEcpUrl();
}
throw new IllegalStateException();
}
@@ -279,6 +331,15 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
return false;
}
+ boolean this_present_ecpUrl = true && this.isSetEcpUrl();
+ boolean that_present_ecpUrl = true && that.isSetEcpUrl();
+ if (this_present_ecpUrl || that_present_ecpUrl) {
+ if (!(this_present_ecpUrl && that_present_ecpUrl))
+ return false;
+ if (!this.ecpUrl.equals(that.ecpUrl))
+ return false;
+ }
+
return true;
}
@@ -287,30 +348,40 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
return 0;
}
+ @Override
public int compareTo(OrganizationData other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- OrganizationData typedOther = (OrganizationData)other;
- lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(typedOther.isSetOrganizationId());
+ lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.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.organizationId, other.organizationId);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
+ lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDisplayName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, other.displayName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetEcpUrl()).compareTo(other.isSetEcpUrl());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetEcpUrl()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ecpUrl, other.ecpUrl);
if (lastComparison != 0) {
return lastComparison;
}
@@ -350,6 +421,14 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
sb.append(this.displayName);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("ecpUrl:");
+ if (this.ecpUrl == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ecpUrl);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -409,6 +488,14 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 3: // ECP_URL
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.ecpUrl = iprot.readString();
+ struct.setEcpUrlIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -434,6 +521,11 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
oprot.writeString(struct.displayName);
oprot.writeFieldEnd();
}
+ if (struct.ecpUrl != null) {
+ oprot.writeFieldBegin(ECP_URL_FIELD_DESC);
+ oprot.writeString(struct.ecpUrl);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -458,19 +550,25 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
if (struct.isSetDisplayName()) {
optionals.set(1);
}
- oprot.writeBitSet(optionals, 2);
+ if (struct.isSetEcpUrl()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
if (struct.isSetOrganizationId()) {
oprot.writeString(struct.organizationId);
}
if (struct.isSetDisplayName()) {
oprot.writeString(struct.displayName);
}
+ if (struct.isSetEcpUrl()) {
+ oprot.writeString(struct.ecpUrl);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, OrganizationData 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);
@@ -479,6 +577,10 @@ public class OrganizationData implements org.apache.thrift.TBase<OrganizationDat
struct.displayName = iprot.readString();
struct.setDisplayNameIsSet(true);
}
+ if (incoming.get(2)) {
+ struct.ecpUrl = iprot.readString();
+ struct.setEcpUrlIsSet(true);
+ }
}
}