You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ch...@apache.org on 2013/12/11 23:07:22 UTC
svn commit: r1550285 [2/11] - in /airavata/trunk/modules/thrift: ./
interpreter-service/src/main/java/org/apache/airavata/experiment/execution/
interpreter-service/src/main/resources/
Modified: airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/CredentialStoreSecuritySettings.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/CredentialStoreSecuritySettings.java?rev=1550285&r1=1550284&r2=1550285&view=diff
==============================================================================
--- airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/CredentialStoreSecuritySettings.java (original)
+++ airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/CredentialStoreSecuritySettings.java Wed Dec 11 22:07:21 2013
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
/**
* Autogenerated by Thrift Compiler (0.9.1)
*
@@ -33,556 +54,558 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CredentialStoreSecuritySettings implements org.apache.thrift.TBase<CredentialStoreSecuritySettings, CredentialStoreSecuritySettings._Fields>, java.io.Serializable, Cloneable, Comparable<CredentialStoreSecuritySettings> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CredentialStoreSecuritySettings");
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CredentialStoreSecuritySettings");
+
+ private static final org.apache.thrift.protocol.TField TOKEN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tokenId", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField PORTAL_USER_FIELD_DESC = new org.apache.thrift.protocol.TField("portalUser", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayID", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new CredentialStoreSecuritySettingsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new CredentialStoreSecuritySettingsTupleSchemeFactory());
+ }
+
+ public String tokenId; // optional
+ public String portalUser; // optional
+ public String gatewayID; // optional
- private static final org.apache.thrift.protocol.TField TOKEN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tokenId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField PORTAL_USER_FIELD_DESC = new org.apache.thrift.protocol.TField("portalUser", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayID", org.apache.thrift.protocol.TType.STRING, (short)3);
-
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new CredentialStoreSecuritySettingsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new CredentialStoreSecuritySettingsTupleSchemeFactory());
- }
-
- public String tokenId; // required
- public String portalUser; // required
- public String gatewayID; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- TOKEN_ID((short)1, "tokenId"),
- PORTAL_USER((short)2, "portalUser"),
- GATEWAY_ID((short)3, "gatewayID");
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ TOKEN_ID((short)1, "tokenId"),
+ PORTAL_USER((short)2, "portalUser"),
+ GATEWAY_ID((short)3, "gatewayID");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ 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: // TOKEN_ID
+ return TOKEN_ID;
+ case 2: // PORTAL_USER
+ return PORTAL_USER;
+ case 3: // GATEWAY_ID
+ return GATEWAY_ID;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private _Fields optionals[] = {_Fields.TOKEN_ID,_Fields.PORTAL_USER,_Fields.GATEWAY_ID};
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.TOKEN_ID, new org.apache.thrift.meta_data.FieldMetaData("tokenId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PORTAL_USER, new org.apache.thrift.meta_data.FieldMetaData("portalUser", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayID", 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(CredentialStoreSecuritySettings.class, metaDataMap);
}
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // TOKEN_ID
- return TOKEN_ID;
- case 2: // PORTAL_USER
- return PORTAL_USER;
- case 3: // GATEWAY_ID
- return GATEWAY_ID;
- default:
- return null;
- }
+ public CredentialStoreSecuritySettings() {
}
/**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
+ * Performs a deep copy on <i>other</i>.
*/
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
+ public CredentialStoreSecuritySettings(CredentialStoreSecuritySettings other) {
+ if (other.isSetTokenId()) {
+ this.tokenId = other.tokenId;
+ }
+ if (other.isSetPortalUser()) {
+ this.portalUser = other.portalUser;
+ }
+ if (other.isSetGatewayID()) {
+ this.gatewayID = other.gatewayID;
+ }
}
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(String name) {
- return byName.get(name);
+ public CredentialStoreSecuritySettings deepCopy() {
+ return new CredentialStoreSecuritySettings(this);
}
- private final short _thriftId;
- private final String _fieldName;
+ @Override
+ public void clear() {
+ this.tokenId = null;
+ this.portalUser = null;
+ this.gatewayID = null;
+ }
- _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.TOKEN_ID, new org.apache.thrift.meta_data.FieldMetaData("tokenId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.PORTAL_USER, new org.apache.thrift.meta_data.FieldMetaData("portalUser", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayID", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CredentialStoreSecuritySettings.class, metaDataMap);
- }
-
- public CredentialStoreSecuritySettings() {
- }
-
- public CredentialStoreSecuritySettings(
- String tokenId,
- String portalUser,
- String gatewayID)
- {
- this();
- this.tokenId = tokenId;
- this.portalUser = portalUser;
- this.gatewayID = gatewayID;
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public CredentialStoreSecuritySettings(CredentialStoreSecuritySettings other) {
- if (other.isSetTokenId()) {
- this.tokenId = other.tokenId;
- }
- if (other.isSetPortalUser()) {
- this.portalUser = other.portalUser;
- }
- if (other.isSetGatewayID()) {
- this.gatewayID = other.gatewayID;
- }
- }
-
- public CredentialStoreSecuritySettings deepCopy() {
- return new CredentialStoreSecuritySettings(this);
- }
-
- @Override
- public void clear() {
- this.tokenId = null;
- this.portalUser = null;
- this.gatewayID = null;
- }
-
- public String getTokenId() {
- return this.tokenId;
- }
-
- public CredentialStoreSecuritySettings setTokenId(String tokenId) {
- this.tokenId = tokenId;
- return this;
- }
-
- public void unsetTokenId() {
- this.tokenId = null;
- }
-
- /** Returns true if field tokenId is set (has been assigned a value) and false otherwise */
- public boolean isSetTokenId() {
- return this.tokenId != null;
- }
-
- public void setTokenIdIsSet(boolean value) {
- if (!value) {
- this.tokenId = null;
- }
- }
-
- public String getPortalUser() {
- return this.portalUser;
- }
-
- public CredentialStoreSecuritySettings setPortalUser(String portalUser) {
- this.portalUser = portalUser;
- return this;
- }
-
- public void unsetPortalUser() {
- this.portalUser = null;
- }
-
- /** Returns true if field portalUser is set (has been assigned a value) and false otherwise */
- public boolean isSetPortalUser() {
- return this.portalUser != null;
- }
-
- public void setPortalUserIsSet(boolean value) {
- if (!value) {
- this.portalUser = null;
- }
- }
-
- public String getGatewayID() {
- return this.gatewayID;
- }
-
- public CredentialStoreSecuritySettings setGatewayID(String gatewayID) {
- this.gatewayID = gatewayID;
- return this;
- }
-
- public void unsetGatewayID() {
- this.gatewayID = null;
- }
-
- /** Returns true if field gatewayID is set (has been assigned a value) and false otherwise */
- public boolean isSetGatewayID() {
- return this.gatewayID != null;
- }
-
- public void setGatewayIDIsSet(boolean value) {
- if (!value) {
- this.gatewayID = null;
- }
- }
-
- public void setFieldValue(_Fields field, Object value) {
- switch (field) {
- case TOKEN_ID:
- if (value == null) {
- unsetTokenId();
- } else {
- setTokenId((String)value);
- }
- break;
-
- case PORTAL_USER:
- if (value == null) {
- unsetPortalUser();
- } else {
- setPortalUser((String)value);
- }
- break;
-
- case GATEWAY_ID:
- if (value == null) {
- unsetGatewayID();
- } else {
- setGatewayID((String)value);
- }
- break;
-
- }
- }
-
- public Object getFieldValue(_Fields field) {
- switch (field) {
- case TOKEN_ID:
- return getTokenId();
-
- case PORTAL_USER:
- return getPortalUser();
-
- case GATEWAY_ID:
- return getGatewayID();
-
- }
- 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 TOKEN_ID:
- return isSetTokenId();
- case PORTAL_USER:
- return isSetPortalUser();
- case GATEWAY_ID:
- return isSetGatewayID();
- }
- throw new IllegalStateException();
- }
-
- @Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof CredentialStoreSecuritySettings)
- return this.equals((CredentialStoreSecuritySettings)that);
- return false;
- }
-
- public boolean equals(CredentialStoreSecuritySettings that) {
- if (that == null)
- return false;
-
- boolean this_present_tokenId = true && this.isSetTokenId();
- boolean that_present_tokenId = true && that.isSetTokenId();
- if (this_present_tokenId || that_present_tokenId) {
- if (!(this_present_tokenId && that_present_tokenId))
- return false;
- if (!this.tokenId.equals(that.tokenId))
- return false;
+ public String getTokenId() {
+ return this.tokenId;
}
- boolean this_present_portalUser = true && this.isSetPortalUser();
- boolean that_present_portalUser = true && that.isSetPortalUser();
- if (this_present_portalUser || that_present_portalUser) {
- if (!(this_present_portalUser && that_present_portalUser))
- return false;
- if (!this.portalUser.equals(that.portalUser))
- return false;
+ public CredentialStoreSecuritySettings setTokenId(String tokenId) {
+ this.tokenId = tokenId;
+ return this;
}
- boolean this_present_gatewayID = true && this.isSetGatewayID();
- boolean that_present_gatewayID = true && that.isSetGatewayID();
- if (this_present_gatewayID || that_present_gatewayID) {
- if (!(this_present_gatewayID && that_present_gatewayID))
- return false;
- if (!this.gatewayID.equals(that.gatewayID))
+ public void unsetTokenId() {
+ this.tokenId = null;
+ }
+
+ /** Returns true if field tokenId is set (has been assigned a value) and false otherwise */
+ public boolean isSetTokenId() {
+ return this.tokenId != null;
+ }
+
+ public void setTokenIdIsSet(boolean value) {
+ if (!value) {
+ this.tokenId = null;
+ }
+ }
+
+ public String getPortalUser() {
+ return this.portalUser;
+ }
+
+ public CredentialStoreSecuritySettings setPortalUser(String portalUser) {
+ this.portalUser = portalUser;
+ return this;
+ }
+
+ public void unsetPortalUser() {
+ this.portalUser = null;
+ }
+
+ /** Returns true if field portalUser is set (has been assigned a value) and false otherwise */
+ public boolean isSetPortalUser() {
+ return this.portalUser != null;
+ }
+
+ public void setPortalUserIsSet(boolean value) {
+ if (!value) {
+ this.portalUser = null;
+ }
+ }
+
+ public String getGatewayID() {
+ return this.gatewayID;
+ }
+
+ public CredentialStoreSecuritySettings setGatewayID(String gatewayID) {
+ this.gatewayID = gatewayID;
+ return this;
+ }
+
+ public void unsetGatewayID() {
+ this.gatewayID = null;
+ }
+
+ /** Returns true if field gatewayID is set (has been assigned a value) and false otherwise */
+ public boolean isSetGatewayID() {
+ return this.gatewayID != null;
+ }
+
+ public void setGatewayIDIsSet(boolean value) {
+ if (!value) {
+ this.gatewayID = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case TOKEN_ID:
+ if (value == null) {
+ unsetTokenId();
+ } else {
+ setTokenId((String)value);
+ }
+ break;
+
+ case PORTAL_USER:
+ if (value == null) {
+ unsetPortalUser();
+ } else {
+ setPortalUser((String)value);
+ }
+ break;
+
+ case GATEWAY_ID:
+ if (value == null) {
+ unsetGatewayID();
+ } else {
+ setGatewayID((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case TOKEN_ID:
+ return getTokenId();
+
+ case PORTAL_USER:
+ return getPortalUser();
+
+ case GATEWAY_ID:
+ return getGatewayID();
+
+ }
+ 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 TOKEN_ID:
+ return isSetTokenId();
+ case PORTAL_USER:
+ return isSetPortalUser();
+ case GATEWAY_ID:
+ return isSetGatewayID();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof CredentialStoreSecuritySettings)
+ return this.equals((CredentialStoreSecuritySettings)that);
return false;
}
- return true;
- }
+ public boolean equals(CredentialStoreSecuritySettings that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tokenId = true && this.isSetTokenId();
+ boolean that_present_tokenId = true && that.isSetTokenId();
+ if (this_present_tokenId || that_present_tokenId) {
+ if (!(this_present_tokenId && that_present_tokenId))
+ return false;
+ if (!this.tokenId.equals(that.tokenId))
+ return false;
+ }
+
+ boolean this_present_portalUser = true && this.isSetPortalUser();
+ boolean that_present_portalUser = true && that.isSetPortalUser();
+ if (this_present_portalUser || that_present_portalUser) {
+ if (!(this_present_portalUser && that_present_portalUser))
+ return false;
+ if (!this.portalUser.equals(that.portalUser))
+ return false;
+ }
+
+ boolean this_present_gatewayID = true && this.isSetGatewayID();
+ boolean that_present_gatewayID = true && that.isSetGatewayID();
+ if (this_present_gatewayID || that_present_gatewayID) {
+ if (!(this_present_gatewayID && that_present_gatewayID))
+ return false;
+ if (!this.gatewayID.equals(that.gatewayID))
+ return false;
+ }
- @Override
- public int hashCode() {
- return 0;
- }
-
- @Override
- public int compareTo(CredentialStoreSecuritySettings other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = Boolean.valueOf(isSetTokenId()).compareTo(other.isSetTokenId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetTokenId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tokenId, other.tokenId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetPortalUser()).compareTo(other.isSetPortalUser());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetPortalUser()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.portalUser, other.portalUser);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetGatewayID()).compareTo(other.isSetGatewayID());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetGatewayID()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayID, other.gatewayID);
- 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("CredentialStoreSecuritySettings(");
- boolean first = true;
-
- sb.append("tokenId:");
- if (this.tokenId == null) {
- sb.append("null");
- } else {
- sb.append(this.tokenId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("portalUser:");
- if (this.portalUser == null) {
- sb.append("null");
- } else {
- sb.append(this.portalUser);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("gatewayID:");
- if (this.gatewayID == null) {
- sb.append("null");
- } else {
- sb.append(this.gatewayID);
- }
- 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 CredentialStoreSecuritySettingsStandardSchemeFactory implements SchemeFactory {
- public CredentialStoreSecuritySettingsStandardScheme getScheme() {
- return new CredentialStoreSecuritySettingsStandardScheme();
- }
- }
-
- private static class CredentialStoreSecuritySettingsStandardScheme extends StandardScheme<CredentialStoreSecuritySettings> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, CredentialStoreSecuritySettings 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: // TOKEN_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.tokenId = iprot.readString();
- struct.setTokenIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // PORTAL_USER
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.portalUser = iprot.readString();
- struct.setPortalUserIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // GATEWAY_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.gatewayID = iprot.readString();
- struct.setGatewayIDIsSet(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, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.tokenId != null) {
- oprot.writeFieldBegin(TOKEN_ID_FIELD_DESC);
- oprot.writeString(struct.tokenId);
- oprot.writeFieldEnd();
- }
- if (struct.portalUser != null) {
- oprot.writeFieldBegin(PORTAL_USER_FIELD_DESC);
- oprot.writeString(struct.portalUser);
- oprot.writeFieldEnd();
- }
- if (struct.gatewayID != null) {
- oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
- oprot.writeString(struct.gatewayID);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class CredentialStoreSecuritySettingsTupleSchemeFactory implements SchemeFactory {
- public CredentialStoreSecuritySettingsTupleScheme getScheme() {
- return new CredentialStoreSecuritySettingsTupleScheme();
+ return true;
}
- }
- private static class CredentialStoreSecuritySettingsTupleScheme extends TupleScheme<CredentialStoreSecuritySettings> {
+ @Override
+ public int hashCode() {
+ return 0;
+ }
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
- if (struct.isSetTokenId()) {
- optionals.set(0);
- }
- if (struct.isSetPortalUser()) {
- optionals.set(1);
- }
- if (struct.isSetGatewayID()) {
- optionals.set(2);
- }
- oprot.writeBitSet(optionals, 3);
- if (struct.isSetTokenId()) {
- oprot.writeString(struct.tokenId);
- }
- if (struct.isSetPortalUser()) {
- oprot.writeString(struct.portalUser);
- }
- if (struct.isSetGatewayID()) {
- oprot.writeString(struct.gatewayID);
- }
+ public int compareTo(CredentialStoreSecuritySettings other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetTokenId()).compareTo(other.isSetTokenId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTokenId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tokenId, other.tokenId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetPortalUser()).compareTo(other.isSetPortalUser());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPortalUser()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.portalUser, other.portalUser);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetGatewayID()).compareTo(other.isSetGatewayID());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetGatewayID()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayID, other.gatewayID);
+ 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 void read(org.apache.thrift.protocol.TProtocol prot, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
- if (incoming.get(0)) {
- struct.tokenId = iprot.readString();
- struct.setTokenIdIsSet(true);
- }
- if (incoming.get(1)) {
- struct.portalUser = iprot.readString();
- struct.setPortalUserIsSet(true);
- }
- if (incoming.get(2)) {
- struct.gatewayID = iprot.readString();
- struct.setGatewayIDIsSet(true);
- }
+ public String toString() {
+ StringBuilder sb = new StringBuilder("CredentialStoreSecuritySettings(");
+ boolean first = true;
+
+ if (isSetTokenId()) {
+ sb.append("tokenId:");
+ if (this.tokenId == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.tokenId);
+ }
+ first = false;
+ }
+ if (isSetPortalUser()) {
+ if (!first) sb.append(", ");
+ sb.append("portalUser:");
+ if (this.portalUser == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.portalUser);
+ }
+ first = false;
+ }
+ if (isSetGatewayID()) {
+ if (!first) sb.append(", ");
+ sb.append("gatewayID:");
+ if (this.gatewayID == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.gatewayID);
+ }
+ 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 CredentialStoreSecuritySettingsStandardSchemeFactory implements SchemeFactory {
+ public CredentialStoreSecuritySettingsStandardScheme getScheme() {
+ return new CredentialStoreSecuritySettingsStandardScheme();
+ }
+ }
+
+ private static class CredentialStoreSecuritySettingsStandardScheme extends StandardScheme<CredentialStoreSecuritySettings> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, CredentialStoreSecuritySettings 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: // TOKEN_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.tokenId = iprot.readString();
+ struct.setTokenIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // PORTAL_USER
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.portalUser = iprot.readString();
+ struct.setPortalUserIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // GATEWAY_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.gatewayID = iprot.readString();
+ struct.setGatewayIDIsSet(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, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.tokenId != null) {
+ if (struct.isSetTokenId()) {
+ oprot.writeFieldBegin(TOKEN_ID_FIELD_DESC);
+ oprot.writeString(struct.tokenId);
+ oprot.writeFieldEnd();
+ }
+ }
+ if (struct.portalUser != null) {
+ if (struct.isSetPortalUser()) {
+ oprot.writeFieldBegin(PORTAL_USER_FIELD_DESC);
+ oprot.writeString(struct.portalUser);
+ oprot.writeFieldEnd();
+ }
+ }
+ if (struct.gatewayID != null) {
+ if (struct.isSetGatewayID()) {
+ oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
+ oprot.writeString(struct.gatewayID);
+ oprot.writeFieldEnd();
+ }
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class CredentialStoreSecuritySettingsTupleSchemeFactory implements SchemeFactory {
+ public CredentialStoreSecuritySettingsTupleScheme getScheme() {
+ return new CredentialStoreSecuritySettingsTupleScheme();
+ }
+ }
+
+ private static class CredentialStoreSecuritySettingsTupleScheme extends TupleScheme<CredentialStoreSecuritySettings> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetTokenId()) {
+ optionals.set(0);
+ }
+ if (struct.isSetPortalUser()) {
+ optionals.set(1);
+ }
+ if (struct.isSetGatewayID()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetTokenId()) {
+ oprot.writeString(struct.tokenId);
+ }
+ if (struct.isSetPortalUser()) {
+ oprot.writeString(struct.portalUser);
+ }
+ if (struct.isSetGatewayID()) {
+ oprot.writeString(struct.gatewayID);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, CredentialStoreSecuritySettings struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.tokenId = iprot.readString();
+ struct.setTokenIdIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.portalUser = iprot.readString();
+ struct.setPortalUserIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.gatewayID = iprot.readString();
+ struct.setGatewayIDIsSet(true);
+ }
+ }
}
- }
}