summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2018-11-23 15:06:52 +0100
committerSimon Rettberg2018-11-23 15:06:52 +0100
commite48a7c0c45cf002e8865dc316766dd9074790d90 (patch)
tree0fc39c6526a49719717d9e49007839cf57ae066e /src/main
parentthrift-compile.sh: Smarter change detection (diff)
downloadmaster-sync-shared-e48a7c0c45cf002e8865dc316766dd9074790d90.tar.gz
master-sync-shared-e48a7c0c45cf002e8865dc316766dd9074790d90.tar.xz
master-sync-shared-e48a7c0c45cf002e8865dc316766dd9074790d90.zip
[thrift] Sat interface for getting predefined shares/filters
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java220
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java114
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java611
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java1638
-rw-r--r--src/main/thrift/bwlp.thrift13
5 files changed, 2316 insertions, 280 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java b/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java
index f5e3a8c..ba80e7b 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java
@@ -34,12 +34,14 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-06-13")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23")
public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilter._Fields>, java.io.Serializable, Cloneable, Comparable<LdapFilter> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LdapFilter");
private static final org.apache.thrift.protocol.TField ATTRIBUTE_FIELD_DESC = new org.apache.thrift.protocol.TField("attribute", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField FILTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("filterId", org.apache.thrift.protocol.TType.I32, (short)3);
+ private static final org.apache.thrift.protocol.TField TITLE_FIELD_DESC = new org.apache.thrift.protocol.TField("title", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -49,11 +51,15 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
public String attribute; // required
public String value; // required
+ public int filterId; // optional
+ public String title; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
ATTRIBUTE((short)1, "attribute"),
- VALUE((short)2, "value");
+ VALUE((short)2, "value"),
+ FILTER_ID((short)3, "filterId"),
+ TITLE((short)4, "title");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -72,6 +78,10 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
return ATTRIBUTE;
case 2: // VALUE
return VALUE;
+ case 3: // FILTER_ID
+ return FILTER_ID;
+ case 4: // TITLE
+ return TITLE;
default:
return null;
}
@@ -112,6 +122,9 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
}
// isset id assignments
+ private static final int __FILTERID_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.FILTER_ID,_Fields.TITLE};
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);
@@ -119,6 +132,10 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.FILTER_ID, new org.apache.thrift.meta_data.FieldMetaData("filterId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.TITLE, new org.apache.thrift.meta_data.FieldMetaData("title", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LdapFilter.class, metaDataMap);
}
@@ -139,12 +156,17 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
* Performs a deep copy on <i>other</i>.
*/
public LdapFilter(LdapFilter other) {
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetAttribute()) {
this.attribute = other.attribute;
}
if (other.isSetValue()) {
this.value = other.value;
}
+ this.filterId = other.filterId;
+ if (other.isSetTitle()) {
+ this.title = other.title;
+ }
}
public LdapFilter deepCopy() {
@@ -155,6 +177,9 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
public void clear() {
this.attribute = null;
this.value = null;
+ setFilterIdIsSet(false);
+ this.filterId = 0;
+ this.title = null;
}
public String getAttribute() {
@@ -205,6 +230,53 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
}
}
+ public int getFilterId() {
+ return this.filterId;
+ }
+
+ public LdapFilter setFilterId(int filterId) {
+ this.filterId = filterId;
+ setFilterIdIsSet(true);
+ return this;
+ }
+
+ public void unsetFilterId() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILTERID_ISSET_ID);
+ }
+
+ /** Returns true if field filterId is set (has been assigned a value) and false otherwise */
+ public boolean isSetFilterId() {
+ return EncodingUtils.testBit(__isset_bitfield, __FILTERID_ISSET_ID);
+ }
+
+ public void setFilterIdIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILTERID_ISSET_ID, value);
+ }
+
+ public String getTitle() {
+ return this.title;
+ }
+
+ public LdapFilter setTitle(String title) {
+ this.title = title;
+ return this;
+ }
+
+ public void unsetTitle() {
+ this.title = null;
+ }
+
+ /** Returns true if field title is set (has been assigned a value) and false otherwise */
+ public boolean isSetTitle() {
+ return this.title != null;
+ }
+
+ public void setTitleIsSet(boolean value) {
+ if (!value) {
+ this.title = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case ATTRIBUTE:
@@ -223,6 +295,22 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
}
break;
+ case FILTER_ID:
+ if (value == null) {
+ unsetFilterId();
+ } else {
+ setFilterId((Integer)value);
+ }
+ break;
+
+ case TITLE:
+ if (value == null) {
+ unsetTitle();
+ } else {
+ setTitle((String)value);
+ }
+ break;
+
}
}
@@ -234,6 +322,12 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
case VALUE:
return getValue();
+ case FILTER_ID:
+ return getFilterId();
+
+ case TITLE:
+ return getTitle();
+
}
throw new IllegalStateException();
}
@@ -249,6 +343,10 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
return isSetAttribute();
case VALUE:
return isSetValue();
+ case FILTER_ID:
+ return isSetFilterId();
+ case TITLE:
+ return isSetTitle();
}
throw new IllegalStateException();
}
@@ -284,6 +382,24 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
return false;
}
+ boolean this_present_filterId = true && this.isSetFilterId();
+ boolean that_present_filterId = true && that.isSetFilterId();
+ if (this_present_filterId || that_present_filterId) {
+ if (!(this_present_filterId && that_present_filterId))
+ return false;
+ if (this.filterId != that.filterId)
+ return false;
+ }
+
+ boolean this_present_title = true && this.isSetTitle();
+ boolean that_present_title = true && that.isSetTitle();
+ if (this_present_title || that_present_title) {
+ if (!(this_present_title && that_present_title))
+ return false;
+ if (!this.title.equals(that.title))
+ return false;
+ }
+
return true;
}
@@ -301,6 +417,16 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
if (present_value)
list.add(value);
+ boolean present_filterId = true && (isSetFilterId());
+ list.add(present_filterId);
+ if (present_filterId)
+ list.add(filterId);
+
+ boolean present_title = true && (isSetTitle());
+ list.add(present_title);
+ if (present_title)
+ list.add(title);
+
return list.hashCode();
}
@@ -332,6 +458,26 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetFilterId()).compareTo(other.isSetFilterId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetFilterId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterId, other.filterId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetTitle()).compareTo(other.isSetTitle());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTitle()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.title, other.title);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -367,6 +513,22 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
sb.append(this.value);
}
first = false;
+ if (isSetFilterId()) {
+ if (!first) sb.append(", ");
+ sb.append("filterId:");
+ sb.append(this.filterId);
+ first = false;
+ }
+ if (isSetTitle()) {
+ if (!first) sb.append(", ");
+ sb.append("title:");
+ if (this.title == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.title);
+ }
+ first = false;
+ }
sb.append(")");
return sb.toString();
}
@@ -386,6 +548,8 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
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);
@@ -426,6 +590,22 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 3: // FILTER_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.filterId = iprot.readI32();
+ struct.setFilterIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // TITLE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.title = iprot.readString();
+ struct.setTitleIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -451,6 +631,18 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
oprot.writeString(struct.value);
oprot.writeFieldEnd();
}
+ if (struct.isSetFilterId()) {
+ oprot.writeFieldBegin(FILTER_ID_FIELD_DESC);
+ oprot.writeI32(struct.filterId);
+ oprot.writeFieldEnd();
+ }
+ if (struct.title != null) {
+ if (struct.isSetTitle()) {
+ oprot.writeFieldBegin(TITLE_FIELD_DESC);
+ oprot.writeString(struct.title);
+ oprot.writeFieldEnd();
+ }
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -475,19 +667,31 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
if (struct.isSetValue()) {
optionals.set(1);
}
- oprot.writeBitSet(optionals, 2);
+ if (struct.isSetFilterId()) {
+ optionals.set(2);
+ }
+ if (struct.isSetTitle()) {
+ optionals.set(3);
+ }
+ oprot.writeBitSet(optionals, 4);
if (struct.isSetAttribute()) {
oprot.writeString(struct.attribute);
}
if (struct.isSetValue()) {
oprot.writeString(struct.value);
}
+ if (struct.isSetFilterId()) {
+ oprot.writeI32(struct.filterId);
+ }
+ if (struct.isSetTitle()) {
+ oprot.writeString(struct.title);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, LdapFilter 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.attribute = iprot.readString();
struct.setAttributeIsSet(true);
@@ -496,6 +700,14 @@ public class LdapFilter implements org.apache.thrift.TBase<LdapFilter, LdapFilte
struct.value = iprot.readString();
struct.setValueIsSet(true);
}
+ if (incoming.get(2)) {
+ struct.filterId = iprot.readI32();
+ struct.setFilterIdIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.title = iprot.readString();
+ struct.setTitleIsSet(true);
+ }
}
}
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
index c274a4c..df1d0c4 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
@@ -34,7 +34,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-08")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23")
public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fields>, java.io.Serializable, Cloneable, Comparable<NetShare> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NetShare");
@@ -44,6 +44,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
private static final org.apache.thrift.protocol.TField MOUNTPOINT_FIELD_DESC = new org.apache.thrift.protocol.TField("mountpoint", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);
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)3);
+ private static final org.apache.thrift.protocol.TField SHARE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shareId", org.apache.thrift.protocol.TType.I32, (short)7);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -61,6 +62,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
public String mountpoint; // optional
public String username; // optional
public String password; // optional
+ public int shareId; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -73,7 +75,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
DISPLAYNAME((short)5, "displayname"),
MOUNTPOINT((short)6, "mountpoint"),
USERNAME((short)2, "username"),
- PASSWORD((short)3, "password");
+ PASSWORD((short)3, "password"),
+ SHARE_ID((short)7, "shareId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -100,6 +103,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return USERNAME;
case 3: // PASSWORD
return PASSWORD;
+ case 7: // SHARE_ID
+ return SHARE_ID;
default:
return null;
}
@@ -140,7 +145,9 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
// isset id assignments
- private static final _Fields optionals[] = {_Fields.DISPLAYNAME,_Fields.MOUNTPOINT,_Fields.USERNAME,_Fields.PASSWORD};
+ private static final int __SHAREID_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.DISPLAYNAME,_Fields.MOUNTPOINT,_Fields.USERNAME,_Fields.PASSWORD,_Fields.SHARE_ID};
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);
@@ -156,6 +163,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
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.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.SHARE_ID, new org.apache.thrift.meta_data.FieldMetaData("shareId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NetShare.class, metaDataMap);
}
@@ -176,6 +185,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
* Performs a deep copy on <i>other</i>.
*/
public NetShare(NetShare other) {
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetAuth()) {
this.auth = other.auth;
}
@@ -194,6 +204,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (other.isSetPassword()) {
this.password = other.password;
}
+ this.shareId = other.shareId;
}
public NetShare deepCopy() {
@@ -208,6 +219,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
this.mountpoint = null;
this.username = null;
this.password = null;
+ setShareIdIsSet(false);
+ this.shareId = 0;
}
/**
@@ -362,6 +375,29 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
}
+ public int getShareId() {
+ return this.shareId;
+ }
+
+ public NetShare setShareId(int shareId) {
+ this.shareId = shareId;
+ setShareIdIsSet(true);
+ return this;
+ }
+
+ public void unsetShareId() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREID_ISSET_ID);
+ }
+
+ /** Returns true if field shareId is set (has been assigned a value) and false otherwise */
+ public boolean isSetShareId() {
+ return EncodingUtils.testBit(__isset_bitfield, __SHAREID_ISSET_ID);
+ }
+
+ public void setShareIdIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREID_ISSET_ID, value);
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case AUTH:
@@ -412,6 +448,14 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
break;
+ case SHARE_ID:
+ if (value == null) {
+ unsetShareId();
+ } else {
+ setShareId((Integer)value);
+ }
+ break;
+
}
}
@@ -435,6 +479,9 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
case PASSWORD:
return getPassword();
+ case SHARE_ID:
+ return getShareId();
+
}
throw new IllegalStateException();
}
@@ -458,6 +505,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return isSetUsername();
case PASSWORD:
return isSetPassword();
+ case SHARE_ID:
+ return isSetShareId();
}
throw new IllegalStateException();
}
@@ -529,6 +578,15 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return false;
}
+ boolean this_present_shareId = true && this.isSetShareId();
+ boolean that_present_shareId = true && that.isSetShareId();
+ if (this_present_shareId || that_present_shareId) {
+ if (!(this_present_shareId && that_present_shareId))
+ return false;
+ if (this.shareId != that.shareId)
+ return false;
+ }
+
return true;
}
@@ -566,6 +624,11 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (present_password)
list.add(password);
+ boolean present_shareId = true && (isSetShareId());
+ list.add(present_shareId);
+ if (present_shareId)
+ list.add(shareId);
+
return list.hashCode();
}
@@ -637,6 +700,16 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetShareId()).compareTo(other.isSetShareId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetShareId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareId, other.shareId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -712,6 +785,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
first = false;
}
+ if (isSetShareId()) {
+ if (!first) sb.append(", ");
+ sb.append("shareId:");
+ sb.append(this.shareId);
+ first = false;
+ }
sb.append(")");
return sb.toString();
}
@@ -731,6 +810,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
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);
@@ -803,6 +884,14 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 7: // SHARE_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.shareId = iprot.readI32();
+ struct.setShareIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -856,6 +945,11 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
oprot.writeFieldEnd();
}
}
+ if (struct.isSetShareId()) {
+ oprot.writeFieldBegin(SHARE_ID_FIELD_DESC);
+ oprot.writeI32(struct.shareId);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -892,7 +986,10 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (struct.isSetPassword()) {
optionals.set(5);
}
- oprot.writeBitSet(optionals, 6);
+ if (struct.isSetShareId()) {
+ optionals.set(6);
+ }
+ oprot.writeBitSet(optionals, 7);
if (struct.isSetAuth()) {
oprot.writeI32(struct.auth.getValue());
}
@@ -911,12 +1008,15 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (struct.isSetPassword()) {
oprot.writeString(struct.password);
}
+ if (struct.isSetShareId()) {
+ oprot.writeI32(struct.shareId);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(6);
+ BitSet incoming = iprot.readBitSet(7);
if (incoming.get(0)) {
struct.auth = org.openslx.bwlp.thrift.iface.NetShareAuth.findByValue(iprot.readI32());
struct.setAuthIsSet(true);
@@ -941,6 +1041,10 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
struct.password = iprot.readString();
struct.setPasswordIsSet(true);
}
+ if (incoming.get(6)) {
+ struct.shareId = iprot.readI32();
+ struct.setShareIdIsSet(true);
+ }
}
}
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
new file mode 100644
index 0000000..67e2463
--- /dev/null
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
@@ -0,0 +1,611 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * 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 = "2018-11-23")
+public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, PredefinedData._Fields>, java.io.Serializable, Cloneable, Comparable<PredefinedData> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PredefinedData");
+
+ private static final org.apache.thrift.protocol.TField NET_SHARES_FIELD_DESC = new org.apache.thrift.protocol.TField("netShares", org.apache.thrift.protocol.TType.LIST, (short)1);
+ private static final org.apache.thrift.protocol.TField LDAP_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("ldapFilter", org.apache.thrift.protocol.TType.LIST, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new PredefinedDataStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new PredefinedDataTupleSchemeFactory());
+ }
+
+ public List<NetShare> netShares; // required
+ public List<LdapFilter> ldapFilter; // 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 {
+ NET_SHARES((short)1, "netShares"),
+ LDAP_FILTER((short)2, "ldapFilter");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // NET_SHARES
+ return NET_SHARES;
+ case 2: // LDAP_FILTER
+ return LDAP_FILTER;
+ 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.NET_SHARES, new org.apache.thrift.meta_data.FieldMetaData("netShares", 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, NetShare.class))));
+ tmpMap.put(_Fields.LDAP_FILTER, new org.apache.thrift.meta_data.FieldMetaData("ldapFilter", 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, LdapFilter.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PredefinedData.class, metaDataMap);
+ }
+
+ public PredefinedData() {
+ }
+
+ public PredefinedData(
+ List<NetShare> netShares,
+ List<LdapFilter> ldapFilter)
+ {
+ this();
+ this.netShares = netShares;
+ this.ldapFilter = ldapFilter;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public PredefinedData(PredefinedData other) {
+ if (other.isSetNetShares()) {
+ List<NetShare> __this__netShares = new ArrayList<NetShare>(other.netShares.size());
+ for (NetShare other_element : other.netShares) {
+ __this__netShares.add(new NetShare(other_element));
+ }
+ this.netShares = __this__netShares;
+ }
+ if (other.isSetLdapFilter()) {
+ List<LdapFilter> __this__ldapFilter = new ArrayList<LdapFilter>(other.ldapFilter.size());
+ for (LdapFilter other_element : other.ldapFilter) {
+ __this__ldapFilter.add(new LdapFilter(other_element));
+ }
+ this.ldapFilter = __this__ldapFilter;
+ }
+ }
+
+ public PredefinedData deepCopy() {
+ return new PredefinedData(this);
+ }
+
+ @Override
+ public void clear() {
+ this.netShares = null;
+ this.ldapFilter = null;
+ }
+
+ public int getNetSharesSize() {
+ return (this.netShares == null) ? 0 : this.netShares.size();
+ }
+
+ public java.util.Iterator<NetShare> getNetSharesIterator() {
+ return (this.netShares == null) ? null : this.netShares.iterator();
+ }
+
+ public void addToNetShares(NetShare elem) {
+ if (this.netShares == null) {
+ this.netShares = new ArrayList<NetShare>();
+ }
+ this.netShares.add(elem);
+ }
+
+ public List<NetShare> getNetShares() {
+ return this.netShares;
+ }
+
+ public PredefinedData setNetShares(List<NetShare> netShares) {
+ this.netShares = netShares;
+ return this;
+ }
+
+ public void unsetNetShares() {
+ this.netShares = null;
+ }
+
+ /** Returns true if field netShares is set (has been assigned a value) and false otherwise */
+ public boolean isSetNetShares() {
+ return this.netShares != null;
+ }
+
+ public void setNetSharesIsSet(boolean value) {
+ if (!value) {
+ this.netShares = null;
+ }
+ }
+
+ public int getLdapFilterSize() {
+ return (this.ldapFilter == null) ? 0 : this.ldapFilter.size();
+ }
+
+ public java.util.Iterator<LdapFilter> getLdapFilterIterator() {
+ return (this.ldapFilter == null) ? null : this.ldapFilter.iterator();
+ }
+
+ public void addToLdapFilter(LdapFilter elem) {
+ if (this.ldapFilter == null) {
+ this.ldapFilter = new ArrayList<LdapFilter>();
+ }
+ this.ldapFilter.add(elem);
+ }
+
+ public List<LdapFilter> getLdapFilter() {
+ return this.ldapFilter;
+ }
+
+ public PredefinedData setLdapFilter(List<LdapFilter> ldapFilter) {
+ this.ldapFilter = ldapFilter;
+ return this;
+ }
+
+ public void unsetLdapFilter() {
+ this.ldapFilter = null;
+ }
+
+ /** Returns true if field ldapFilter is set (has been assigned a value) and false otherwise */
+ public boolean isSetLdapFilter() {
+ return this.ldapFilter != null;
+ }
+
+ public void setLdapFilterIsSet(boolean value) {
+ if (!value) {
+ this.ldapFilter = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NET_SHARES:
+ if (value == null) {
+ unsetNetShares();
+ } else {
+ setNetShares((List<NetShare>)value);
+ }
+ break;
+
+ case LDAP_FILTER:
+ if (value == null) {
+ unsetLdapFilter();
+ } else {
+ setLdapFilter((List<LdapFilter>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NET_SHARES:
+ return getNetShares();
+
+ case LDAP_FILTER:
+ return getLdapFilter();
+
+ }
+ 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 NET_SHARES:
+ return isSetNetShares();
+ case LDAP_FILTER:
+ return isSetLdapFilter();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof PredefinedData)
+ return this.equals((PredefinedData)that);
+ return false;
+ }
+
+ public boolean equals(PredefinedData that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_netShares = true && this.isSetNetShares();
+ boolean that_present_netShares = true && that.isSetNetShares();
+ if (this_present_netShares || that_present_netShares) {
+ if (!(this_present_netShares && that_present_netShares))
+ return false;
+ if (!this.netShares.equals(that.netShares))
+ return false;
+ }
+
+ boolean this_present_ldapFilter = true && this.isSetLdapFilter();
+ boolean that_present_ldapFilter = true && that.isSetLdapFilter();
+ if (this_present_ldapFilter || that_present_ldapFilter) {
+ if (!(this_present_ldapFilter && that_present_ldapFilter))
+ return false;
+ if (!this.ldapFilter.equals(that.ldapFilter))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_netShares = true && (isSetNetShares());
+ list.add(present_netShares);
+ if (present_netShares)
+ list.add(netShares);
+
+ boolean present_ldapFilter = true && (isSetLdapFilter());
+ list.add(present_ldapFilter);
+ if (present_ldapFilter)
+ list.add(ldapFilter);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(PredefinedData other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetNetShares()).compareTo(other.isSetNetShares());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNetShares()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.netShares, other.netShares);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetLdapFilter()).compareTo(other.isSetLdapFilter());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetLdapFilter()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ldapFilter, other.ldapFilter);
+ 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("PredefinedData(");
+ boolean first = true;
+
+ sb.append("netShares:");
+ if (this.netShares == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.netShares);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ldapFilter:");
+ if (this.ldapFilter == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ldapFilter);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class PredefinedDataStandardSchemeFactory implements SchemeFactory {
+ public PredefinedDataStandardScheme getScheme() {
+ return new PredefinedDataStandardScheme();
+ }
+ }
+
+ private static class PredefinedDataStandardScheme extends StandardScheme<PredefinedData> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, PredefinedData struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // NET_SHARES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list90 = iprot.readListBegin();
+ struct.netShares = new ArrayList<NetShare>(_list90.size);
+ NetShare _elem91;
+ for (int _i92 = 0; _i92 < _list90.size; ++_i92)
+ {
+ _elem91 = new NetShare();
+ _elem91.read(iprot);
+ struct.netShares.add(_elem91);
+ }
+ iprot.readListEnd();
+ }
+ struct.setNetSharesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // LDAP_FILTER
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
+ struct.ldapFilter = new ArrayList<LdapFilter>(_list93.size);
+ LdapFilter _elem94;
+ for (int _i95 = 0; _i95 < _list93.size; ++_i95)
+ {
+ _elem94 = new LdapFilter();
+ _elem94.read(iprot);
+ struct.ldapFilter.add(_elem94);
+ }
+ iprot.readListEnd();
+ }
+ struct.setLdapFilterIsSet(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, PredefinedData struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.netShares != null) {
+ oprot.writeFieldBegin(NET_SHARES_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.netShares.size()));
+ for (NetShare _iter96 : struct.netShares)
+ {
+ _iter96.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ if (struct.ldapFilter != null) {
+ oprot.writeFieldBegin(LDAP_FILTER_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.ldapFilter.size()));
+ for (LdapFilter _iter97 : struct.ldapFilter)
+ {
+ _iter97.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class PredefinedDataTupleSchemeFactory implements SchemeFactory {
+ public PredefinedDataTupleScheme getScheme() {
+ return new PredefinedDataTupleScheme();
+ }
+ }
+
+ private static class PredefinedDataTupleScheme extends TupleScheme<PredefinedData> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, PredefinedData struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetNetShares()) {
+ optionals.set(0);
+ }
+ if (struct.isSetLdapFilter()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetNetShares()) {
+ {
+ oprot.writeI32(struct.netShares.size());
+ for (NetShare _iter98 : struct.netShares)
+ {
+ _iter98.write(oprot);
+ }
+ }
+ }
+ if (struct.isSetLdapFilter()) {
+ {
+ oprot.writeI32(struct.ldapFilter.size());
+ for (LdapFilter _iter99 : struct.ldapFilter)
+ {
+ _iter99.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, PredefinedData struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list100 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.netShares = new ArrayList<NetShare>(_list100.size);
+ NetShare _elem101;
+ for (int _i102 = 0; _i102 < _list100.size; ++_i102)
+ {
+ _elem101 = new NetShare();
+ _elem101.read(iprot);
+ struct.netShares.add(_elem101);
+ }
+ }
+ struct.setNetSharesIsSet(true);
+ }
+ if (incoming.get(1)) {
+ {
+ org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.ldapFilter = new ArrayList<LdapFilter>(_list103.size);
+ LdapFilter _elem104;
+ for (int _i105 = 0; _i105 < _list103.size; ++_i105)
+ {
+ _elem104 = new LdapFilter();
+ _elem104.read(iprot);
+ struct.ldapFilter.add(_elem104);
+ }
+ }
+ struct.setLdapFilterIsSet(true);
+ }
+ }
+ }
+
+}
+
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
index 53bfd52..517614e 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
@@ -34,7 +34,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-05-11")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23")
public class SatelliteServer {
public interface Iface {
@@ -127,6 +127,8 @@ public class SatelliteServer {
public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+
}
public interface AsyncIface {
@@ -219,6 +221,8 @@ public class SatelliteServer {
public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
@@ -1521,6 +1525,35 @@ public class SatelliteServer {
return;
}
+ public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ {
+ send_getPredefinedData(userToken);
+ return recv_getPredefinedData();
+ }
+
+ public void send_getPredefinedData(String userToken) throws org.apache.thrift.TException
+ {
+ getPredefinedData_args args = new getPredefinedData_args();
+ args.setUserToken(userToken);
+ sendBase("getPredefinedData", args);
+ }
+
+ public PredefinedData recv_getPredefinedData() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ {
+ getPredefinedData_result result = new getPredefinedData_result();
+ receiveBase(result, "getPredefinedData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.authError != null) {
+ throw result.authError;
+ }
+ if (result.serverError != null) {
+ throw result.serverError;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPredefinedData 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<AsyncClient> {
@@ -3058,6 +3091,38 @@ public class SatelliteServer {
}
}
+ public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPredefinedData_call method_call = new getPredefinedData_call(userToken, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getPredefinedData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String userToken;
+ public getPredefinedData_call(String userToken, 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.userToken = userToken;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPredefinedData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getPredefinedData_args args = new getPredefinedData_args();
+ args.setUserToken(userToken);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public PredefinedData getResult() throws TAuthorizationException, TInvocationException, 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_getPredefinedData();
+ }
+ }
+
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
@@ -3115,6 +3180,7 @@ public class SatelliteServer {
processMap.put("writeLecturePermissions", new writeLecturePermissions());
processMap.put("getLecturePermissions", new getLecturePermissions());
processMap.put("setLectureOwner", new setLectureOwner());
+ processMap.put("getPredefinedData", new getPredefinedData());
return processMap;
}
@@ -4261,6 +4327,32 @@ public class SatelliteServer {
}
}
+ public static class getPredefinedData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPredefinedData_args> {
+ public getPredefinedData() {
+ super("getPredefinedData");
+ }
+
+ public getPredefinedData_args getEmptyArgsInstance() {
+ return new getPredefinedData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getPredefinedData_result getResult(I iface, getPredefinedData_args args) throws org.apache.thrift.TException {
+ getPredefinedData_result result = new getPredefinedData_result();
+ try {
+ result.success = iface.getPredefinedData(args.userToken);
+ } catch (TAuthorizationException authError) {
+ result.authError = authError;
+ } catch (TInvocationException serverError) {
+ result.serverError = serverError;
+ }
+ return result;
+ }
+ }
+
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
@@ -4318,6 +4410,7 @@ public class SatelliteServer {
processMap.put("writeLecturePermissions", new writeLecturePermissions());
processMap.put("getLecturePermissions", new getLecturePermissions());
processMap.put("setLectureOwner", new setLectureOwner());
+ processMap.put("getPredefinedData", new getPredefinedData());
return processMap;
}
@@ -7059,6 +7152,68 @@ public class SatelliteServer {
}
}
+ public static class getPredefinedData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPredefinedData_args, PredefinedData> {
+ public getPredefinedData() {
+ super("getPredefinedData");
+ }
+
+ public getPredefinedData_args getEmptyArgsInstance() {
+ return new getPredefinedData_args();
+ }
+
+ public AsyncMethodCallback<PredefinedData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<PredefinedData>() {
+ public void onComplete(PredefinedData o) {
+ getPredefinedData_result result = new getPredefinedData_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;
+ getPredefinedData_result result = new getPredefinedData_result();
+ if (e instanceof TAuthorizationException) {
+ result.authError = (TAuthorizationException) e;
+ result.setAuthErrorIsSet(true);
+ msg = result;
+ }
+ else if (e instanceof TInvocationException) {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(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, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> resultHandler) throws TException {
+ iface.getPredefinedData(args.userToken,resultHandler);
+ }
+ }
+
}
public static class getVersion_args implements org.apache.thrift.TBase<getVersion_args, getVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVersion_args> {
@@ -9679,13 +9834,13 @@ public class SatelliteServer {
case 4: // BLOCK_HASHES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list186 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list186.size);
- ByteBuffer _elem187;
- for (int _i188 = 0; _i188 < _list186.size; ++_i188)
+ org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list218.size);
+ ByteBuffer _elem219;
+ for (int _i220 = 0; _i220 < _list218.size; ++_i220)
{
- _elem187 = iprot.readBinary();
- struct.blockHashes.add(_elem187);
+ _elem219 = iprot.readBinary();
+ struct.blockHashes.add(_elem219);
}
iprot.readListEnd();
}
@@ -9734,9 +9889,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size()));
- for (ByteBuffer _iter189 : struct.blockHashes)
+ for (ByteBuffer _iter221 : struct.blockHashes)
{
- oprot.writeBinary(_iter189);
+ oprot.writeBinary(_iter221);
}
oprot.writeListEnd();
}
@@ -9793,9 +9948,9 @@ public class SatelliteServer {
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter190 : struct.blockHashes)
+ for (ByteBuffer _iter222 : struct.blockHashes)
{
- oprot.writeBinary(_iter190);
+ oprot.writeBinary(_iter222);
}
}
}
@@ -9822,13 +9977,13 @@ public class SatelliteServer {
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list191.size);
- ByteBuffer _elem192;
- for (int _i193 = 0; _i193 < _list191.size; ++_i193)
+ org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list223.size);
+ ByteBuffer _elem224;
+ for (int _i225 = 0; _i225 < _list223.size; ++_i225)
{
- _elem192 = iprot.readBinary();
- struct.blockHashes.add(_elem192);
+ _elem224 = iprot.readBinary();
+ struct.blockHashes.add(_elem224);
}
}
struct.setBlockHashesIsSet(true);
@@ -11121,13 +11276,13 @@ public class SatelliteServer {
case 2: // BLOCK_HASHES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list194 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list194.size);
- ByteBuffer _elem195;
- for (int _i196 = 0; _i196 < _list194.size; ++_i196)
+ org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list226.size);
+ ByteBuffer _elem227;
+ for (int _i228 = 0; _i228 < _list226.size; ++_i228)
{
- _elem195 = iprot.readBinary();
- struct.blockHashes.add(_elem195);
+ _elem227 = iprot.readBinary();
+ struct.blockHashes.add(_elem227);
}
iprot.readListEnd();
}
@@ -11168,9 +11323,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size()));
- for (ByteBuffer _iter197 : struct.blockHashes)
+ for (ByteBuffer _iter229 : struct.blockHashes)
{
- oprot.writeBinary(_iter197);
+ oprot.writeBinary(_iter229);
}
oprot.writeListEnd();
}
@@ -11215,9 +11370,9 @@ public class SatelliteServer {
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter198 : struct.blockHashes)
+ for (ByteBuffer _iter230 : struct.blockHashes)
{
- oprot.writeBinary(_iter198);
+ oprot.writeBinary(_iter230);
}
}
}
@@ -11236,13 +11391,13 @@ public class SatelliteServer {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list199.size);
- ByteBuffer _elem200;
- for (int _i201 = 0; _i201 < _list199.size; ++_i201)
+ org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list231.size);
+ ByteBuffer _elem232;
+ for (int _i233 = 0; _i233 < _list231.size; ++_i233)
{
- _elem200 = iprot.readBinary();
- struct.blockHashes.add(_elem200);
+ _elem232 = iprot.readBinary();
+ struct.blockHashes.add(_elem232);
}
}
struct.setBlockHashesIsSet(true);
@@ -19757,14 +19912,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list202 = iprot.readListBegin();
- struct.success = new ArrayList<UserInfo>(_list202.size);
- UserInfo _elem203;
- for (int _i204 = 0; _i204 < _list202.size; ++_i204)
+ org.apache.thrift.protocol.TList _list234 = iprot.readListBegin();
+ struct.success = new ArrayList<UserInfo>(_list234.size);
+ UserInfo _elem235;
+ for (int _i236 = 0; _i236 < _list234.size; ++_i236)
{
- _elem203 = new UserInfo();
- _elem203.read(iprot);
- struct.success.add(_elem203);
+ _elem235 = new UserInfo();
+ _elem235.read(iprot);
+ struct.success.add(_elem235);
}
iprot.readListEnd();
}
@@ -19810,9 +19965,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (UserInfo _iter205 : struct.success)
+ for (UserInfo _iter237 : struct.success)
{
- _iter205.write(oprot);
+ _iter237.write(oprot);
}
oprot.writeListEnd();
}
@@ -19859,9 +20014,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (UserInfo _iter206 : struct.success)
+ for (UserInfo _iter238 : struct.success)
{
- _iter206.write(oprot);
+ _iter238.write(oprot);
}
}
}
@@ -19879,14 +20034,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<UserInfo>(_list207.size);
- UserInfo _elem208;
- for (int _i209 = 0; _i209 < _list207.size; ++_i209)
+ org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<UserInfo>(_list239.size);
+ UserInfo _elem240;
+ for (int _i241 = 0; _i241 < _list239.size; ++_i241)
{
- _elem208 = new UserInfo();
- _elem208.read(iprot);
- struct.success.add(_elem208);
+ _elem240 = new UserInfo();
+ _elem240.read(iprot);
+ struct.success.add(_elem240);
}
}
struct.setSuccessIsSet(true);
@@ -22352,14 +22507,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list210 = iprot.readListBegin();
- struct.success = new ArrayList<OperatingSystem>(_list210.size);
- OperatingSystem _elem211;
- for (int _i212 = 0; _i212 < _list210.size; ++_i212)
+ org.apache.thrift.protocol.TList _list242 = iprot.readListBegin();
+ struct.success = new ArrayList<OperatingSystem>(_list242.size);
+ OperatingSystem _elem243;
+ for (int _i244 = 0; _i244 < _list242.size; ++_i244)
{
- _elem211 = new OperatingSystem();
- _elem211.read(iprot);
- struct.success.add(_elem211);
+ _elem243 = new OperatingSystem();
+ _elem243.read(iprot);
+ struct.success.add(_elem243);
}
iprot.readListEnd();
}
@@ -22387,9 +22542,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (OperatingSystem _iter213 : struct.success)
+ for (OperatingSystem _iter245 : struct.success)
{
- _iter213.write(oprot);
+ _iter245.write(oprot);
}
oprot.writeListEnd();
}
@@ -22420,9 +22575,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (OperatingSystem _iter214 : struct.success)
+ for (OperatingSystem _iter246 : struct.success)
{
- _iter214.write(oprot);
+ _iter246.write(oprot);
}
}
}
@@ -22434,14 +22589,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<OperatingSystem>(_list215.size);
- OperatingSystem _elem216;
- for (int _i217 = 0; _i217 < _list215.size; ++_i217)
+ org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<OperatingSystem>(_list247.size);
+ OperatingSystem _elem248;
+ for (int _i249 = 0; _i249 < _list247.size; ++_i249)
{
- _elem216 = new OperatingSystem();
- _elem216.read(iprot);
- struct.success.add(_elem216);
+ _elem248 = new OperatingSystem();
+ _elem248.read(iprot);
+ struct.success.add(_elem248);
}
}
struct.setSuccessIsSet(true);
@@ -23015,14 +23170,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
- struct.success = new ArrayList<Virtualizer>(_list218.size);
- Virtualizer _elem219;
- for (int _i220 = 0; _i220 < _list218.size; ++_i220)
+ org.apache.thrift.protocol.TList _list250 = iprot.readListBegin();
+ struct.success = new ArrayList<Virtualizer>(_list250.size);
+ Virtualizer _elem251;
+ for (int _i252 = 0; _i252 < _list250.size; ++_i252)
{
- _elem219 = new Virtualizer();
- _elem219.read(iprot);
- struct.success.add(_elem219);
+ _elem251 = new Virtualizer();
+ _elem251.read(iprot);
+ struct.success.add(_elem251);
}
iprot.readListEnd();
}
@@ -23050,9 +23205,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Virtualizer _iter221 : struct.success)
+ for (Virtualizer _iter253 : struct.success)
{
- _iter221.write(oprot);
+ _iter253.write(oprot);
}
oprot.writeListEnd();
}
@@ -23083,9 +23238,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Virtualizer _iter222 : struct.success)
+ for (Virtualizer _iter254 : struct.success)
{
- _iter222.write(oprot);
+ _iter254.write(oprot);
}
}
}
@@ -23097,14 +23252,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Virtualizer>(_list223.size);
- Virtualizer _elem224;
- for (int _i225 = 0; _i225 < _list223.size; ++_i225)
+ org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Virtualizer>(_list255.size);
+ Virtualizer _elem256;
+ for (int _i257 = 0; _i257 < _list255.size; ++_i257)
{
- _elem224 = new Virtualizer();
- _elem224.read(iprot);
- struct.success.add(_elem224);
+ _elem256 = new Virtualizer();
+ _elem256.read(iprot);
+ struct.success.add(_elem256);
}
}
struct.setSuccessIsSet(true);
@@ -23678,14 +23833,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
- struct.success = new ArrayList<Organization>(_list226.size);
- Organization _elem227;
- for (int _i228 = 0; _i228 < _list226.size; ++_i228)
+ org.apache.thrift.protocol.TList _list258 = iprot.readListBegin();
+ struct.success = new ArrayList<Organization>(_list258.size);
+ Organization _elem259;
+ for (int _i260 = 0; _i260 < _list258.size; ++_i260)
{
- _elem227 = new Organization();
- _elem227.read(iprot);
- struct.success.add(_elem227);
+ _elem259 = new Organization();
+ _elem259.read(iprot);
+ struct.success.add(_elem259);
}
iprot.readListEnd();
}
@@ -23713,9 +23868,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Organization _iter229 : struct.success)
+ for (Organization _iter261 : struct.success)
{
- _iter229.write(oprot);
+ _iter261.write(oprot);
}
oprot.writeListEnd();
}
@@ -23746,9 +23901,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Organization _iter230 : struct.success)
+ for (Organization _iter262 : struct.success)
{
- _iter230.write(oprot);
+ _iter262.write(oprot);
}
}
}
@@ -23760,14 +23915,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Organization>(_list231.size);
- Organization _elem232;
- for (int _i233 = 0; _i233 < _list231.size; ++_i233)
+ org.apache.thrift.protocol.TList _list263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Organization>(_list263.size);
+ Organization _elem264;
+ for (int _i265 = 0; _i265 < _list263.size; ++_i265)
{
- _elem232 = new Organization();
- _elem232.read(iprot);
- struct.success.add(_elem232);
+ _elem264 = new Organization();
+ _elem264.read(iprot);
+ struct.success.add(_elem264);
}
}
struct.setSuccessIsSet(true);
@@ -24341,14 +24496,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list234 = iprot.readListBegin();
- struct.success = new ArrayList<Location>(_list234.size);
- Location _elem235;
- for (int _i236 = 0; _i236 < _list234.size; ++_i236)
+ org.apache.thrift.protocol.TList _list266 = iprot.readListBegin();
+ struct.success = new ArrayList<Location>(_list266.size);
+ Location _elem267;
+ for (int _i268 = 0; _i268 < _list266.size; ++_i268)
{
- _elem235 = new Location();
- _elem235.read(iprot);
- struct.success.add(_elem235);
+ _elem267 = new Location();
+ _elem267.read(iprot);
+ struct.success.add(_elem267);
}
iprot.readListEnd();
}
@@ -24376,9 +24531,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Location _iter237 : struct.success)
+ for (Location _iter269 : struct.success)
{
- _iter237.write(oprot);
+ _iter269.write(oprot);
}
oprot.writeListEnd();
}
@@ -24409,9 +24564,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Location _iter238 : struct.success)
+ for (Location _iter270 : struct.success)
{
- _iter238.write(oprot);
+ _iter270.write(oprot);
}
}
}
@@ -24423,14 +24578,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Location>(_list239.size);
- Location _elem240;
- for (int _i241 = 0; _i241 < _list239.size; ++_i241)
+ org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Location>(_list271.size);
+ Location _elem272;
+ for (int _i273 = 0; _i273 < _list271.size; ++_i273)
{
- _elem240 = new Location();
- _elem240.read(iprot);
- struct.success.add(_elem240);
+ _elem272 = new Location();
+ _elem272.read(iprot);
+ struct.success.add(_elem272);
}
}
struct.setSuccessIsSet(true);
@@ -25539,13 +25694,13 @@ public class SatelliteServer {
case 2: // TAG_SEARCH
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list242 = iprot.readListBegin();
- struct.tagSearch = new ArrayList<String>(_list242.size);
- String _elem243;
- for (int _i244 = 0; _i244 < _list242.size; ++_i244)
+ org.apache.thrift.protocol.TList _list274 = iprot.readListBegin();
+ struct.tagSearch = new ArrayList<String>(_list274.size);
+ String _elem275;
+ for (int _i276 = 0; _i276 < _list274.size; ++_i276)
{
- _elem243 = iprot.readString();
- struct.tagSearch.add(_elem243);
+ _elem275 = iprot.readString();
+ struct.tagSearch.add(_elem275);
}
iprot.readListEnd();
}
@@ -25586,9 +25741,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size()));
- for (String _iter245 : struct.tagSearch)
+ for (String _iter277 : struct.tagSearch)
{
- oprot.writeString(_iter245);
+ oprot.writeString(_iter277);
}
oprot.writeListEnd();
}
@@ -25631,9 +25786,9 @@ public class SatelliteServer {
if (struct.isSetTagSearch()) {
{
oprot.writeI32(struct.tagSearch.size());
- for (String _iter246 : struct.tagSearch)
+ for (String _iter278 : struct.tagSearch)
{
- oprot.writeString(_iter246);
+ oprot.writeString(_iter278);
}
}
}
@@ -25652,13 +25807,13 @@ public class SatelliteServer {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tagSearch = new ArrayList<String>(_list247.size);
- String _elem248;
- for (int _i249 = 0; _i249 < _list247.size; ++_i249)
+ org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tagSearch = new ArrayList<String>(_list279.size);
+ String _elem280;
+ for (int _i281 = 0; _i281 < _list279.size; ++_i281)
{
- _elem248 = iprot.readString();
- struct.tagSearch.add(_elem248);
+ _elem280 = iprot.readString();
+ struct.tagSearch.add(_elem280);
}
}
struct.setTagSearchIsSet(true);
@@ -26152,14 +26307,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list250 = iprot.readListBegin();
- struct.success = new ArrayList<ImageSummaryRead>(_list250.size);
- ImageSummaryRead _elem251;
- for (int _i252 = 0; _i252 < _list250.size; ++_i252)
+ org.apache.thrift.protocol.TList _list282 = iprot.readListBegin();
+ struct.success = new ArrayList<ImageSummaryRead>(_list282.size);
+ ImageSummaryRead _elem283;
+ for (int _i284 = 0; _i284 < _list282.size; ++_i284)
{
- _elem251 = new ImageSummaryRead();
- _elem251.read(iprot);
- struct.success.add(_elem251);
+ _elem283 = new ImageSummaryRead();
+ _elem283.read(iprot);
+ struct.success.add(_elem283);
}
iprot.readListEnd();
}
@@ -26205,9 +26360,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (ImageSummaryRead _iter253 : struct.success)
+ for (ImageSummaryRead _iter285 : struct.success)
{
- _iter253.write(oprot);
+ _iter285.write(oprot);
}
oprot.writeListEnd();
}
@@ -26254,9 +26409,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (ImageSummaryRead _iter254 : struct.success)
+ for (ImageSummaryRead _iter286 : struct.success)
{
- _iter254.write(oprot);
+ _iter286.write(oprot);
}
}
}
@@ -26274,14 +26429,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<ImageSummaryRead>(_list255.size);
- ImageSummaryRead _elem256;
- for (int _i257 = 0; _i257 < _list255.size; ++_i257)
+ org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<ImageSummaryRead>(_list287.size);
+ ImageSummaryRead _elem288;
+ for (int _i289 = 0; _i289 < _list287.size; ++_i289)
{
- _elem256 = new ImageSummaryRead();
- _elem256.read(iprot);
- struct.success.add(_elem256);
+ _elem288 = new ImageSummaryRead();
+ _elem288.read(iprot);
+ struct.success.add(_elem288);
}
}
struct.setSuccessIsSet(true);
@@ -33388,16 +33543,16 @@ public class SatelliteServer {
case 3: // PERMISSIONS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin();
- struct.permissions = new HashMap<String,ImagePermissions>(2*_map258.size);
- String _key259;
- ImagePermissions _val260;
- for (int _i261 = 0; _i261 < _map258.size; ++_i261)
+ org.apache.thrift.protocol.TMap _map290 = iprot.readMapBegin();
+ struct.permissions = new HashMap<String,ImagePermissions>(2*_map290.size);
+ String _key291;
+ ImagePermissions _val292;
+ for (int _i293 = 0; _i293 < _map290.size; ++_i293)
{
- _key259 = iprot.readString();
- _val260 = new ImagePermissions();
- _val260.read(iprot);
- struct.permissions.put(_key259, _val260);
+ _key291 = iprot.readString();
+ _val292 = new ImagePermissions();
+ _val292.read(iprot);
+ struct.permissions.put(_key291, _val292);
}
iprot.readMapEnd();
}
@@ -33435,10 +33590,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size()));
- for (Map.Entry<String, ImagePermissions> _iter262 : struct.permissions.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter294 : struct.permissions.entrySet())
{
- oprot.writeString(_iter262.getKey());
- _iter262.getValue().write(oprot);
+ oprot.writeString(_iter294.getKey());
+ _iter294.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -33481,10 +33636,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, ImagePermissions> _iter263 : struct.permissions.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter295 : struct.permissions.entrySet())
{
- oprot.writeString(_iter263.getKey());
- _iter263.getValue().write(oprot);
+ oprot.writeString(_iter295.getKey());
+ _iter295.getValue().write(oprot);
}
}
}
@@ -33504,16 +33659,16 @@ public class SatelliteServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map264 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.permissions = new HashMap<String,ImagePermissions>(2*_map264.size);
- String _key265;
- ImagePermissions _val266;
- for (int _i267 = 0; _i267 < _map264.size; ++_i267)
+ org.apache.thrift.protocol.TMap _map296 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.permissions = new HashMap<String,ImagePermissions>(2*_map296.size);
+ String _key297;
+ ImagePermissions _val298;
+ for (int _i299 = 0; _i299 < _map296.size; ++_i299)
{
- _key265 = iprot.readString();
- _val266 = new ImagePermissions();
- _val266.read(iprot);
- struct.permissions.put(_key265, _val266);
+ _key297 = iprot.readString();
+ _val298 = new ImagePermissions();
+ _val298.read(iprot);
+ struct.permissions.put(_key297, _val298);
}
}
struct.setPermissionsIsSet(true);
@@ -35133,16 +35288,16 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map268 = iprot.readMapBegin();
- struct.success = new HashMap<String,ImagePermissions>(2*_map268.size);
- String _key269;
- ImagePermissions _val270;
- for (int _i271 = 0; _i271 < _map268.size; ++_i271)
+ org.apache.thrift.protocol.TMap _map300 = iprot.readMapBegin();
+ struct.success = new HashMap<String,ImagePermissions>(2*_map300.size);
+ String _key301;
+ ImagePermissions _val302;
+ for (int _i303 = 0; _i303 < _map300.size; ++_i303)
{
- _key269 = iprot.readString();
- _val270 = new ImagePermissions();
- _val270.read(iprot);
- struct.success.put(_key269, _val270);
+ _key301 = iprot.readString();
+ _val302 = new ImagePermissions();
+ _val302.read(iprot);
+ struct.success.put(_key301, _val302);
}
iprot.readMapEnd();
}
@@ -35197,10 +35352,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Map.Entry<String, ImagePermissions> _iter272 : struct.success.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter304 : struct.success.entrySet())
{
- oprot.writeString(_iter272.getKey());
- _iter272.getValue().write(oprot);
+ oprot.writeString(_iter304.getKey());
+ _iter304.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -35255,10 +35410,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, ImagePermissions> _iter273 : struct.success.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter305 : struct.success.entrySet())
{
- oprot.writeString(_iter273.getKey());
- _iter273.getValue().write(oprot);
+ oprot.writeString(_iter305.getKey());
+ _iter305.getValue().write(oprot);
}
}
}
@@ -35279,16 +35434,16 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new HashMap<String,ImagePermissions>(2*_map274.size);
- String _key275;
- ImagePermissions _val276;
- for (int _i277 = 0; _i277 < _map274.size; ++_i277)
+ org.apache.thrift.protocol.TMap _map306 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new HashMap<String,ImagePermissions>(2*_map306.size);
+ String _key307;
+ ImagePermissions _val308;
+ for (int _i309 = 0; _i309 < _map306.size; ++_i309)
{
- _key275 = iprot.readString();
- _val276 = new ImagePermissions();
- _val276.read(iprot);
- struct.success.put(_key275, _val276);
+ _key307 = iprot.readString();
+ _val308 = new ImagePermissions();
+ _val308.read(iprot);
+ struct.success.put(_key307, _val308);
}
}
struct.setSuccessIsSet(true);
@@ -45897,14 +46052,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
- struct.success = new ArrayList<LectureSummary>(_list278.size);
- LectureSummary _elem279;
- for (int _i280 = 0; _i280 < _list278.size; ++_i280)
+ org.apache.thrift.protocol.TList _list310 = iprot.readListBegin();
+ struct.success = new ArrayList<LectureSummary>(_list310.size);
+ LectureSummary _elem311;
+ for (int _i312 = 0; _i312 < _list310.size; ++_i312)
{
- _elem279 = new LectureSummary();
- _elem279.read(iprot);
- struct.success.add(_elem279);
+ _elem311 = new LectureSummary();
+ _elem311.read(iprot);
+ struct.success.add(_elem311);
}
iprot.readListEnd();
}
@@ -45950,9 +46105,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (LectureSummary _iter281 : struct.success)
+ for (LectureSummary _iter313 : struct.success)
{
- _iter281.write(oprot);
+ _iter313.write(oprot);
}
oprot.writeListEnd();
}
@@ -45999,9 +46154,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (LectureSummary _iter282 : struct.success)
+ for (LectureSummary _iter314 : struct.success)
{
- _iter282.write(oprot);
+ _iter314.write(oprot);
}
}
}
@@ -46019,14 +46174,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<LectureSummary>(_list283.size);
- LectureSummary _elem284;
- for (int _i285 = 0; _i285 < _list283.size; ++_i285)
+ org.apache.thrift.protocol.TList _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<LectureSummary>(_list315.size);
+ LectureSummary _elem316;
+ for (int _i317 = 0; _i317 < _list315.size; ++_i317)
{
- _elem284 = new LectureSummary();
- _elem284.read(iprot);
- struct.success.add(_elem284);
+ _elem316 = new LectureSummary();
+ _elem316.read(iprot);
+ struct.success.add(_elem316);
}
}
struct.setSuccessIsSet(true);
@@ -48743,16 +48898,16 @@ public class SatelliteServer {
case 3: // PERMISSIONS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map286 = iprot.readMapBegin();
- struct.permissions = new HashMap<String,LecturePermissions>(2*_map286.size);
- String _key287;
- LecturePermissions _val288;
- for (int _i289 = 0; _i289 < _map286.size; ++_i289)
+ org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin();
+ struct.permissions = new HashMap<String,LecturePermissions>(2*_map318.size);
+ String _key319;
+ LecturePermissions _val320;
+ for (int _i321 = 0; _i321 < _map318.size; ++_i321)
{
- _key287 = iprot.readString();
- _val288 = new LecturePermissions();
- _val288.read(iprot);
- struct.permissions.put(_key287, _val288);
+ _key319 = iprot.readString();
+ _val320 = new LecturePermissions();
+ _val320.read(iprot);
+ struct.permissions.put(_key319, _val320);
}
iprot.readMapEnd();
}
@@ -48790,10 +48945,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size()));
- for (Map.Entry<String, LecturePermissions> _iter290 : struct.permissions.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter322 : struct.permissions.entrySet())
{
- oprot.writeString(_iter290.getKey());
- _iter290.getValue().write(oprot);
+ oprot.writeString(_iter322.getKey());
+ _iter322.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -48836,10 +48991,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, LecturePermissions> _iter291 : struct.permissions.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter323 : struct.permissions.entrySet())
{
- oprot.writeString(_iter291.getKey());
- _iter291.getValue().write(oprot);
+ oprot.writeString(_iter323.getKey());
+ _iter323.getValue().write(oprot);
}
}
}
@@ -48859,16 +49014,16 @@ public class SatelliteServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map292 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.permissions = new HashMap<String,LecturePermissions>(2*_map292.size);
- String _key293;
- LecturePermissions _val294;
- for (int _i295 = 0; _i295 < _map292.size; ++_i295)
+ org.apache.thrift.protocol.TMap _map324 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.permissions = new HashMap<String,LecturePermissions>(2*_map324.size);
+ String _key325;
+ LecturePermissions _val326;
+ for (int _i327 = 0; _i327 < _map324.size; ++_i327)
{
- _key293 = iprot.readString();
- _val294 = new LecturePermissions();
- _val294.read(iprot);
- struct.permissions.put(_key293, _val294);
+ _key325 = iprot.readString();
+ _val326 = new LecturePermissions();
+ _val326.read(iprot);
+ struct.permissions.put(_key325, _val326);
}
}
struct.setPermissionsIsSet(true);
@@ -50488,16 +50643,16 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map296 = iprot.readMapBegin();
- struct.success = new HashMap<String,LecturePermissions>(2*_map296.size);
- String _key297;
- LecturePermissions _val298;
- for (int _i299 = 0; _i299 < _map296.size; ++_i299)
+ org.apache.thrift.protocol.TMap _map328 = iprot.readMapBegin();
+ struct.success = new HashMap<String,LecturePermissions>(2*_map328.size);
+ String _key329;
+ LecturePermissions _val330;
+ for (int _i331 = 0; _i331 < _map328.size; ++_i331)
{
- _key297 = iprot.readString();
- _val298 = new LecturePermissions();
- _val298.read(iprot);
- struct.success.put(_key297, _val298);
+ _key329 = iprot.readString();
+ _val330 = new LecturePermissions();
+ _val330.read(iprot);
+ struct.success.put(_key329, _val330);
}
iprot.readMapEnd();
}
@@ -50552,10 +50707,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Map.Entry<String, LecturePermissions> _iter300 : struct.success.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter332 : struct.success.entrySet())
{
- oprot.writeString(_iter300.getKey());
- _iter300.getValue().write(oprot);
+ oprot.writeString(_iter332.getKey());
+ _iter332.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -50610,10 +50765,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, LecturePermissions> _iter301 : struct.success.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter333 : struct.success.entrySet())
{
- oprot.writeString(_iter301.getKey());
- _iter301.getValue().write(oprot);
+ oprot.writeString(_iter333.getKey());
+ _iter333.getValue().write(oprot);
}
}
}
@@ -50634,16 +50789,16 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map302 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new HashMap<String,LecturePermissions>(2*_map302.size);
- String _key303;
- LecturePermissions _val304;
- for (int _i305 = 0; _i305 < _map302.size; ++_i305)
+ org.apache.thrift.protocol.TMap _map334 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new HashMap<String,LecturePermissions>(2*_map334.size);
+ String _key335;
+ LecturePermissions _val336;
+ for (int _i337 = 0; _i337 < _map334.size; ++_i337)
{
- _key303 = iprot.readString();
- _val304 = new LecturePermissions();
- _val304.read(iprot);
- struct.success.put(_key303, _val304);
+ _key335 = iprot.readString();
+ _val336 = new LecturePermissions();
+ _val336.read(iprot);
+ struct.success.put(_key335, _val336);
}
}
struct.setSuccessIsSet(true);
@@ -51816,4 +51971,945 @@ public class SatelliteServer {
}
+ public static class getPredefinedData_args implements org.apache.thrift.TBase<getPredefinedData_args, getPredefinedData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_args");
+
+ private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getPredefinedData_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPredefinedData_argsTupleSchemeFactory());
+ }
+
+ public String userToken; // 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 {
+ USER_TOKEN((short)1, "userToken");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // USER_TOKEN
+ return USER_TOKEN;
+ 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.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", 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(getPredefinedData_args.class, metaDataMap);
+ }
+
+ public getPredefinedData_args() {
+ }
+
+ public getPredefinedData_args(
+ String userToken)
+ {
+ this();
+ this.userToken = userToken;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPredefinedData_args(getPredefinedData_args other) {
+ if (other.isSetUserToken()) {
+ this.userToken = other.userToken;
+ }
+ }
+
+ public getPredefinedData_args deepCopy() {
+ return new getPredefinedData_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.userToken = null;
+ }
+
+ public String getUserToken() {
+ return this.userToken;
+ }
+
+ public getPredefinedData_args setUserToken(String userToken) {
+ this.userToken = userToken;
+ return this;
+ }
+
+ public void unsetUserToken() {
+ this.userToken = null;
+ }
+
+ /** Returns true if field userToken is set (has been assigned a value) and false otherwise */
+ public boolean isSetUserToken() {
+ return this.userToken != null;
+ }
+
+ public void setUserTokenIsSet(boolean value) {
+ if (!value) {
+ this.userToken = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USER_TOKEN:
+ if (value == null) {
+ unsetUserToken();
+ } else {
+ setUserToken((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USER_TOKEN:
+ return getUserToken();
+
+ }
+ 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 USER_TOKEN:
+ return isSetUserToken();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPredefinedData_args)
+ return this.equals((getPredefinedData_args)that);
+ return false;
+ }
+
+ public boolean equals(getPredefinedData_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_userToken = true && this.isSetUserToken();
+ boolean that_present_userToken = true && that.isSetUserToken();
+ if (this_present_userToken || that_present_userToken) {
+ if (!(this_present_userToken && that_present_userToken))
+ return false;
+ if (!this.userToken.equals(that.userToken))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_userToken = true && (isSetUserToken());
+ list.add(present_userToken);
+ if (present_userToken)
+ list.add(userToken);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(getPredefinedData_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUserToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken);
+ 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("getPredefinedData_args(");
+ boolean first = true;
+
+ sb.append("userToken:");
+ if (this.userToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userToken);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getPredefinedData_argsStandardSchemeFactory implements SchemeFactory {
+ public getPredefinedData_argsStandardScheme getScheme() {
+ return new getPredefinedData_argsStandardScheme();
+ }
+ }
+
+ private static class getPredefinedData_argsStandardScheme extends StandardScheme<getPredefinedData_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // USER_TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.userToken = iprot.readString();
+ struct.setUserTokenIsSet(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, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.userToken != null) {
+ oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC);
+ oprot.writeString(struct.userToken);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPredefinedData_argsTupleSchemeFactory implements SchemeFactory {
+ public getPredefinedData_argsTupleScheme getScheme() {
+ return new getPredefinedData_argsTupleScheme();
+ }
+ }
+
+ private static class getPredefinedData_argsTupleScheme extends TupleScheme<getPredefinedData_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetUserToken()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetUserToken()) {
+ oprot.writeString(struct.userToken);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.userToken = iprot.readString();
+ struct.setUserTokenIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getPredefinedData_result implements org.apache.thrift.TBase<getPredefinedData_result, getPredefinedData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getPredefinedData_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPredefinedData_resultTupleSchemeFactory());
+ }
+
+ public PredefinedData success; // required
+ public TAuthorizationException authError; // required
+ public TInvocationException serverError; // 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"),
+ AUTH_ERROR((short)1, "authError"),
+ SERVER_ERROR((short)2, "serverError");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // AUTH_ERROR
+ return AUTH_ERROR;
+ case 2: // SERVER_ERROR
+ return SERVER_ERROR;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PredefinedData.class)));
+ tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", 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(getPredefinedData_result.class, metaDataMap);
+ }
+
+ public getPredefinedData_result() {
+ }
+
+ public getPredefinedData_result(
+ PredefinedData success,
+ TAuthorizationException authError,
+ TInvocationException serverError)
+ {
+ this();
+ this.success = success;
+ this.authError = authError;
+ this.serverError = serverError;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPredefinedData_result(getPredefinedData_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new PredefinedData(other.success);
+ }
+ if (other.isSetAuthError()) {
+ this.authError = new TAuthorizationException(other.authError);
+ }
+ if (other.isSetServerError()) {
+ this.serverError = new TInvocationException(other.serverError);
+ }
+ }
+
+ public getPredefinedData_result deepCopy() {
+ return new getPredefinedData_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.authError = null;
+ this.serverError = null;
+ }
+
+ public PredefinedData getSuccess() {
+ return this.success;
+ }
+
+ public getPredefinedData_result setSuccess(PredefinedData success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public TAuthorizationException getAuthError() {
+ return this.authError;
+ }
+
+ public getPredefinedData_result setAuthError(TAuthorizationException authError) {
+ this.authError = authError;
+ return this;
+ }
+
+ public void unsetAuthError() {
+ this.authError = null;
+ }
+
+ /** Returns true if field authError is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthError() {
+ return this.authError != null;
+ }
+
+ public void setAuthErrorIsSet(boolean value) {
+ if (!value) {
+ this.authError = null;
+ }
+ }
+
+ public TInvocationException getServerError() {
+ return this.serverError;
+ }
+
+ public getPredefinedData_result setServerError(TInvocationException serverError) {
+ this.serverError = serverError;
+ return this;
+ }
+
+ public void unsetServerError() {
+ this.serverError = null;
+ }
+
+ /** Returns true if field serverError is set (has been assigned a value) and false otherwise */
+ public boolean isSetServerError() {
+ return this.serverError != null;
+ }
+
+ public void setServerErrorIsSet(boolean value) {
+ if (!value) {
+ this.serverError = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((PredefinedData)value);
+ }
+ break;
+
+ case AUTH_ERROR:
+ if (value == null) {
+ unsetAuthError();
+ } else {
+ setAuthError((TAuthorizationException)value);
+ }
+ break;
+
+ case SERVER_ERROR:
+ if (value == null) {
+ unsetServerError();
+ } else {
+ setServerError((TInvocationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case AUTH_ERROR:
+ return getAuthError();
+
+ case SERVER_ERROR:
+ return getServerError();
+
+ }
+ 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();
+ case AUTH_ERROR:
+ return isSetAuthError();
+ case SERVER_ERROR:
+ return isSetServerError();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPredefinedData_result)
+ return this.equals((getPredefinedData_result)that);
+ return false;
+ }
+
+ public boolean equals(getPredefinedData_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_authError = true && this.isSetAuthError();
+ boolean that_present_authError = true && that.isSetAuthError();
+ if (this_present_authError || that_present_authError) {
+ if (!(this_present_authError && that_present_authError))
+ return false;
+ if (!this.authError.equals(that.authError))
+ return false;
+ }
+
+ boolean this_present_serverError = true && this.isSetServerError();
+ boolean that_present_serverError = true && that.isSetServerError();
+ if (this_present_serverError || that_present_serverError) {
+ if (!(this_present_serverError && that_present_serverError))
+ return false;
+ if (!this.serverError.equals(that.serverError))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_success = true && (isSetSuccess());
+ list.add(present_success);
+ if (present_success)
+ list.add(success);
+
+ boolean present_authError = true && (isSetAuthError());
+ list.add(present_authError);
+ if (present_authError)
+ list.add(authError);
+
+ boolean present_serverError = true && (isSetServerError());
+ list.add(present_serverError);
+ if (present_serverError)
+ list.add(serverError);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(getPredefinedData_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;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthError()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetServerError()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError);
+ 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("getPredefinedData_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("authError:");
+ if (this.authError == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authError);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("serverError:");
+ if (this.serverError == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.serverError);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ 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 {
+ 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 getPredefinedData_resultStandardSchemeFactory implements SchemeFactory {
+ public getPredefinedData_resultStandardScheme getScheme() {
+ return new getPredefinedData_resultStandardScheme();
+ }
+ }
+
+ private static class getPredefinedData_resultStandardScheme extends StandardScheme<getPredefinedData_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_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.STRUCT) {
+ struct.success = new PredefinedData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // AUTH_ERROR
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.authError = new TAuthorizationException();
+ struct.authError.read(iprot);
+ struct.setAuthErrorIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // SERVER_ERROR
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.serverError = new TInvocationException();
+ struct.serverError.read(iprot);
+ struct.setServerErrorIsSet(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, getPredefinedData_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.authError != null) {
+ oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC);
+ struct.authError.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.serverError != null) {
+ oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC);
+ struct.serverError.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPredefinedData_resultTupleSchemeFactory implements SchemeFactory {
+ public getPredefinedData_resultTupleScheme getScheme() {
+ return new getPredefinedData_resultTupleScheme();
+ }
+ }
+
+ private static class getPredefinedData_resultTupleScheme extends TupleScheme<getPredefinedData_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetAuthError()) {
+ optionals.set(1);
+ }
+ if (struct.isSetServerError()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetSuccess()) {
+ struct.success.write(oprot);
+ }
+ if (struct.isSetAuthError()) {
+ struct.authError.write(oprot);
+ }
+ if (struct.isSetServerError()) {
+ struct.serverError.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.success = new PredefinedData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.authError = new TAuthorizationException();
+ struct.authError.read(iprot);
+ struct.setAuthErrorIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.serverError = new TInvocationException();
+ struct.serverError.read(iprot);
+ struct.setServerErrorIsSet(true);
+ }
+ }
+ }
+
+ }
+
}
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift
index 02fb1f5..0d82503 100644
--- a/src/main/thrift/bwlp.thrift
+++ b/src/main/thrift/bwlp.thrift
@@ -249,11 +249,19 @@ struct NetShare {
6: optional string mountpoint,
2: optional string username,
3: optional string password,
+ 7: optional i32 shareId,
}
struct LdapFilter {
1: string attribute,
2: string value,
+ 3: optional i32 filterId,
+ 4: optional string title,
+}
+
+struct PredefinedData {
+ 1: list<NetShare> netShares,
+ 2: list<LdapFilter> ldapFilter,
}
// Write lecture to sat. if optional fields are not set or null, their value stays unchanged
@@ -614,6 +622,11 @@ service SatelliteServer {
// Set new owner of lecture
void setLectureOwner(1: Token userToken, 2: UUID lectureId 3: UUID newOwnerId)
throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError),
+
+ // Get predefined stuff
+ PredefinedData getPredefinedData(1: Token userToken)
+ throws (1:TAuthorizationException authError, 2:TInvocationException serverError),
+
}
// Central master server