summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/Organization.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/Organization.java216
1 files changed, 97 insertions, 119 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java b/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java
index 2021634..b9b8b50 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java
@@ -1,40 +1,13 @@
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.15.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.openslx.bwlp.thrift.iface;
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-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;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17")
public class Organization implements org.apache.thrift.TBase<Organization, Organization._Fields>, java.io.Serializable, Cloneable, Comparable<Organization> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Organization");
@@ -43,16 +16,13 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
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 org.apache.thrift.protocol.TField SUFFIX_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("suffixList", org.apache.thrift.protocol.TType.LIST, (short)4);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new OrganizationStandardSchemeFactory());
- schemes.put(TupleScheme.class, new OrganizationTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new OrganizationStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new OrganizationTupleSchemeFactory();
- public String organizationId; // required
- public String displayName; // required
- public String ecpUrl; // required
- public List<String> suffixList; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String organizationId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String ecpUrl; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> suffixList; // 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 {
@@ -61,10 +31,10 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
ECP_URL((short)3, "ecpUrl"),
SUFFIX_LIST((short)4, "suffixList");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -72,6 +42,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // ORGANIZATION_ID
@@ -93,21 +64,22 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@@ -116,15 +88,15 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return _thriftId;
}
- public String getFieldName() {
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -134,7 +106,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
tmpMap.put(_Fields.SUFFIX_LIST, new org.apache.thrift.meta_data.FieldMetaData("suffixList", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Organization.class, metaDataMap);
}
@@ -142,10 +114,10 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
public Organization(
- String organizationId,
- String displayName,
- String ecpUrl,
- List<String> suffixList)
+ java.lang.String organizationId,
+ java.lang.String displayName,
+ java.lang.String ecpUrl,
+ java.util.List<java.lang.String> suffixList)
{
this();
this.organizationId = organizationId;
@@ -168,7 +140,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
this.ecpUrl = other.ecpUrl;
}
if (other.isSetSuffixList()) {
- List<String> __this__suffixList = new ArrayList<String>(other.suffixList);
+ java.util.List<java.lang.String> __this__suffixList = new java.util.ArrayList<java.lang.String>(other.suffixList);
this.suffixList = __this__suffixList;
}
}
@@ -185,11 +157,12 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
this.suffixList = null;
}
- public String getOrganizationId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getOrganizationId() {
return this.organizationId;
}
- public Organization setOrganizationId(String organizationId) {
+ public Organization setOrganizationId(@org.apache.thrift.annotation.Nullable java.lang.String organizationId) {
this.organizationId = organizationId;
return this;
}
@@ -209,11 +182,12 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
- public String getDisplayName() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getDisplayName() {
return this.displayName;
}
- public Organization setDisplayName(String displayName) {
+ public Organization setDisplayName(@org.apache.thrift.annotation.Nullable java.lang.String displayName) {
this.displayName = displayName;
return this;
}
@@ -233,11 +207,12 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
- public String getEcpUrl() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getEcpUrl() {
return this.ecpUrl;
}
- public Organization setEcpUrl(String ecpUrl) {
+ public Organization setEcpUrl(@org.apache.thrift.annotation.Nullable java.lang.String ecpUrl) {
this.ecpUrl = ecpUrl;
return this;
}
@@ -261,22 +236,24 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return (this.suffixList == null) ? 0 : this.suffixList.size();
}
- public java.util.Iterator<String> getSuffixListIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.lang.String> getSuffixListIterator() {
return (this.suffixList == null) ? null : this.suffixList.iterator();
}
- public void addToSuffixList(String elem) {
+ public void addToSuffixList(java.lang.String elem) {
if (this.suffixList == null) {
- this.suffixList = new ArrayList<String>();
+ this.suffixList = new java.util.ArrayList<java.lang.String>();
}
this.suffixList.add(elem);
}
- public List<String> getSuffixList() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.lang.String> getSuffixList() {
return this.suffixList;
}
- public Organization setSuffixList(List<String> suffixList) {
+ public Organization setSuffixList(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> suffixList) {
this.suffixList = suffixList;
return this;
}
@@ -296,13 +273,13 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
- public void setFieldValue(_Fields field, Object value) {
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case ORGANIZATION_ID:
if (value == null) {
unsetOrganizationId();
} else {
- setOrganizationId((String)value);
+ setOrganizationId((java.lang.String)value);
}
break;
@@ -310,7 +287,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
if (value == null) {
unsetDisplayName();
} else {
- setDisplayName((String)value);
+ setDisplayName((java.lang.String)value);
}
break;
@@ -318,7 +295,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
if (value == null) {
unsetEcpUrl();
} else {
- setEcpUrl((String)value);
+ setEcpUrl((java.lang.String)value);
}
break;
@@ -326,14 +303,15 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
if (value == null) {
unsetSuffixList();
} else {
- setSuffixList((List<String>)value);
+ setSuffixList((java.util.List<java.lang.String>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ORGANIZATION_ID:
return getOrganizationId();
@@ -348,13 +326,13 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return getSuffixList();
}
- throw new IllegalStateException();
+ throw new java.lang.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();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -367,13 +345,11 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
case SUFFIX_LIST:
return isSetSuffixList();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof Organization)
return this.equals((Organization)that);
return false;
@@ -382,6 +358,8 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
public boolean equals(Organization that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_organizationId = true && this.isSetOrganizationId();
boolean that_present_organizationId = true && that.isSetOrganizationId();
@@ -424,29 +402,25 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_organizationId = true && (isSetOrganizationId());
- list.add(present_organizationId);
- if (present_organizationId)
- list.add(organizationId);
+ hashCode = hashCode * 8191 + ((isSetOrganizationId()) ? 131071 : 524287);
+ if (isSetOrganizationId())
+ hashCode = hashCode * 8191 + organizationId.hashCode();
- boolean present_displayName = true && (isSetDisplayName());
- list.add(present_displayName);
- if (present_displayName)
- list.add(displayName);
+ hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287);
+ if (isSetDisplayName())
+ hashCode = hashCode * 8191 + displayName.hashCode();
- boolean present_ecpUrl = true && (isSetEcpUrl());
- list.add(present_ecpUrl);
- if (present_ecpUrl)
- list.add(ecpUrl);
+ hashCode = hashCode * 8191 + ((isSetEcpUrl()) ? 131071 : 524287);
+ if (isSetEcpUrl())
+ hashCode = hashCode * 8191 + ecpUrl.hashCode();
- boolean present_suffixList = true && (isSetSuffixList());
- list.add(present_suffixList);
- if (present_suffixList)
- list.add(suffixList);
+ hashCode = hashCode * 8191 + ((isSetSuffixList()) ? 131071 : 524287);
+ if (isSetSuffixList())
+ hashCode = hashCode * 8191 + suffixList.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -457,7 +431,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId());
+ lastComparison = java.lang.Boolean.compare(isSetOrganizationId(), other.isSetOrganizationId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -467,7 +441,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName());
+ lastComparison = java.lang.Boolean.compare(isSetDisplayName(), other.isSetDisplayName());
if (lastComparison != 0) {
return lastComparison;
}
@@ -477,7 +451,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetEcpUrl()).compareTo(other.isSetEcpUrl());
+ lastComparison = java.lang.Boolean.compare(isSetEcpUrl(), other.isSetEcpUrl());
if (lastComparison != 0) {
return lastComparison;
}
@@ -487,7 +461,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetSuffixList()).compareTo(other.isSetSuffixList());
+ lastComparison = java.lang.Boolean.compare(isSetSuffixList(), other.isSetSuffixList());
if (lastComparison != 0) {
return lastComparison;
}
@@ -500,21 +474,22 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
return 0;
}
+ @org.apache.thrift.annotation.Nullable
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);
+ scheme(iprot).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);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("Organization(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("Organization(");
boolean first = true;
sb.append("organizationId:");
@@ -565,7 +540,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -573,13 +548,13 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
- private static class OrganizationStandardSchemeFactory implements SchemeFactory {
+ private static class OrganizationStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public OrganizationStandardScheme getScheme() {
return new OrganizationStandardScheme();
}
}
- private static class OrganizationStandardScheme extends StandardScheme<Organization> {
+ private static class OrganizationStandardScheme extends org.apache.thrift.scheme.StandardScheme<Organization> {
public void read(org.apache.thrift.protocol.TProtocol iprot, Organization struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
@@ -619,8 +594,8 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
- struct.suffixList = new ArrayList<String>(_list0.size);
- String _elem1;
+ struct.suffixList = new java.util.ArrayList<java.lang.String>(_list0.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem1;
for (int _i2 = 0; _i2 < _list0.size; ++_i2)
{
_elem1 = iprot.readString();
@@ -667,7 +642,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
oprot.writeFieldBegin(SUFFIX_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.suffixList.size()));
- for (String _iter3 : struct.suffixList)
+ for (java.lang.String _iter3 : struct.suffixList)
{
oprot.writeString(_iter3);
}
@@ -681,18 +656,18 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
- private static class OrganizationTupleSchemeFactory implements SchemeFactory {
+ private static class OrganizationTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public OrganizationTupleScheme getScheme() {
return new OrganizationTupleScheme();
}
}
- private static class OrganizationTupleScheme extends TupleScheme<Organization> {
+ private static class OrganizationTupleScheme extends org.apache.thrift.scheme.TupleScheme<Organization> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Organization struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetOrganizationId()) {
optionals.set(0);
}
@@ -718,7 +693,7 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
if (struct.isSetSuffixList()) {
{
oprot.writeI32(struct.suffixList.size());
- for (String _iter4 : struct.suffixList)
+ for (java.lang.String _iter4 : struct.suffixList)
{
oprot.writeString(_iter4);
}
@@ -728,8 +703,8 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Organization struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.organizationId = iprot.readString();
struct.setOrganizationIdIsSet(true);
@@ -744,9 +719,9 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.suffixList = new ArrayList<String>(_list5.size);
- String _elem6;
+ org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.suffixList = new java.util.ArrayList<java.lang.String>(_list5.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem6;
for (int _i7 = 0; _i7 < _list5.size; ++_i7)
{
_elem6 = iprot.readString();
@@ -758,5 +733,8 @@ public class Organization implements org.apache.thrift.TBase<Organization, Organ
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}