summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java277
1 files changed, 218 insertions, 59 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
index 539fb0e..4032b4e 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java
@@ -34,13 +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-12-08")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25")
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 org.apache.thrift.protocol.TField RUN_SCRIPTS_FIELD_DESC = new org.apache.thrift.protocol.TField("runScripts", org.apache.thrift.protocol.TType.LIST, (short)3);
+ private static final org.apache.thrift.protocol.TField NETWORK_EXCEPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("networkExceptions", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -51,12 +52,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
public List<NetShare> netShares; // required
public List<LdapFilter> ldapFilter; // required
public List<PresetRunScript> runScripts; // required
+ public List<PresetNetRule> networkExceptions; // 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"),
- RUN_SCRIPTS((short)3, "runScripts");
+ RUN_SCRIPTS((short)3, "runScripts"),
+ NETWORK_EXCEPTIONS((short)4, "networkExceptions");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -77,6 +80,8 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
return LDAP_FILTER;
case 3: // RUN_SCRIPTS
return RUN_SCRIPTS;
+ case 4: // NETWORK_EXCEPTIONS
+ return NETWORK_EXCEPTIONS;
default:
return null;
}
@@ -129,6 +134,9 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
tmpMap.put(_Fields.RUN_SCRIPTS, new org.apache.thrift.meta_data.FieldMetaData("runScripts", 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, PresetRunScript.class))));
+ tmpMap.put(_Fields.NETWORK_EXCEPTIONS, new org.apache.thrift.meta_data.FieldMetaData("networkExceptions", 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, PresetNetRule.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PredefinedData.class, metaDataMap);
}
@@ -139,12 +147,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
public PredefinedData(
List<NetShare> netShares,
List<LdapFilter> ldapFilter,
- List<PresetRunScript> runScripts)
+ List<PresetRunScript> runScripts,
+ List<PresetNetRule> networkExceptions)
{
this();
this.netShares = netShares;
this.ldapFilter = ldapFilter;
this.runScripts = runScripts;
+ this.networkExceptions = networkExceptions;
}
/**
@@ -172,6 +182,13 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
}
this.runScripts = __this__runScripts;
}
+ if (other.isSetNetworkExceptions()) {
+ List<PresetNetRule> __this__networkExceptions = new ArrayList<PresetNetRule>(other.networkExceptions.size());
+ for (PresetNetRule other_element : other.networkExceptions) {
+ __this__networkExceptions.add(new PresetNetRule(other_element));
+ }
+ this.networkExceptions = __this__networkExceptions;
+ }
}
public PredefinedData deepCopy() {
@@ -183,6 +200,7 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
this.netShares = null;
this.ldapFilter = null;
this.runScripts = null;
+ this.networkExceptions = null;
}
public int getNetSharesSize() {
@@ -302,6 +320,45 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
}
}
+ public int getNetworkExceptionsSize() {
+ return (this.networkExceptions == null) ? 0 : this.networkExceptions.size();
+ }
+
+ public java.util.Iterator<PresetNetRule> getNetworkExceptionsIterator() {
+ return (this.networkExceptions == null) ? null : this.networkExceptions.iterator();
+ }
+
+ public void addToNetworkExceptions(PresetNetRule elem) {
+ if (this.networkExceptions == null) {
+ this.networkExceptions = new ArrayList<PresetNetRule>();
+ }
+ this.networkExceptions.add(elem);
+ }
+
+ public List<PresetNetRule> getNetworkExceptions() {
+ return this.networkExceptions;
+ }
+
+ public PredefinedData setNetworkExceptions(List<PresetNetRule> networkExceptions) {
+ this.networkExceptions = networkExceptions;
+ return this;
+ }
+
+ public void unsetNetworkExceptions() {
+ this.networkExceptions = null;
+ }
+
+ /** Returns true if field networkExceptions is set (has been assigned a value) and false otherwise */
+ public boolean isSetNetworkExceptions() {
+ return this.networkExceptions != null;
+ }
+
+ public void setNetworkExceptionsIsSet(boolean value) {
+ if (!value) {
+ this.networkExceptions = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case NET_SHARES:
@@ -328,6 +385,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
}
break;
+ case NETWORK_EXCEPTIONS:
+ if (value == null) {
+ unsetNetworkExceptions();
+ } else {
+ setNetworkExceptions((List<PresetNetRule>)value);
+ }
+ break;
+
}
}
@@ -342,6 +407,9 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
case RUN_SCRIPTS:
return getRunScripts();
+ case NETWORK_EXCEPTIONS:
+ return getNetworkExceptions();
+
}
throw new IllegalStateException();
}
@@ -359,6 +427,8 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
return isSetLdapFilter();
case RUN_SCRIPTS:
return isSetRunScripts();
+ case NETWORK_EXCEPTIONS:
+ return isSetNetworkExceptions();
}
throw new IllegalStateException();
}
@@ -403,6 +473,15 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
return false;
}
+ boolean this_present_networkExceptions = true && this.isSetNetworkExceptions();
+ boolean that_present_networkExceptions = true && that.isSetNetworkExceptions();
+ if (this_present_networkExceptions || that_present_networkExceptions) {
+ if (!(this_present_networkExceptions && that_present_networkExceptions))
+ return false;
+ if (!this.networkExceptions.equals(that.networkExceptions))
+ return false;
+ }
+
return true;
}
@@ -425,6 +504,11 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
if (present_runScripts)
list.add(runScripts);
+ boolean present_networkExceptions = true && (isSetNetworkExceptions());
+ list.add(present_networkExceptions);
+ if (present_networkExceptions)
+ list.add(networkExceptions);
+
return list.hashCode();
}
@@ -466,6 +550,16 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetNetworkExceptions()).compareTo(other.isSetNetworkExceptions());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNetworkExceptions()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.networkExceptions, other.networkExceptions);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -509,6 +603,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
sb.append(this.runScripts);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("networkExceptions:");
+ if (this.networkExceptions == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.networkExceptions);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -555,14 +657,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
case 1: // NET_SHARES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();
- struct.netShares = new ArrayList<NetShare>(_list98.size);
- NetShare _elem99;
- for (int _i100 = 0; _i100 < _list98.size; ++_i100)
+ org.apache.thrift.protocol.TList _list106 = iprot.readListBegin();
+ struct.netShares = new ArrayList<NetShare>(_list106.size);
+ NetShare _elem107;
+ for (int _i108 = 0; _i108 < _list106.size; ++_i108)
{
- _elem99 = new NetShare();
- _elem99.read(iprot);
- struct.netShares.add(_elem99);
+ _elem107 = new NetShare();
+ _elem107.read(iprot);
+ struct.netShares.add(_elem107);
}
iprot.readListEnd();
}
@@ -574,14 +676,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
case 2: // LDAP_FILTER
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
- struct.ldapFilter = new ArrayList<LdapFilter>(_list101.size);
- LdapFilter _elem102;
- for (int _i103 = 0; _i103 < _list101.size; ++_i103)
+ org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
+ struct.ldapFilter = new ArrayList<LdapFilter>(_list109.size);
+ LdapFilter _elem110;
+ for (int _i111 = 0; _i111 < _list109.size; ++_i111)
{
- _elem102 = new LdapFilter();
- _elem102.read(iprot);
- struct.ldapFilter.add(_elem102);
+ _elem110 = new LdapFilter();
+ _elem110.read(iprot);
+ struct.ldapFilter.add(_elem110);
}
iprot.readListEnd();
}
@@ -593,14 +695,14 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
case 3: // RUN_SCRIPTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
- struct.runScripts = new ArrayList<PresetRunScript>(_list104.size);
- PresetRunScript _elem105;
- for (int _i106 = 0; _i106 < _list104.size; ++_i106)
+ org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
+ struct.runScripts = new ArrayList<PresetRunScript>(_list112.size);
+ PresetRunScript _elem113;
+ for (int _i114 = 0; _i114 < _list112.size; ++_i114)
{
- _elem105 = new PresetRunScript();
- _elem105.read(iprot);
- struct.runScripts.add(_elem105);
+ _elem113 = new PresetRunScript();
+ _elem113.read(iprot);
+ struct.runScripts.add(_elem113);
}
iprot.readListEnd();
}
@@ -609,6 +711,25 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 4: // NETWORK_EXCEPTIONS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list115 = iprot.readListBegin();
+ struct.networkExceptions = new ArrayList<PresetNetRule>(_list115.size);
+ PresetNetRule _elem116;
+ for (int _i117 = 0; _i117 < _list115.size; ++_i117)
+ {
+ _elem116 = new PresetNetRule();
+ _elem116.read(iprot);
+ struct.networkExceptions.add(_elem116);
+ }
+ iprot.readListEnd();
+ }
+ struct.setNetworkExceptionsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -628,9 +749,9 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
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 _iter107 : struct.netShares)
+ for (NetShare _iter118 : struct.netShares)
{
- _iter107.write(oprot);
+ _iter118.write(oprot);
}
oprot.writeListEnd();
}
@@ -640,9 +761,9 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
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 _iter108 : struct.ldapFilter)
+ for (LdapFilter _iter119 : struct.ldapFilter)
{
- _iter108.write(oprot);
+ _iter119.write(oprot);
}
oprot.writeListEnd();
}
@@ -652,9 +773,21 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
oprot.writeFieldBegin(RUN_SCRIPTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.runScripts.size()));
- for (PresetRunScript _iter109 : struct.runScripts)
+ for (PresetRunScript _iter120 : struct.runScripts)
{
- _iter109.write(oprot);
+ _iter120.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ if (struct.networkExceptions != null) {
+ oprot.writeFieldBegin(NETWORK_EXCEPTIONS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.networkExceptions.size()));
+ for (PresetNetRule _iter121 : struct.networkExceptions)
+ {
+ _iter121.write(oprot);
}
oprot.writeListEnd();
}
@@ -687,31 +820,43 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
if (struct.isSetRunScripts()) {
optionals.set(2);
}
- oprot.writeBitSet(optionals, 3);
+ if (struct.isSetNetworkExceptions()) {
+ optionals.set(3);
+ }
+ oprot.writeBitSet(optionals, 4);
if (struct.isSetNetShares()) {
{
oprot.writeI32(struct.netShares.size());
- for (NetShare _iter110 : struct.netShares)
+ for (NetShare _iter122 : struct.netShares)
{
- _iter110.write(oprot);
+ _iter122.write(oprot);
}
}
}
if (struct.isSetLdapFilter()) {
{
oprot.writeI32(struct.ldapFilter.size());
- for (LdapFilter _iter111 : struct.ldapFilter)
+ for (LdapFilter _iter123 : struct.ldapFilter)
{
- _iter111.write(oprot);
+ _iter123.write(oprot);
}
}
}
if (struct.isSetRunScripts()) {
{
oprot.writeI32(struct.runScripts.size());
- for (PresetRunScript _iter112 : struct.runScripts)
+ for (PresetRunScript _iter124 : struct.runScripts)
+ {
+ _iter124.write(oprot);
+ }
+ }
+ }
+ if (struct.isSetNetworkExceptions()) {
+ {
+ oprot.writeI32(struct.networkExceptions.size());
+ for (PresetNetRule _iter125 : struct.networkExceptions)
{
- _iter112.write(oprot);
+ _iter125.write(oprot);
}
}
}
@@ -720,49 +865,63 @@ public class PredefinedData implements org.apache.thrift.TBase<PredefinedData, P
@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(3);
+ BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.netShares = new ArrayList<NetShare>(_list113.size);
- NetShare _elem114;
- for (int _i115 = 0; _i115 < _list113.size; ++_i115)
+ org.apache.thrift.protocol.TList _list126 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.netShares = new ArrayList<NetShare>(_list126.size);
+ NetShare _elem127;
+ for (int _i128 = 0; _i128 < _list126.size; ++_i128)
{
- _elem114 = new NetShare();
- _elem114.read(iprot);
- struct.netShares.add(_elem114);
+ _elem127 = new NetShare();
+ _elem127.read(iprot);
+ struct.netShares.add(_elem127);
}
}
struct.setNetSharesIsSet(true);
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list116 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.ldapFilter = new ArrayList<LdapFilter>(_list116.size);
- LdapFilter _elem117;
- for (int _i118 = 0; _i118 < _list116.size; ++_i118)
+ org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.ldapFilter = new ArrayList<LdapFilter>(_list129.size);
+ LdapFilter _elem130;
+ for (int _i131 = 0; _i131 < _list129.size; ++_i131)
{
- _elem117 = new LdapFilter();
- _elem117.read(iprot);
- struct.ldapFilter.add(_elem117);
+ _elem130 = new LdapFilter();
+ _elem130.read(iprot);
+ struct.ldapFilter.add(_elem130);
}
}
struct.setLdapFilterIsSet(true);
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.runScripts = new ArrayList<PresetRunScript>(_list119.size);
- PresetRunScript _elem120;
- for (int _i121 = 0; _i121 < _list119.size; ++_i121)
+ org.apache.thrift.protocol.TList _list132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.runScripts = new ArrayList<PresetRunScript>(_list132.size);
+ PresetRunScript _elem133;
+ for (int _i134 = 0; _i134 < _list132.size; ++_i134)
{
- _elem120 = new PresetRunScript();
- _elem120.read(iprot);
- struct.runScripts.add(_elem120);
+ _elem133 = new PresetRunScript();
+ _elem133.read(iprot);
+ struct.runScripts.add(_elem133);
}
}
struct.setRunScriptsIsSet(true);
}
+ if (incoming.get(3)) {
+ {
+ org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.networkExceptions = new ArrayList<PresetNetRule>(_list135.size);
+ PresetNetRule _elem136;
+ for (int _i137 = 0; _i137 < _list135.size; ++_i137)
+ {
+ _elem136 = new PresetNetRule();
+ _elem136.read(iprot);
+ struct.networkExceptions.add(_elem136);
+ }
+ }
+ struct.setNetworkExceptionsIsSet(true);
+ }
}
}