You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/02/02 21:23:53 UTC

[01/14] airavata git commit: making corrections to user profile service code

Repository: airavata
Updated Branches:
  refs/heads/develop 7a662756d -> 80dbaba6f


http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
index 2dcfd0e..91eb8c4 100644
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
@@ -1,3 +1,19 @@
+    /*
+     * 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.3)
  *

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
old mode 100755
new mode 100644
index ba95bee..877ba8d
--- a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
+++ b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
@@ -73,6 +73,9 @@ GFAC_SRC_DIR='../../modules/gfac/gfac-client/src/main/java/'
 REGISTRY_THRIFT_FILE='registry-api.thrift'
 REGISTRY_SRC_DIR='../../modules/registry/registry-server/registry-api-stubs/src/main/java/'
 
+USER_PROFILE_THRIFT_FILE='user-profile-crud-cpi.thrift'
+USER_PROFILE_SRC_DIR='../../modules/user-profile/user-profile-stubs/src/main/java/'
+
 # Initialize the thrift arguments.
 #  Since most of the Airavata API and Data Models have includes, use recursive option by default.
 #  Generate all the files in target directory
@@ -171,11 +174,12 @@ generate_thrift_stubs() {
 for arg in "$@"
 do
     case "$arg" in
-    all)    echo "Generate all (credential store, orchestrator, gfac) Stubs"
+    all)    echo "Generate all (credential store, orchestrator, gfac, user_profile) Stubs"
             generate_thrift_stubs ${CS_THRIFT_FILE} ${CS_SRC_DIR}
             generate_thrift_stubs ${ORCHESTRATOR_THRIFT_FILE} ${ORCHESTRATOR_SRC_DIR}
             generate_thrift_stubs ${GFAC_THRIFT_FILE} ${GFAC_SRC_DIR}
             generate_thrift_stubs ${REGISTRY_THRIFT_FILE} ${REGISTRY_SRC_DIR}
+            generate_thrift_stubs ${USER_PROFILE_THRIFT_FILE} ${USER_PROFILE_SRC_DIR}
             ;;
     cs)   echo "Generating Credential Store Stubs"
             generate_thrift_stubs ${CS_THRIFT_FILE} ${CS_SRC_DIR}
@@ -189,6 +193,9 @@ do
     registry)    echo "Generate Registry Stubs"
             generate_thrift_stubs ${REGISTRY_THRIFT_FILE} ${REGISTRY_SRC_DIR}
             ;;
+    up)    echo "Generate User profile Stubs"
+            generate_thrift_stubs ${USER_PROFILE_THRIFT_FILE} ${USER_PROFILE_SRC_DIR}
+            ;;
     *)      echo "Invalid or unsupported option"
     	    show_usage
 	        exit 1

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift b/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
new file mode 100644
index 0000000..cbdc53c
--- /dev/null
+++ b/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
@@ -0,0 +1,58 @@
+/*
+ * 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.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
+
+
+namespace java org.apache.airavata.userprofile.crude.cpi
+
+const string USER_PROFILE_CPI_VERSION = "0.16.0"
+
+service UserProfileCrudeService {
+
+  string addUserProfile (1: required user_profile_model.UserProfile userProfile)
+                        throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  bool updateUserProfile (1: required user_profile_model.UserProfile userProfile)
+                          throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  user_profile_model.UserProfile getUserProfileById(1: required string userId, 2: required string gatewayId)
+                                                throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  bool deleteUserProfile(1: required string userId)
+                                                  throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  list<user_profile_model.UserProfile> getAllUserProfilesInGateway (1: required string gatewayId, 2: required i32 offset, 3: required i32 limit)
+                          throws (1:registry_api_errors.RegistryServiceException registryException);
+
+ user_profile_model.UserProfile getUserProfileByName(1: required string userName, 2: required string gatewayId)
+                                                throws (1:registry_api_errors.RegistryServiceException registryException);
+
+   bool doesUserExist(1: required string userName, 2: required string gatewayId)
+                                                   throws (1:registry_api_errors.RegistryServiceException registryException);
+
+
+}
\ No newline at end of file


[09/14] airavata git commit: renaming classes and including userProfileSerive exception

Posted by ma...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/exception/UserProfileServiceException.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/exception/UserProfileServiceException.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/exception/UserProfileServiceException.java
new file mode 100644
index 0000000..8327d70
--- /dev/null
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/exception/UserProfileServiceException.java
@@ -0,0 +1,407 @@
+    /*
+     * 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.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.userprofile.cpi.exception;
+
+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)")
+public class UserProfileServiceException extends TException implements org.apache.thrift.TBase<UserProfileServiceException, UserProfileServiceException._Fields>, java.io.Serializable, Cloneable, Comparable<UserProfileServiceException> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserProfileServiceException");
+
+  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", 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 UserProfileServiceExceptionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new UserProfileServiceExceptionTupleSchemeFactory());
+  }
+
+  public String message; // 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 {
+    MESSAGE((short)1, "message");
+
+    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: // MESSAGE
+          return MESSAGE;
+        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.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserProfileServiceException.class, metaDataMap);
+  }
+
+  public UserProfileServiceException() {
+  }
+
+  public UserProfileServiceException(
+    String message)
+  {
+    this();
+    this.message = message;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public UserProfileServiceException(UserProfileServiceException other) {
+    if (other.isSetMessage()) {
+      this.message = other.message;
+    }
+  }
+
+  public UserProfileServiceException deepCopy() {
+    return new UserProfileServiceException(this);
+  }
+
+  @Override
+  public void clear() {
+    this.message = null;
+  }
+
+  public String getMessage() {
+    return this.message;
+  }
+
+  public UserProfileServiceException setMessage(String message) {
+    this.message = message;
+    return this;
+  }
+
+  public void unsetMessage() {
+    this.message = null;
+  }
+
+  /** Returns true if field message is set (has been assigned a value) and false otherwise */
+  public boolean isSetMessage() {
+    return this.message != null;
+  }
+
+  public void setMessageIsSet(boolean value) {
+    if (!value) {
+      this.message = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case MESSAGE:
+      if (value == null) {
+        unsetMessage();
+      } else {
+        setMessage((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case MESSAGE:
+      return getMessage();
+
+    }
+    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 MESSAGE:
+      return isSetMessage();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof UserProfileServiceException)
+      return this.equals((UserProfileServiceException)that);
+    return false;
+  }
+
+  public boolean equals(UserProfileServiceException that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_message = true && this.isSetMessage();
+    boolean that_present_message = true && that.isSetMessage();
+    if (this_present_message || that_present_message) {
+      if (!(this_present_message && that_present_message))
+        return false;
+      if (!this.message.equals(that.message))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_message = true && (isSetMessage());
+    list.add(present_message);
+    if (present_message)
+      list.add(message);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(UserProfileServiceException other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetMessage()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
+      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("UserProfileServiceException(");
+    boolean first = true;
+
+    sb.append("message:");
+    if (this.message == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.message);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (message == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' was not present! Struct: " + toString());
+    }
+    // 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 UserProfileServiceExceptionStandardSchemeFactory implements SchemeFactory {
+    public UserProfileServiceExceptionStandardScheme getScheme() {
+      return new UserProfileServiceExceptionStandardScheme();
+    }
+  }
+
+  private static class UserProfileServiceExceptionStandardScheme extends StandardScheme<UserProfileServiceException> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, UserProfileServiceException 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: // MESSAGE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.message = iprot.readString();
+              struct.setMessageIsSet(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, UserProfileServiceException struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.message != null) {
+        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
+        oprot.writeString(struct.message);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class UserProfileServiceExceptionTupleSchemeFactory implements SchemeFactory {
+    public UserProfileServiceExceptionTupleScheme getScheme() {
+      return new UserProfileServiceExceptionTupleScheme();
+    }
+  }
+
+  private static class UserProfileServiceExceptionTupleScheme extends TupleScheme<UserProfileServiceException> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, UserProfileServiceException struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.message);
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, UserProfileServiceException struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.message = iprot.readString();
+      struct.setMessageIsSet(true);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/user_profile_cpiConstants.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/user_profile_cpiConstants.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/user_profile_cpiConstants.java
new file mode 100644
index 0000000..b96ac2e
--- /dev/null
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/user_profile_cpiConstants.java
@@ -0,0 +1,57 @@
+    /*
+     * 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.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.userprofile.cpi;
+
+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"})
+public class user_profile_cpiConstants {
+
+  public static final String USER_PROFILE_CPI_VERSION = "0.17";
+
+}


[11/14] airavata git commit: renaming classes and including userProfileSerive exception

Posted by ma...@apache.org.
renaming classes and including userProfileSerive exception


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/39e22204
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/39e22204
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/39e22204

Branch: refs/heads/develop
Commit: 39e22204d13177c02ba360914c2feae7dec51480
Parents: c6ba43b
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Wed Jan 25 15:00:50 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Wed Jan 25 15:00:50 2017 -0500

----------------------------------------------------------------------
 .../user/profile/server/UserProfileHandler.java |  102 -
 .../user/profile/server/UserProfileServer.java  |    4 +-
 .../server/UserProfileServiceHandler.java       |  139 +
 .../api/exception/RegistryServiceException.java |  407 -
 .../userprofile/cpi/UserProfileService.java     | 7504 ++++++++++++++++++
 .../exception/UserProfileServiceException.java  |  407 +
 .../cpi/user_profile_cpiConstants.java          |   57 +
 .../crude/cpi/UserProfileCrudeService.java      | 7504 ------------------
 .../client/UserProfileServiceClientFactory.java |   43 -
 .../cpi/user_profile_crud_cpiConstants.java     |   57 -
 .../component-cpis/generate-cpi-stubs.sh        |    2 +-
 .../component-cpis/user-profile-cpi.thrift      |   57 +
 .../component-cpis/user-profile-crud-cpi.thrift |   58 -
 .../user_profile_cpi_errors.thrift              |   32 +
 14 files changed, 8199 insertions(+), 8174 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
deleted file mode 100644
index 369ec1c..0000000
--- a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-package org.apache.airavata.user.profile.server;
-
-import org.apache.airavata.model.user.UserProfile;
-import org.apache.airavata.registry.api.exception.RegistryServiceException;
-import org.apache.airavata.registry.core.entities.workspacecatalog.UserProfileEntity;
-import org.apache.airavata.registry.core.repositories.workspacecatalog.UserProfileRepository;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
-import org.apache.thrift.TException;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-public class UserProfileHandler implements UserProfileCrudeService.Iface {
-
-    private UserProfileRepository userProfileRepository;
-
-    public UserProfileHandler() {
-
-        userProfileRepository = new UserProfileRepository(UserProfile.class, UserProfileEntity.class);
-    }
-
-    public String addUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
-
-        userProfileRepository.create(userProfile);
-
-        if (null != userProfile)
-            return userProfile.getUserId();
-
-        return null;
-    }
-
-    public boolean updateUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
-
-        try {
-            userProfileRepository.update(userProfile);
-        } catch (Exception e) {
-
-            return false;
-        }
-
-        return true;
-    }
-
-    public UserProfile getUserProfileById(String userId, String gatewayId) throws RegistryServiceException, TException {
-
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByIdAndGateWay(userId, gatewayId);
-
-        return userProfile;
-    }
-
-    public boolean deleteUserProfile(String userId) throws RegistryServiceException, TException {
-
-        boolean deleteResult = userProfileRepository.delete(userId);
-
-        return deleteResult;
-    }
-
-
-
-    public List<UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws RegistryServiceException, TException {
-        List<UserProfile> usersInGateway = userProfileRepository.getAllUserProfilesInGateway(gatewayId, offset, limit);
-        return usersInGateway;
-    }
-
-
-    public UserProfile getUserProfileByName(String userName, String gatewayId) throws RegistryServiceException, TException {
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
-        return userProfile;
-    }
-
-    public boolean doesUserExist(String userName, String gatewayId) throws RegistryServiceException, TException {
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
-
-        if (null != userProfile)
-            return true;
-        return false;
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
index a45d2d4..b9ac5dc 100644
--- a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
+++ b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
@@ -23,7 +23,7 @@ package org.apache.airavata.user.profile.server;
 
 import org.apache.airavata.common.utils.IServer;
 import org.apache.airavata.common.utils.ServerSettings;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
+import org.apache.airavata.userprofile.cpi.UserProfileService;
 import org.apache.thrift.server.TServer;
 import org.apache.thrift.server.TThreadPoolServer;
 import org.apache.thrift.transport.TServerSocket;
@@ -71,7 +71,7 @@ public class UserProfileServer implements IServer {
             setStatus(ServerStatus.STARTING);
             final int serverPort = Integer.parseInt(ServerSettings.getUserProfileServerPort());
             final String serverHost = ServerSettings.getUserProfileServerHost();
-            UserProfileCrudeService.Processor processor = new UserProfileCrudeService.Processor(new UserProfileHandler());
+            UserProfileService.Processor processor = new UserProfileService.Processor(new UserProfileServiceHandler());
 
             TServerTransport serverTransport;
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServiceHandler.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServiceHandler.java b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServiceHandler.java
new file mode 100644
index 0000000..379f9cb
--- /dev/null
+++ b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServiceHandler.java
@@ -0,0 +1,139 @@
+/*
+ *
+ * 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.
+ *
+*/
+package org.apache.airavata.user.profile.server;
+
+import org.apache.airavata.model.user.UserProfile;
+import org.apache.airavata.registry.core.entities.workspacecatalog.UserProfileEntity;
+import org.apache.airavata.registry.core.repositories.workspacecatalog.UserProfileRepository;
+import org.apache.airavata.userprofile.cpi.UserProfileService;
+import org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException;
+import org.apache.thrift.TException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import java.util.List;
+
+public class UserProfileServiceHandler implements UserProfileService.Iface {
+
+    private final static Logger logger = LoggerFactory.getLogger(UserProfileServiceHandler.class);
+
+    private UserProfileRepository userProfileRepository;
+
+    public UserProfileServiceHandler() {
+
+        userProfileRepository = new UserProfileRepository(UserProfile.class, UserProfileEntity.class);
+    }
+
+    public String addUserProfile(UserProfile userProfile) throws UserProfileServiceException{
+        try{
+            userProfileRepository.create(userProfile);
+            if (null != userProfile)
+                return userProfile.getUserId();
+            return null;
+        } catch (Exception e){
+            logger.error("Error while creating user profile", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while creating user profile. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+    public boolean updateUserProfile(UserProfile userProfile) throws UserProfileServiceException, TException {
+        try {
+            if(userProfileRepository.update(userProfile) != null)
+                return true;
+            return false;
+        } catch (Exception e) {
+            logger.error("Error while Updating user profile", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while Updating user profile. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+    public UserProfile getUserProfileById(String userId, String gatewayId) throws UserProfileServiceException {
+        try{
+            UserProfile userProfile = userProfileRepository.getUserProfileByIdAndGateWay(userId, gatewayId);
+            if(userProfile != null)
+                return userProfile;
+            return null;
+        } catch (Exception e) {
+            logger.error("Error retrieving user profile by ID", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error retrieving user profile by ID. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+    public boolean deleteUserProfile(String userId) throws UserProfileServiceException {
+        try{
+            boolean deleteResult = userProfileRepository.delete(userId);
+            return deleteResult;
+        } catch (Exception e) {
+            logger.error("Error while deleting user profile", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while deleting user profile. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+    public List<UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws UserProfileServiceException {
+        try{
+            List<UserProfile> usersInGateway = userProfileRepository.getAllUserProfilesInGateway(gatewayId, offset, limit);
+            if(usersInGateway != null)
+                return usersInGateway;
+            return null;
+        } catch (Exception e) {
+            logger.error("Error while retrieving user profile List", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while retrieving user profile List. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+
+    public UserProfile getUserProfileByName(String userName, String gatewayId) throws UserProfileServiceException {
+        try{
+            UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
+            if(userProfile != null)
+                return userProfile;
+            return null;
+        } catch (Exception e) {
+            logger.error("Error while retrieving user profile", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while retrieving user profile. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
+    public boolean doesUserExist(String userName, String gatewayId) throws UserProfileServiceException, TException {
+        try{
+            UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
+            if (null != userProfile)
+                return true;
+            return false;
+        } catch (Exception e) {
+            logger.error("Error while finding user profile", e);
+            UserProfileServiceException exception = new UserProfileServiceException();
+            exception.setMessage("Error while finding user profile. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
deleted file mode 100644
index 7ada9c5..0000000
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
+++ /dev/null
@@ -1,407 +0,0 @@
-    /*
-     * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.airavata.registry.api.exception;
-
-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)")
-public class RegistryServiceException extends TException implements org.apache.thrift.TBase<RegistryServiceException, RegistryServiceException._Fields>, java.io.Serializable, Cloneable, Comparable<RegistryServiceException> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RegistryServiceException");
-
-  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", 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 RegistryServiceExceptionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new RegistryServiceExceptionTupleSchemeFactory());
-  }
-
-  public String message; // 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 {
-    MESSAGE((short)1, "message");
-
-    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: // MESSAGE
-          return MESSAGE;
-        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.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RegistryServiceException.class, metaDataMap);
-  }
-
-  public RegistryServiceException() {
-  }
-
-  public RegistryServiceException(
-    String message)
-  {
-    this();
-    this.message = message;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public RegistryServiceException(RegistryServiceException other) {
-    if (other.isSetMessage()) {
-      this.message = other.message;
-    }
-  }
-
-  public RegistryServiceException deepCopy() {
-    return new RegistryServiceException(this);
-  }
-
-  @Override
-  public void clear() {
-    this.message = null;
-  }
-
-  public String getMessage() {
-    return this.message;
-  }
-
-  public RegistryServiceException setMessage(String message) {
-    this.message = message;
-    return this;
-  }
-
-  public void unsetMessage() {
-    this.message = null;
-  }
-
-  /** Returns true if field message is set (has been assigned a value) and false otherwise */
-  public boolean isSetMessage() {
-    return this.message != null;
-  }
-
-  public void setMessageIsSet(boolean value) {
-    if (!value) {
-      this.message = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case MESSAGE:
-      if (value == null) {
-        unsetMessage();
-      } else {
-        setMessage((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case MESSAGE:
-      return getMessage();
-
-    }
-    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 MESSAGE:
-      return isSetMessage();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof RegistryServiceException)
-      return this.equals((RegistryServiceException)that);
-    return false;
-  }
-
-  public boolean equals(RegistryServiceException that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_message = true && this.isSetMessage();
-    boolean that_present_message = true && that.isSetMessage();
-    if (this_present_message || that_present_message) {
-      if (!(this_present_message && that_present_message))
-        return false;
-      if (!this.message.equals(that.message))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_message = true && (isSetMessage());
-    list.add(present_message);
-    if (present_message)
-      list.add(message);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(RegistryServiceException other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetMessage()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
-      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("RegistryServiceException(");
-    boolean first = true;
-
-    sb.append("message:");
-    if (this.message == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.message);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (message == null) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' was not present! Struct: " + toString());
-    }
-    // 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 RegistryServiceExceptionStandardSchemeFactory implements SchemeFactory {
-    public RegistryServiceExceptionStandardScheme getScheme() {
-      return new RegistryServiceExceptionStandardScheme();
-    }
-  }
-
-  private static class RegistryServiceExceptionStandardScheme extends StandardScheme<RegistryServiceException> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, RegistryServiceException 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: // MESSAGE
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.message = iprot.readString();
-              struct.setMessageIsSet(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, RegistryServiceException struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.message != null) {
-        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
-        oprot.writeString(struct.message);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class RegistryServiceExceptionTupleSchemeFactory implements SchemeFactory {
-    public RegistryServiceExceptionTupleScheme getScheme() {
-      return new RegistryServiceExceptionTupleScheme();
-    }
-  }
-
-  private static class RegistryServiceExceptionTupleScheme extends TupleScheme<RegistryServiceException> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, RegistryServiceException struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeString(struct.message);
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, RegistryServiceException struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.message = iprot.readString();
-      struct.setMessageIsSet(true);
-    }
-  }
-
-}
-


[13/14] airavata git commit: updating some external dependencies

Posted by ma...@apache.org.
updating some external dependencies


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/b642ce9d
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/b642ce9d
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/b642ce9d

Branch: refs/heads/develop
Commit: b642ce9dad2aeb66890e35d72a8959ab4d6c01f0
Parents: 7aa0e2f
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Wed Jan 25 15:34:26 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Wed Jan 25 15:34:26 2017 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/airavata/MigrationManager.java  |  4 ++--
 .../apache/airavata/UserProfileAiravataThriftClient.java | 11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/b642ce9d/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
----------------------------------------------------------------------
diff --git a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
index a5161cd..22d770f 100644
--- a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
+++ b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
@@ -23,7 +23,7 @@ package org.apache.airavata;
 
 import org.apache.airavata.common.exception.ApplicationSettingsException;
 import org.apache.airavata.model.user.UserProfile;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
+import org.apache.airavata.userprofile.cpi.UserProfileService;
 import org.apache.thrift.TException;
 import org.wso2.carbon.um.ws.api.stub.ClaimValue;
 import org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceStub;
@@ -108,7 +108,7 @@ public class MigrationManager {
     private boolean migrateUserProfilesToAiravata(List<UserProfileDAO> ISProfileList) throws TException, ApplicationSettingsException {
         System.out.println("Initiating migration to Airavata internal DB ...");
         UserProfileAiravataThriftClient objFactory = new UserProfileAiravataThriftClient();
-        UserProfileCrudeService.Client client = objFactory.getRegistryServiceClient();
+        UserProfileService.Client client = objFactory.getRegistryServiceClient();
         UserProfile airavataUserProfile = new UserProfile();
         // Here are the data associations...
         for(UserProfileDAO ISProfile : ISProfileList){

http://git-wip-us.apache.org/repos/asf/airavata/blob/b642ce9d/modules/user-profile-migration/src/main/java/org/apache/airavata/UserProfileAiravataThriftClient.java
----------------------------------------------------------------------
diff --git a/modules/user-profile-migration/src/main/java/org/apache/airavata/UserProfileAiravataThriftClient.java b/modules/user-profile-migration/src/main/java/org/apache/airavata/UserProfileAiravataThriftClient.java
index 9e5568f..7785148 100644
--- a/modules/user-profile-migration/src/main/java/org/apache/airavata/UserProfileAiravataThriftClient.java
+++ b/modules/user-profile-migration/src/main/java/org/apache/airavata/UserProfileAiravataThriftClient.java
@@ -23,9 +23,9 @@ package org.apache.airavata;
 
 import org.apache.airavata.common.exception.ApplicationSettingsException;
 import org.apache.airavata.common.utils.ServerSettings;
-import org.apache.airavata.registry.api.exception.RegistryServiceException;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
-import org.apache.airavata.userprofile.crude.cpi.client.UserProfileServiceClientFactory;
+import org.apache.airavata.userprofile.cpi.UserProfileService;
+import org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException;
+import org.apache.airavata.userprofile.cpi.client.UserProfileServiceClientFactory;
 import org.apache.thrift.TException;
 
 import java.util.ArrayList;
@@ -33,12 +33,13 @@ import java.util.List;
 
 public class UserProfileAiravataThriftClient {
 
-    public UserProfileCrudeService.Client getRegistryServiceClient() throws TException, ApplicationSettingsException {
+    public UserProfileService.Client getRegistryServiceClient() throws TException, ApplicationSettingsException {
+        // Check the server ports before running migration
         final int serverPort = Integer.parseInt(ServerSettings.getRegistryServerPort());
         final String serverHost = ServerSettings.getRegistryServerHost();
         try {
             return UserProfileServiceClientFactory.createRegistryClient(serverHost, serverPort);
-        } catch (RegistryServiceException e) {
+        } catch (UserProfileServiceException e) {
             throw new TException("Unable to create registry client...", e);
         }
     }


[12/14] airavata git commit: adding user profile client, which was accidently deleted in last commit

Posted by ma...@apache.org.
adding user profile client, which was accidently deleted in last commit


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/7aa0e2fb
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/7aa0e2fb
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/7aa0e2fb

Branch: refs/heads/develop
Commit: 7aa0e2fba44ee50089555daaa1c8362024788a64
Parents: 39e2220
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Wed Jan 25 15:10:30 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Wed Jan 25 15:10:30 2017 -0500

----------------------------------------------------------------------
 .../client/UserProfileServiceClientFactory.java | 43 ++++++++++++++++++++
 1 file changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/7aa0e2fb/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/client/UserProfileServiceClientFactory.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/client/UserProfileServiceClientFactory.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/client/UserProfileServiceClientFactory.java
new file mode 100644
index 0000000..dccecce
--- /dev/null
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/client/UserProfileServiceClientFactory.java
@@ -0,0 +1,43 @@
+/*
+ *
+ * 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.
+ *
+ */
+package org.apache.airavata.userprofile.cpi.client;
+
+import org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException;
+import org.apache.airavata.userprofile.cpi.UserProfileService;
+import org.apache.thrift.protocol.TBinaryProtocol;
+import org.apache.thrift.protocol.TProtocol;
+import org.apache.thrift.transport.TSocket;
+import org.apache.thrift.transport.TTransport;
+import org.apache.thrift.transport.TTransportException;
+
+
+public class UserProfileServiceClientFactory {
+    public static UserProfileService.Client createRegistryClient(String serverHost, int serverPort)  throws UserProfileServiceException {
+        try {
+            TTransport transport = new TSocket(serverHost, serverPort);
+            transport.open();
+            TProtocol protocol = new TBinaryProtocol(transport);
+            return new UserProfileService.Client(protocol);
+        } catch (TTransportException e) {
+            throw new UserProfileServiceException();
+        }
+    }
+}
\ No newline at end of file


[10/14] airavata git commit: renaming classes and including userProfileSerive exception

Posted by ma...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/UserProfileService.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/UserProfileService.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/UserProfileService.java
new file mode 100644
index 0000000..f39b102
--- /dev/null
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/cpi/UserProfileService.java
@@ -0,0 +1,7504 @@
+    /*
+     * 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.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.userprofile.cpi;
+
+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)")
+public class UserProfileService {
+
+  public interface Iface {
+
+    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public boolean deleteUserProfile(String userId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException;
+
+  }
+
+  public interface AsyncIface {
+
+    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
+  }
+
+  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
+    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
+      public Factory() {}
+      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
+        return new Client(prot);
+      }
+      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+        return new Client(iprot, oprot);
+      }
+    }
+
+    public Client(org.apache.thrift.protocol.TProtocol prot)
+    {
+      super(prot, prot);
+    }
+
+    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+      super(iprot, oprot);
+    }
+
+    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_addUserProfile(userProfile);
+      return recv_addUserProfile();
+    }
+
+    public void send_addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
+    {
+      addUserProfile_args args = new addUserProfile_args();
+      args.setUserProfile(userProfile);
+      sendBase("addUserProfile", args);
+    }
+
+    public String recv_addUserProfile() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      addUserProfile_result result = new addUserProfile_result();
+      receiveBase(result, "addUserProfile");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUserProfile failed: unknown result");
+    }
+
+    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_updateUserProfile(userProfile);
+      return recv_updateUserProfile();
+    }
+
+    public void send_updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
+    {
+      updateUserProfile_args args = new updateUserProfile_args();
+      args.setUserProfile(userProfile);
+      sendBase("updateUserProfile", args);
+    }
+
+    public boolean recv_updateUserProfile() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      updateUserProfile_result result = new updateUserProfile_result();
+      receiveBase(result, "updateUserProfile");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserProfile failed: unknown result");
+    }
+
+    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_getUserProfileById(userId, gatewayId);
+      return recv_getUserProfileById();
+    }
+
+    public void send_getUserProfileById(String userId, String gatewayId) throws org.apache.thrift.TException
+    {
+      getUserProfileById_args args = new getUserProfileById_args();
+      args.setUserId(userId);
+      args.setGatewayId(gatewayId);
+      sendBase("getUserProfileById", args);
+    }
+
+    public org.apache.airavata.model.user.UserProfile recv_getUserProfileById() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      getUserProfileById_result result = new getUserProfileById_result();
+      receiveBase(result, "getUserProfileById");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileById failed: unknown result");
+    }
+
+    public boolean deleteUserProfile(String userId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_deleteUserProfile(userId);
+      return recv_deleteUserProfile();
+    }
+
+    public void send_deleteUserProfile(String userId) throws org.apache.thrift.TException
+    {
+      deleteUserProfile_args args = new deleteUserProfile_args();
+      args.setUserId(userId);
+      sendBase("deleteUserProfile", args);
+    }
+
+    public boolean recv_deleteUserProfile() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      deleteUserProfile_result result = new deleteUserProfile_result();
+      receiveBase(result, "deleteUserProfile");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUserProfile failed: unknown result");
+    }
+
+    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_getAllUserProfilesInGateway(gatewayId, offset, limit);
+      return recv_getAllUserProfilesInGateway();
+    }
+
+    public void send_getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.thrift.TException
+    {
+      getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
+      args.setGatewayId(gatewayId);
+      args.setOffset(offset);
+      args.setLimit(limit);
+      sendBase("getAllUserProfilesInGateway", args);
+    }
+
+    public List<org.apache.airavata.model.user.UserProfile> recv_getAllUserProfilesInGateway() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
+      receiveBase(result, "getAllUserProfilesInGateway");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProfilesInGateway failed: unknown result");
+    }
+
+    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_getUserProfileByName(userName, gatewayId);
+      return recv_getUserProfileByName();
+    }
+
+    public void send_getUserProfileByName(String userName, String gatewayId) throws org.apache.thrift.TException
+    {
+      getUserProfileByName_args args = new getUserProfileByName_args();
+      args.setUserName(userName);
+      args.setGatewayId(gatewayId);
+      sendBase("getUserProfileByName", args);
+    }
+
+    public org.apache.airavata.model.user.UserProfile recv_getUserProfileByName() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      getUserProfileByName_result result = new getUserProfileByName_result();
+      receiveBase(result, "getUserProfileByName");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileByName failed: unknown result");
+    }
+
+    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      send_doesUserExist(userName, gatewayId);
+      return recv_doesUserExist();
+    }
+
+    public void send_doesUserExist(String userName, String gatewayId) throws org.apache.thrift.TException
+    {
+      doesUserExist_args args = new doesUserExist_args();
+      args.setUserName(userName);
+      args.setGatewayId(gatewayId);
+      sendBase("doesUserExist", args);
+    }
+
+    public boolean recv_doesUserExist() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, org.apache.thrift.TException
+    {
+      doesUserExist_result result = new doesUserExist_result();
+      receiveBase(result, "doesUserExist");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.userProfileException != null) {
+        throw result.userProfileException;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doesUserExist 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> {
+      private org.apache.thrift.async.TAsyncClientManager clientManager;
+      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
+      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
+        this.clientManager = clientManager;
+        this.protocolFactory = protocolFactory;
+      }
+      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
+        return new AsyncClient(protocolFactory, clientManager, transport);
+      }
+    }
+
+    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
+      super(protocolFactory, clientManager, transport);
+    }
+
+    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      addUserProfile_call method_call = new addUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class addUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private org.apache.airavata.model.user.UserProfile userProfile;
+      public addUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        addUserProfile_args args = new addUserProfile_args();
+        args.setUserProfile(userProfile);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public String getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_addUserProfile();
+      }
+    }
+
+    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      updateUserProfile_call method_call = new updateUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class updateUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private org.apache.airavata.model.user.UserProfile userProfile;
+      public updateUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        updateUserProfile_args args = new updateUserProfile_args();
+        args.setUserProfile(userProfile);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public boolean getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_updateUserProfile();
+      }
+    }
+
+    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      getUserProfileById_call method_call = new getUserProfileById_call(userId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class getUserProfileById_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String userId;
+      private String gatewayId;
+      public getUserProfileById_call(String userId, String gatewayId, 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.userId = userId;
+        this.gatewayId = gatewayId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileById", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        getUserProfileById_args args = new getUserProfileById_args();
+        args.setUserId(userId);
+        args.setGatewayId(gatewayId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_getUserProfileById();
+      }
+    }
+
+    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      deleteUserProfile_call method_call = new deleteUserProfile_call(userId, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class deleteUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String userId;
+      public deleteUserProfile_call(String userId, 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.userId = userId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        deleteUserProfile_args args = new deleteUserProfile_args();
+        args.setUserId(userId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public boolean getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_deleteUserProfile();
+      }
+    }
+
+    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      getAllUserProfilesInGateway_call method_call = new getAllUserProfilesInGateway_call(gatewayId, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class getAllUserProfilesInGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String gatewayId;
+      private int offset;
+      private int limit;
+      public getAllUserProfilesInGateway_call(String gatewayId, int offset, int limit, 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.gatewayId = gatewayId;
+        this.offset = offset;
+        this.limit = limit;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProfilesInGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
+        args.setGatewayId(gatewayId);
+        args.setOffset(offset);
+        args.setLimit(limit);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public List<org.apache.airavata.model.user.UserProfile> getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_getAllUserProfilesInGateway();
+      }
+    }
+
+    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      getUserProfileByName_call method_call = new getUserProfileByName_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class getUserProfileByName_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String userName;
+      private String gatewayId;
+      public getUserProfileByName_call(String userName, String gatewayId, 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.userName = userName;
+        this.gatewayId = gatewayId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        getUserProfileByName_args args = new getUserProfileByName_args();
+        args.setUserName(userName);
+        args.setGatewayId(gatewayId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_getUserProfileByName();
+      }
+    }
+
+    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      doesUserExist_call method_call = new doesUserExist_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class doesUserExist_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String userName;
+      private String gatewayId;
+      public doesUserExist_call(String userName, String gatewayId, 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.userName = userName;
+        this.gatewayId = gatewayId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doesUserExist", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        doesUserExist_args args = new doesUserExist_args();
+        args.setUserName(userName);
+        args.setGatewayId(gatewayId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public boolean getResult() throws org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException, 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_doesUserExist();
+      }
+    }
+
+  }
+
+  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
+    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
+    public Processor(I iface) {
+      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
+    }
+
+    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
+      processMap.put("addUserProfile", new addUserProfile());
+      processMap.put("updateUserProfile", new updateUserProfile());
+      processMap.put("getUserProfileById", new getUserProfileById());
+      processMap.put("deleteUserProfile", new deleteUserProfile());
+      processMap.put("getAllUserProfilesInGateway", new getAllUserProfilesInGateway());
+      processMap.put("getUserProfileByName", new getUserProfileByName());
+      processMap.put("doesUserExist", new doesUserExist());
+      return processMap;
+    }
+
+    public static class addUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserProfile_args> {
+      public addUserProfile() {
+        super("addUserProfile");
+      }
+
+      public addUserProfile_args getEmptyArgsInstance() {
+        return new addUserProfile_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public addUserProfile_result getResult(I iface, addUserProfile_args args) throws org.apache.thrift.TException {
+        addUserProfile_result result = new addUserProfile_result();
+        try {
+          result.success = iface.addUserProfile(args.userProfile);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class updateUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserProfile_args> {
+      public updateUserProfile() {
+        super("updateUserProfile");
+      }
+
+      public updateUserProfile_args getEmptyArgsInstance() {
+        return new updateUserProfile_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public updateUserProfile_result getResult(I iface, updateUserProfile_args args) throws org.apache.thrift.TException {
+        updateUserProfile_result result = new updateUserProfile_result();
+        try {
+          result.success = iface.updateUserProfile(args.userProfile);
+          result.setSuccessIsSet(true);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class getUserProfileById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserProfileById_args> {
+      public getUserProfileById() {
+        super("getUserProfileById");
+      }
+
+      public getUserProfileById_args getEmptyArgsInstance() {
+        return new getUserProfileById_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public getUserProfileById_result getResult(I iface, getUserProfileById_args args) throws org.apache.thrift.TException {
+        getUserProfileById_result result = new getUserProfileById_result();
+        try {
+          result.success = iface.getUserProfileById(args.userId, args.gatewayId);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class deleteUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUserProfile_args> {
+      public deleteUserProfile() {
+        super("deleteUserProfile");
+      }
+
+      public deleteUserProfile_args getEmptyArgsInstance() {
+        return new deleteUserProfile_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public deleteUserProfile_result getResult(I iface, deleteUserProfile_args args) throws org.apache.thrift.TException {
+        deleteUserProfile_result result = new deleteUserProfile_result();
+        try {
+          result.success = iface.deleteUserProfile(args.userId);
+          result.setSuccessIsSet(true);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class getAllUserProfilesInGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUserProfilesInGateway_args> {
+      public getAllUserProfilesInGateway() {
+        super("getAllUserProfilesInGateway");
+      }
+
+      public getAllUserProfilesInGateway_args getEmptyArgsInstance() {
+        return new getAllUserProfilesInGateway_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public getAllUserProfilesInGateway_result getResult(I iface, getAllUserProfilesInGateway_args args) throws org.apache.thrift.TException {
+        getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
+        try {
+          result.success = iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class getUserProfileByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserProfileByName_args> {
+      public getUserProfileByName() {
+        super("getUserProfileByName");
+      }
+
+      public getUserProfileByName_args getEmptyArgsInstance() {
+        return new getUserProfileByName_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public getUserProfileByName_result getResult(I iface, getUserProfileByName_args args) throws org.apache.thrift.TException {
+        getUserProfileByName_result result = new getUserProfileByName_result();
+        try {
+          result.success = iface.getUserProfileByName(args.userName, args.gatewayId);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+    public static class doesUserExist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doesUserExist_args> {
+      public doesUserExist() {
+        super("doesUserExist");
+      }
+
+      public doesUserExist_args getEmptyArgsInstance() {
+        return new doesUserExist_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public doesUserExist_result getResult(I iface, doesUserExist_args args) throws org.apache.thrift.TException {
+        doesUserExist_result result = new doesUserExist_result();
+        try {
+          result.success = iface.doesUserExist(args.userName, args.gatewayId);
+          result.setSuccessIsSet(true);
+        } catch (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+          result.userProfileException = userProfileException;
+        }
+        return result;
+      }
+    }
+
+  }
+
+  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
+    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+    public AsyncProcessor(I iface) {
+      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+    }
+
+    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
+      processMap.put("addUserProfile", new addUserProfile());
+      processMap.put("updateUserProfile", new updateUserProfile());
+      processMap.put("getUserProfileById", new getUserProfileById());
+      processMap.put("deleteUserProfile", new deleteUserProfile());
+      processMap.put("getAllUserProfilesInGateway", new getAllUserProfilesInGateway());
+      processMap.put("getUserProfileByName", new getUserProfileByName());
+      processMap.put("doesUserExist", new doesUserExist());
+      return processMap;
+    }
+
+    public static class addUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addUserProfile_args, String> {
+      public addUserProfile() {
+        super("addUserProfile");
+      }
+
+      public addUserProfile_args getEmptyArgsInstance() {
+        return new addUserProfile_args();
+      }
+
+      public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<String>() { 
+          public void onComplete(String o) {
+            addUserProfile_result result = new addUserProfile_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;
+            addUserProfile_result result = new addUserProfile_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, addUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+        iface.addUserProfile(args.userProfile,resultHandler);
+      }
+    }
+
+    public static class updateUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateUserProfile_args, Boolean> {
+      public updateUserProfile() {
+        super("updateUserProfile");
+      }
+
+      public updateUserProfile_args getEmptyArgsInstance() {
+        return new updateUserProfile_args();
+      }
+
+      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            updateUserProfile_result result = new updateUserProfile_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            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;
+            updateUserProfile_result result = new updateUserProfile_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, updateUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+        iface.updateUserProfile(args.userProfile,resultHandler);
+      }
+    }
+
+    public static class getUserProfileById<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserProfileById_args, org.apache.airavata.model.user.UserProfile> {
+      public getUserProfileById() {
+        super("getUserProfileById");
+      }
+
+      public getUserProfileById_args getEmptyArgsInstance() {
+        return new getUserProfileById_args();
+      }
+
+      public AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<org.apache.airavata.model.user.UserProfile>() { 
+          public void onComplete(org.apache.airavata.model.user.UserProfile o) {
+            getUserProfileById_result result = new getUserProfileById_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;
+            getUserProfileById_result result = new getUserProfileById_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, getUserProfileById_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
+        iface.getUserProfileById(args.userId, args.gatewayId,resultHandler);
+      }
+    }
+
+    public static class deleteUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteUserProfile_args, Boolean> {
+      public deleteUserProfile() {
+        super("deleteUserProfile");
+      }
+
+      public deleteUserProfile_args getEmptyArgsInstance() {
+        return new deleteUserProfile_args();
+      }
+
+      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            deleteUserProfile_result result = new deleteUserProfile_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            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;
+            deleteUserProfile_result result = new deleteUserProfile_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, deleteUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+        iface.deleteUserProfile(args.userId,resultHandler);
+      }
+    }
+
+    public static class getAllUserProfilesInGateway<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllUserProfilesInGateway_args, List<org.apache.airavata.model.user.UserProfile>> {
+      public getAllUserProfilesInGateway() {
+        super("getAllUserProfilesInGateway");
+      }
+
+      public getAllUserProfilesInGateway_args getEmptyArgsInstance() {
+        return new getAllUserProfilesInGateway_args();
+      }
+
+      public AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>>() { 
+          public void onComplete(List<org.apache.airavata.model.user.UserProfile> o) {
+            getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_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;
+            getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, getAllUserProfilesInGateway_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> resultHandler) throws TException {
+        iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit,resultHandler);
+      }
+    }
+
+    public static class getUserProfileByName<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserProfileByName_args, org.apache.airavata.model.user.UserProfile> {
+      public getUserProfileByName() {
+        super("getUserProfileByName");
+      }
+
+      public getUserProfileByName_args getEmptyArgsInstance() {
+        return new getUserProfileByName_args();
+      }
+
+      public AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<org.apache.airavata.model.user.UserProfile>() { 
+          public void onComplete(org.apache.airavata.model.user.UserProfile o) {
+            getUserProfileByName_result result = new getUserProfileByName_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;
+            getUserProfileByName_result result = new getUserProfileByName_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, getUserProfileByName_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
+        iface.getUserProfileByName(args.userName, args.gatewayId,resultHandler);
+      }
+    }
+
+    public static class doesUserExist<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, doesUserExist_args, Boolean> {
+      public doesUserExist() {
+        super("doesUserExist");
+      }
+
+      public doesUserExist_args getEmptyArgsInstance() {
+        return new doesUserExist_args();
+      }
+
+      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            doesUserExist_result result = new doesUserExist_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            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;
+            doesUserExist_result result = new doesUserExist_result();
+            if (e instanceof org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) {
+                        result.userProfileException = (org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException) e;
+                        result.setUserProfileExceptionIsSet(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, doesUserExist_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+        iface.doesUserExist(args.userName, args.gatewayId,resultHandler);
+      }
+    }
+
+  }
+
+  public static class addUserProfile_args implements org.apache.thrift.TBase<addUserProfile_args, addUserProfile_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUserProfile_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserProfile_args");
+
+    private static final org.apache.thrift.protocol.TField USER_PROFILE_FIELD_DESC = new org.apache.thrift.protocol.TField("userProfile", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new addUserProfile_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new addUserProfile_argsTupleSchemeFactory());
+    }
+
+    public org.apache.airavata.model.user.UserProfile userProfile; // 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_PROFILE((short)1, "userProfile");
+
+      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_PROFILE
+            return USER_PROFILE;
+          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_PROFILE, new org.apache.thrift.meta_data.FieldMetaData("userProfile", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.user.UserProfile.class)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserProfile_args.class, metaDataMap);
+    }
+
+    public addUserProfile_args() {
+    }
+
+    public addUserProfile_args(
+      org.apache.airavata.model.user.UserProfile userProfile)
+    {
+      this();
+      this.userProfile = userProfile;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public addUserProfile_args(addUserProfile_args other) {
+      if (other.isSetUserProfile()) {
+        this.userProfile = new org.apache.airavata.model.user.UserProfile(other.userProfile);
+      }
+    }
+
+    public addUserProfile_args deepCopy() {
+      return new addUserProfile_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.userProfile = null;
+    }
+
+    public org.apache.airavata.model.user.UserProfile getUserProfile() {
+      return this.userProfile;
+    }
+
+    public addUserProfile_args setUserProfile(org.apache.airavata.model.user.UserProfile userProfile) {
+      this.userProfile = userProfile;
+      return this;
+    }
+
+    public void unsetUserProfile() {
+      this.userProfile = null;
+    }
+
+    /** Returns true if field userProfile is set (has been assigned a value) and false otherwise */
+    public boolean isSetUserProfile() {
+      return this.userProfile != null;
+    }
+
+    public void setUserProfileIsSet(boolean value) {
+      if (!value) {
+        this.userProfile = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case USER_PROFILE:
+        if (value == null) {
+          unsetUserProfile();
+        } else {
+          setUserProfile((org.apache.airavata.model.user.UserProfile)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case USER_PROFILE:
+        return getUserProfile();
+
+      }
+      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_PROFILE:
+        return isSetUserProfile();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof addUserProfile_args)
+        return this.equals((addUserProfile_args)that);
+      return false;
+    }
+
+    public boolean equals(addUserProfile_args that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_userProfile = true && this.isSetUserProfile();
+      boolean that_present_userProfile = true && that.isSetUserProfile();
+      if (this_present_userProfile || that_present_userProfile) {
+        if (!(this_present_userProfile && that_present_userProfile))
+          return false;
+        if (!this.userProfile.equals(that.userProfile))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      List<Object> list = new ArrayList<Object>();
+
+      boolean present_userProfile = true && (isSetUserProfile());
+      list.add(present_userProfile);
+      if (present_userProfile)
+        list.add(userProfile);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(addUserProfile_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = Boolean.valueOf(isSetUserProfile()).compareTo(other.isSetUserProfile());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetUserProfile()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userProfile, other.userProfile);
+        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("addUserProfile_args(");
+      boolean first = true;
+
+      sb.append("userProfile:");
+      if (this.userProfile == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.userProfile);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      if (userProfile == null) {
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
+      }
+      // check for sub-struct validity
+      if (userProfile != null) {
+        userProfile.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 addUserProfile_argsStandardSchemeFactory implements SchemeFactory {
+      public addUserProfile_argsStandardScheme getScheme() {
+        return new addUserProfile_argsStandardScheme();
+      }
+    }
+
+    private static class addUserProfile_argsStandardScheme extends StandardScheme<addUserProfile_args> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_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_PROFILE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.userProfile = new org.apache.airavata.model.user.UserProfile();
+                struct.userProfile.read(iprot);
+                struct.setUserProfileIsSet(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, addUserProfile_args struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.userProfile != null) {
+          oprot.writeFieldBegin(USER_PROFILE_FIELD_DESC);
+          struct.userProfile.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class addUserProfile_argsTupleSchemeFactory implements SchemeFactory {
+      public addUserProfile_argsTupleScheme getScheme() {
+        return new addUserProfile_argsTupleScheme();
+      }
+    }
+
+    private static class addUserProfile_argsTupleScheme extends TupleScheme<addUserProfile_args> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        struct.userProfile.write(oprot);
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        struct.userProfile = new org.apache.airavata.model.user.UserProfile();
+        struct.userProfile.read(iprot);
+        struct.setUserProfileIsSet(true);
+      }
+    }
+
+  }
+
+  public static class addUserProfile_result implements org.apache.thrift.TBase<addUserProfile_result, addUserProfile_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUserProfile_result>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserProfile_result");
+
+    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
+    private static final org.apache.thrift.protocol.TField USER_PROFILE_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("userProfileException", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new addUserProfile_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new addUserProfile_resultTupleSchemeFactory());
+    }
+
+    public String success; // required
+    public org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException; // 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"),
+      USER_PROFILE_EXCEPTION((short)1, "userProfileException");
+
+      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: // USER_PROFILE_EXCEPTION
+            return USER_PROFILE_EXCEPTION;
+          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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      tmpMap.put(_Fields.USER_PROFILE_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("userProfileException", 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(addUserProfile_result.class, metaDataMap);
+    }
+
+    public addUserProfile_result() {
+    }
+
+    public addUserProfile_result(
+      String success,
+      org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException)
+    {
+      this();
+      this.success = success;
+      this.userProfileException = userProfileException;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public addUserProfile_result(addUserProfile_result other) {
+      if (other.isSetSuccess()) {
+        this.success = other.success;
+      }
+      if (other.isSetUserProfileException()) {
+        this.userProfileException = new org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException(other.userProfileException);
+      }
+    }
+
+    public addUserProfile_result deepCopy() {
+      return new addUserProfile_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+      this.userProfileException = null;
+    }
+
+    public String getSuccess() {
+      return this.success;
+    }
+
+    public addUserProfile_result setSuccess(String 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 org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException getUserProfileException() {
+      return this.userProfileException;
+    }
+
+    public addUserProfile_result setUserProfileException(org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException userProfileException) {
+      this.userProfileException = userProfileException;
+      return this;
+    }
+
+    public void unsetUserProfileException() {
+      this.userProfileException = null;
+    }
+
+    /** Returns true if field userProfileException is set (has been assigned a value) and false otherwise */
+    public boolean isSetUserProfileException() {
+      return this.userProfileException != null;
+    }
+
+    public void setUserProfileExceptionIsSet(boolean value) {
+      if (!value) {
+        this.userProfileException = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((String)value);
+        }
+        break;
+
+      case USER_PROFILE_EXCEPTION:
+        if (value == null) {
+          unsetUserProfileException();
+        } else {
+          setUserProfileException((org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
+      case USER_PROFILE_EXCEPTION:
+        return getUserProfileException();
+
+      }
+      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 USER_PROFILE_EXCEPTION:
+        return isSetUserProfileException();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof addUserProfile_result)
+        return this.equals((addUserProfile_result)that);
+      return false;
+    }
+
+    public boolean equals(addUserProfile_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_userProfileException = true && this.isSetUserProfileException();
+      boolean that_present_userProfileException = true && that.isSetUserProfileException();
+      if (this_present_userProfileException || that_present_userProfileException) {
+        if (!(this_present_userProfileException && that_present_userProfileException))
+          return false;
+        if (!this.userProfileException.equals(that.userProfileException))
+          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_userProfileException = true && (isSetUserProfileException());
+      list.add(present_userProfileException);
+      if (present_userProfileException)
+        list.add(userProfileException);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(addUserProfile_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(isSetUserProfileException()).compareTo(other.isSetUserProfileException());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetUserProfileException()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userProfileException, other.userProfileException);
+        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("addUserProfile_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("userProfileException:");
+      if (this.userProfileException == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.userProfileException);
+      }
+      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 addUserProfile_resultStandardSchemeFactory implements SchemeFactory {
+      public addUserProfile_resultStandardScheme getScheme() {
+        return new addUserProfile_resultStandardScheme();
+      }
+    }
+
+    private static class addUserProfile_resultStandardScheme extends StandardScheme<addUserProfile_result> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_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.STRING) {
+                struct.success = iprot.readString();
+                struct.setSuccessIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            case 1: // USER_PROFILE_EXCEPTION
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.userProfileException = new org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException();
+                struct.userProfileException.read(iprot);
+                struct.setUserProfileExceptionIsSet(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, addUserProfile_result struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.success != null) {
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+          oprot.writeString(struct.success);
+          oprot.writeFieldEnd();
+        }
+        if (struct.userProfileException != null) {
+          oprot.writeFieldBegin(USER_PROFILE_EXCEPTION_FIELD_DESC);
+          struct.userProfileException.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class addUserProfile_resultTupleSchemeFactory implements SchemeFactory {
+      public addUserProfile_resultTupleScheme getScheme() {
+        return new addUserProfile_resultTupleScheme();
+      }
+    }
+
+    private static class addUserProfile_resultTupleScheme extends TupleScheme<addUserProfile_result> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetSuccess()) {
+          optionals.set(0);
+        }
+        if (struct.isSetUserProfileException()) {
+          optionals.set(1);
+        }
+        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetSuccess()) {
+          oprot.writeString(struct.success);
+        }
+        if (struct.isSetUserProfileException()) {
+          struct.userProfileException.write(oprot);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(2);
+        if (incoming.get(0)) {
+          struct.success = iprot.readString();
+          struct.setSuccessIsSet(true);
+        }
+        if (incoming.get(1)) {
+          struct.userProfileException = new org.apache.airavata.userprofile.cpi.exception.UserProfileServiceException();
+          struct.userProfileException.read(iprot);
+          

<TRUNCATED>

[03/14] airavata git commit: making corrections to user profile service code

Posted by ma...@apache.org.
making corrections to user profile service code


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/8f6f2183
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/8f6f2183
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/8f6f2183

Branch: refs/heads/develop
Commit: 8f6f2183c42b1ce1432b93b4ade892f1f122fb2d
Parents: e0fbde2
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Tue Jan 24 18:45:59 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Tue Jan 24 18:45:59 2017 -0500

----------------------------------------------------------------------
 .../user-profile-service/.classpath             |  26 --
 .../user-profile/user-profile-service/pom.xml   |  14 +-
 .../server/UserProfileHandler.java              |  85 ----
 .../server/UserProfileServer.java               | 141 ------
 .../user/profile/server/UserProfileHandler.java | 102 ++++
 .../user/profile/server/UserProfileServer.java  | 159 +++++++
 modules/user-profile/user-profile-stubs/pom.xml |  34 +-
 .../api/exception/RegistryServiceException.java |   2 +-
 .../airavata/userprofile/crude/cpi/Test.java    |  14 -
 .../crude/cpi/UserProfileCrudeService.java      | 462 ++++++++++---------
 .../cpi/user_profile_crud_cpiConstants.java     |  16 +
 .../component-cpis/generate-cpi-stubs.sh        |   9 +-
 .../component-cpis/user-profile-crud-cpi.thrift |  58 +++
 13 files changed, 622 insertions(+), 500 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/.classpath
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/.classpath b/modules/user-profile/user-profile-service/.classpath
deleted file mode 100644
index af1430b..0000000
--- a/modules/user-profile/user-profile-service/.classpath
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="src" output="target/classes" path="src/main/java">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="output" path="target/classes"/>
-</classpath>

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/pom.xml
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/pom.xml b/modules/user-profile/user-profile-service/pom.xml
index 3e35699..0839735 100644
--- a/modules/user-profile/user-profile-service/pom.xml
+++ b/modules/user-profile/user-profile-service/pom.xml
@@ -2,26 +2,28 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <groupId>org.apache.airavata</groupId>
+        <artifactId>airavata</artifactId>
+        <version>0.17-SNAPSHOT</version>
+        <relativePath>../../../pom.xml</relativePath>
+    </parent>
     <modelVersion>4.0.0</modelVersion>
-
-    <groupId>org.apache.airavata</groupId>
     <artifactId>user-profile-service</artifactId>
-    <version>0.17-SNAPSHOT</version>
+    <name>Airavata user profile service</name>
+    <description>Module to expose a user profile registry as a thrift service</description>
 
     <dependencies>
-
         <dependency>
             <groupId>org.apache.airavata</groupId>
             <artifactId>airavata-commons</artifactId>
             <version>${project.version}</version>
         </dependency>
-
         <dependency>
             <groupId>org.apache.airavata</groupId>
             <artifactId>user-profile-stubs</artifactId>
             <version>${project.version}</version>
         </dependency>
-
     </dependencies>
     
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileHandler.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileHandler.java b/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileHandler.java
deleted file mode 100644
index f07426c..0000000
--- a/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileHandler.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package com.apache.airavata.user.profile.server;
-
-import org.apache.airavata.model.user.UserProfile;
-import org.apache.airavata.registry.api.exception.RegistryServiceException;
-import org.apache.airavata.registry.core.entities.workspacecatalog.UserProfileEntity;
-import org.apache.airavata.registry.core.repositories.workspacecatalog.UserProfileRepository;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
-import org.apache.thrift.TException;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Created by Airavata on 11/11/2016.
- */
-public class UserProfileHandler implements UserProfileCrudeService.Iface {
-
-    private UserProfileRepository userProfileRepository;
-
-    public UserProfileHandler() {
-
-        userProfileRepository = new UserProfileRepository(UserProfile.class, UserProfileEntity.class);
-    }
-
-    public String addUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
-
-        userProfileRepository.create(userProfile);
-
-        if (null != userProfile)
-            return userProfile.getUserId();
-
-        return null;
-    }
-
-    public boolean updateUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
-
-        try {
-            userProfileRepository.update(userProfile);
-        } catch (Exception e) {
-
-            return false;
-        }
-
-        return true;
-    }
-
-    public UserProfile getUserProfileById(String userId, String gatewayId) throws RegistryServiceException, TException {
-
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByIdAndGateWay(userId, gatewayId);
-
-        return userProfile;
-    }
-
-    public boolean deleteUserProfile(String userId) throws RegistryServiceException, TException {
-
-        boolean deleteResult = userProfileRepository.delete(userId);
-
-        return deleteResult;
-    }
-
-
-
-    public List<UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws RegistryServiceException, TException {
-        List<UserProfile> usersInGateway = userProfileRepository.getAllUserProfilesInGateway(gatewayId, offset, limit);
-        return usersInGateway;
-    }
-
-
-    public UserProfile getUserProfileByName(String userName, String gatewayId) throws RegistryServiceException, TException {
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
-        return userProfile;
-    }
-
-    public boolean doesUserExist(String userName, String gatewayId) throws RegistryServiceException, TException {
-
-        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
-
-        if (null != userProfile)
-            return true;
-        return false;
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileServer.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileServer.java b/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileServer.java
deleted file mode 100644
index 53fd539..0000000
--- a/modules/user-profile/user-profile-service/src/main/java/com.apache.airavata.user.profile/server/UserProfileServer.java
+++ /dev/null
@@ -1,141 +0,0 @@
-package com.apache.airavata.user.profile.server;
-
-import org.apache.airavata.common.utils.IServer;
-import org.apache.airavata.common.utils.ServerSettings;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
-import org.apache.thrift.server.TServer;
-import org.apache.thrift.server.TThreadPoolServer;
-import org.apache.thrift.transport.TServerSocket;
-import org.apache.thrift.transport.TServerTransport;
-import org.apache.thrift.transport.TTransportException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.net.InetSocketAddress;
-import java.util.Date;
-
-/**
- * Created by abhij on 11/11/2016.
- */
-public class UserProfileServer implements IServer {
-
-    private final static Logger logger = LoggerFactory.getLogger(UserProfileServer.class);
-
-    private static final String SERVER_NAME = "User Profile Server";
-    private static final String SERVER_VERSION = "1.0";
-
-    private IServer.ServerStatus status;
-    private TServer server;
-
-    public UserProfileServer() {
-        setStatus(IServer.ServerStatus.STOPPED);
-    }
-
-    public void updateTime() {
-
-    }
-
-    public Date getTime() {
-        return null;
-    }
-
-    public String getName() {
-        return SERVER_NAME;
-    }
-
-    public String getVersion() {
-        return SERVER_VERSION;
-    }
-
-    public void start() throws Exception {
-
-
-        try {
-            setStatus(ServerStatus.STARTING);
-            final int serverPort = Integer.parseInt(ServerSettings.getUserProfileServerPort());
-            final String serverHost = ServerSettings.getUserProfileServerHost();
-            UserProfileCrudeService.Processor processor = new UserProfileCrudeService.Processor(new UserProfileHandler());
-
-            TServerTransport serverTransport;
-
-            if (serverHost == null) {
-                serverTransport = new TServerSocket(serverPort);
-            } else {
-                InetSocketAddress inetSocketAddress = new InetSocketAddress(serverHost, serverPort);
-                serverTransport = new TServerSocket(inetSocketAddress);
-            }
-            TThreadPoolServer.Args options = new TThreadPoolServer.Args(serverTransport);
-            options.minWorkerThreads = 30;
-            server = new TThreadPoolServer(options.processor(processor));
-
-            new Thread() {
-                public void run() {
-                    server.serve();
-                    setStatus(ServerStatus.STOPPED);
-                    logger.info("User Profile Server Stopped.");
-                }
-            }.start();
-            new Thread() {
-                public void run() {
-                    while (!server.isServing()) {
-                        try {
-                            Thread.sleep(500);
-                        } catch (InterruptedException e) {
-                            break;
-                        }
-                    }
-                    if (server.isServing()) {
-                        setStatus(ServerStatus.STARTED);
-                        logger.info("Starting User Profile Server on Port " + serverPort);
-                        logger.info("Listening to User Profile server clients ....");
-                    }
-                }
-            }.start();
-        } catch (TTransportException e) {
-            setStatus(ServerStatus.FAILED);
-            throw new Exception("Error while starting the User Profile service", e);
-        }
-    }
-
-    public void stop() throws Exception {
-
-        if (server!=null && server.isServing()){
-            setStatus(ServerStatus.STOPING);
-            server.stop();
-        }
-    }
-
-    public void restart() throws Exception {
-
-        stop();
-        start();
-    }
-
-    public void configure() throws Exception {
-
-    }
-
-    public ServerStatus getStatus() throws Exception {
-        return status;    }
-
-    private void setStatus(IServer.ServerStatus stat){
-        status=stat;
-        status.updateTime();
-    }
-
-    public TServer getServer() {
-        return server;
-    }
-
-    public void setServer(TServer server) {
-        this.server = server;
-    }
-
-    public static void main(String[] args) {
-        try {
-            new UserProfileServer().start();
-        } catch (Exception e) {
-            logger.error(e.getMessage(), e);
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
new file mode 100644
index 0000000..369ec1c
--- /dev/null
+++ b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileHandler.java
@@ -0,0 +1,102 @@
+/*
+ *
+ * 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.
+ *
+*/
+package org.apache.airavata.user.profile.server;
+
+import org.apache.airavata.model.user.UserProfile;
+import org.apache.airavata.registry.api.exception.RegistryServiceException;
+import org.apache.airavata.registry.core.entities.workspacecatalog.UserProfileEntity;
+import org.apache.airavata.registry.core.repositories.workspacecatalog.UserProfileRepository;
+import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
+import org.apache.thrift.TException;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class UserProfileHandler implements UserProfileCrudeService.Iface {
+
+    private UserProfileRepository userProfileRepository;
+
+    public UserProfileHandler() {
+
+        userProfileRepository = new UserProfileRepository(UserProfile.class, UserProfileEntity.class);
+    }
+
+    public String addUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
+
+        userProfileRepository.create(userProfile);
+
+        if (null != userProfile)
+            return userProfile.getUserId();
+
+        return null;
+    }
+
+    public boolean updateUserProfile(UserProfile userProfile) throws RegistryServiceException, TException {
+
+        try {
+            userProfileRepository.update(userProfile);
+        } catch (Exception e) {
+
+            return false;
+        }
+
+        return true;
+    }
+
+    public UserProfile getUserProfileById(String userId, String gatewayId) throws RegistryServiceException, TException {
+
+
+        UserProfile userProfile = userProfileRepository.getUserProfileByIdAndGateWay(userId, gatewayId);
+
+        return userProfile;
+    }
+
+    public boolean deleteUserProfile(String userId) throws RegistryServiceException, TException {
+
+        boolean deleteResult = userProfileRepository.delete(userId);
+
+        return deleteResult;
+    }
+
+
+
+    public List<UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws RegistryServiceException, TException {
+        List<UserProfile> usersInGateway = userProfileRepository.getAllUserProfilesInGateway(gatewayId, offset, limit);
+        return usersInGateway;
+    }
+
+
+    public UserProfile getUserProfileByName(String userName, String gatewayId) throws RegistryServiceException, TException {
+
+        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
+        return userProfile;
+    }
+
+    public boolean doesUserExist(String userName, String gatewayId) throws RegistryServiceException, TException {
+
+        UserProfile userProfile = userProfileRepository.getUserProfileByNameAndGateWay(userName, gatewayId);
+
+        if (null != userProfile)
+            return true;
+        return false;
+    }
+}

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
new file mode 100644
index 0000000..a45d2d4
--- /dev/null
+++ b/modules/user-profile/user-profile-service/src/main/java/org/apache/airavata/user/profile/server/UserProfileServer.java
@@ -0,0 +1,159 @@
+/*
+ *
+ * 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.
+ *
+*/
+
+package org.apache.airavata.user.profile.server;
+
+import org.apache.airavata.common.utils.IServer;
+import org.apache.airavata.common.utils.ServerSettings;
+import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
+import org.apache.thrift.server.TServer;
+import org.apache.thrift.server.TThreadPoolServer;
+import org.apache.thrift.transport.TServerSocket;
+import org.apache.thrift.transport.TServerTransport;
+import org.apache.thrift.transport.TTransportException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.net.InetSocketAddress;
+import java.util.Date;
+
+public class UserProfileServer implements IServer {
+
+    private final static Logger logger = LoggerFactory.getLogger(UserProfileServer.class);
+
+    private static final String SERVER_NAME = "User Profile Server";
+    private static final String SERVER_VERSION = "1.0";
+
+    private IServer.ServerStatus status;
+    private TServer server;
+
+    public UserProfileServer() {
+        setStatus(IServer.ServerStatus.STOPPED);
+    }
+
+    public void updateTime() {
+
+    }
+
+    public Date getTime() {
+        return null;
+    }
+
+    public String getName() {
+        return SERVER_NAME;
+    }
+
+    public String getVersion() {
+        return SERVER_VERSION;
+    }
+
+    public void start() throws Exception {
+
+        try {
+            setStatus(ServerStatus.STARTING);
+            final int serverPort = Integer.parseInt(ServerSettings.getUserProfileServerPort());
+            final String serverHost = ServerSettings.getUserProfileServerHost();
+            UserProfileCrudeService.Processor processor = new UserProfileCrudeService.Processor(new UserProfileHandler());
+
+            TServerTransport serverTransport;
+
+            if (serverHost == null) {
+                serverTransport = new TServerSocket(serverPort);
+            } else {
+                InetSocketAddress inetSocketAddress = new InetSocketAddress(serverHost, serverPort);
+                serverTransport = new TServerSocket(inetSocketAddress);
+            }
+            TThreadPoolServer.Args options = new TThreadPoolServer.Args(serverTransport);
+            options.minWorkerThreads = 30;
+            server = new TThreadPoolServer(options.processor(processor));
+
+            new Thread() {
+                public void run() {
+                    server.serve();
+                    setStatus(ServerStatus.STOPPED);
+                    logger.info("User Profile Server Stopped.");
+                }
+            }.start();
+            new Thread() {
+                public void run() {
+                    while (!server.isServing()) {
+                        try {
+                            Thread.sleep(500);
+                        } catch (InterruptedException e) {
+                            break;
+                        }
+                    }
+                    if (server.isServing()) {
+                        setStatus(ServerStatus.STARTED);
+                        logger.info("Starting User Profile Server on Port " + serverPort);
+                        logger.info("Listening to User Profile server clients ....");
+                    }
+                }
+            }.start();
+        } catch (TTransportException e) {
+            setStatus(ServerStatus.FAILED);
+            throw new Exception("Error while starting the User Profile service", e);
+        }
+    }
+
+    public void stop() throws Exception {
+
+        if (server != null && server.isServing()) {
+            setStatus(ServerStatus.STOPING);
+            server.stop();
+        }
+    }
+
+    public void restart() throws Exception {
+
+        stop();
+        start();
+    }
+
+    public void configure() throws Exception {
+
+    }
+
+    public ServerStatus getStatus() throws Exception {
+        return status;
+    }
+
+    private void setStatus(IServer.ServerStatus stat) {
+        status = stat;
+        status.updateTime();
+    }
+
+    public TServer getServer() {
+        return server;
+    }
+
+    public void setServer(TServer server) {
+        this.server = server;
+    }
+
+    public static void main(String[] args) {
+        try {
+            new UserProfileServer().start();
+        } catch (Exception e) {
+            logger.error(e.getMessage(), e);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/pom.xml
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/pom.xml b/modules/user-profile/user-profile-stubs/pom.xml
index 3f9bce8..59c72eb 100644
--- a/modules/user-profile/user-profile-stubs/pom.xml
+++ b/modules/user-profile/user-profile-stubs/pom.xml
@@ -11,14 +11,16 @@
 	language governing permissions and limitations under the License. -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <artifactId>user-profile</artifactId>
         <groupId>org.apache.airavata</groupId>
+        <artifactId>airavata</artifactId>
         <version>0.17-SNAPSHOT</version>
+        <relativePath>../../../pom.xml</relativePath>
     </parent>
-    <modelVersion>4.0.0</modelVersion>
 
+    <modelVersion>4.0.0</modelVersion>
     <artifactId>user-profile-stubs</artifactId>
-
+    <name>Airavata user profile service stubs</name>
+    <description>thrift generated user profile service stubs</description>
 
     <dependencies>
         <dependency>
@@ -32,4 +34,30 @@
             <version>${project.version}</version>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>com.google.code.maven-replacer-plugin</groupId>
+                <artifactId>replacer</artifactId>
+                <version>${maven.replacer.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>replace</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <includes>
+                        <include>${basedir}/src/main/java/org/apache/airavata/**/*.java</include>
+                    </includes>
+                    <token>, date = ".*"</token>
+                    <value> </value>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
index 154ea74..7ada9c5 100644
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/registry/api/exception/RegistryServiceException.java
@@ -50,7 +50,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-11-18")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
 public class RegistryServiceException extends TException implements org.apache.thrift.TBase<RegistryServiceException, RegistryServiceException._Fields>, java.io.Serializable, Cloneable, Comparable<RegistryServiceException> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RegistryServiceException");
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/Test.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/Test.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/Test.java
deleted file mode 100644
index 9914906..0000000
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/Test.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.apache.airavata.userprofile.crude.cpi;
-
-import org.apache.airavata.model.user.UserProfile;
-
-/**
- * Created by abhij on 11/17/2016.
- */
-public class Test {
-
-    public static void main(String args[])  {
-
-        System.out.println();
-    }
-}


[02/14] airavata git commit: making corrections to user profile service code

Posted by ma...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
index 7692d99..29ae7da 100644
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
@@ -1,3 +1,19 @@
+    /*
+     * 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.3)
  *
@@ -34,42 +50,42 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-11-29")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
 public class UserProfileCrudeService {
 
   public interface Iface {
 
-    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
-    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException;
+    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
 
   }
 
   public interface AsyncIface {
 
-    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler) throws TException;
+    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler) throws TException;
+    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void getUserProfileById(String userId, String gatewayId, AsyncMethodCallback resultHandler) throws TException;
+    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void deleteUserProfile(String userId, AsyncMethodCallback resultHandler) throws TException;
+    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, AsyncMethodCallback resultHandler) throws TException;
+    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void getUserProfileByName(String userName, String gatewayId, AsyncMethodCallback resultHandler) throws TException;
+    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
-    public void doesUserExist(String userName, String gatewayId, AsyncMethodCallback resultHandler) throws TException;
+    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
 
   }
 
@@ -93,20 +109,20 @@ public class UserProfileCrudeService {
       super(iprot, oprot);
     }
 
-    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_addUserProfile(userProfile);
       return recv_addUserProfile();
     }
 
-    public void send_addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws TException
+    public void send_addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
     {
       addUserProfile_args args = new addUserProfile_args();
       args.setUserProfile(userProfile);
       sendBase("addUserProfile", args);
     }
 
-    public String recv_addUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public String recv_addUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       addUserProfile_result result = new addUserProfile_result();
       receiveBase(result, "addUserProfile");
@@ -119,20 +135,20 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUserProfile failed: unknown result");
     }
 
-    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_updateUserProfile(userProfile);
       return recv_updateUserProfile();
     }
 
-    public void send_updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws TException
+    public void send_updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
     {
       updateUserProfile_args args = new updateUserProfile_args();
       args.setUserProfile(userProfile);
       sendBase("updateUserProfile", args);
     }
 
-    public boolean recv_updateUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean recv_updateUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       updateUserProfile_result result = new updateUserProfile_result();
       receiveBase(result, "updateUserProfile");
@@ -145,13 +161,13 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserProfile failed: unknown result");
     }
 
-    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_getUserProfileById(userId, gatewayId);
       return recv_getUserProfileById();
     }
 
-    public void send_getUserProfileById(String userId, String gatewayId) throws TException
+    public void send_getUserProfileById(String userId, String gatewayId) throws org.apache.thrift.TException
     {
       getUserProfileById_args args = new getUserProfileById_args();
       args.setUserId(userId);
@@ -159,7 +175,7 @@ public class UserProfileCrudeService {
       sendBase("getUserProfileById", args);
     }
 
-    public org.apache.airavata.model.user.UserProfile recv_getUserProfileById() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public org.apache.airavata.model.user.UserProfile recv_getUserProfileById() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       getUserProfileById_result result = new getUserProfileById_result();
       receiveBase(result, "getUserProfileById");
@@ -172,20 +188,20 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileById failed: unknown result");
     }
 
-    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_deleteUserProfile(userId);
       return recv_deleteUserProfile();
     }
 
-    public void send_deleteUserProfile(String userId) throws TException
+    public void send_deleteUserProfile(String userId) throws org.apache.thrift.TException
     {
       deleteUserProfile_args args = new deleteUserProfile_args();
       args.setUserId(userId);
       sendBase("deleteUserProfile", args);
     }
 
-    public boolean recv_deleteUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean recv_deleteUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       deleteUserProfile_result result = new deleteUserProfile_result();
       receiveBase(result, "deleteUserProfile");
@@ -198,13 +214,13 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUserProfile failed: unknown result");
     }
 
-    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_getAllUserProfilesInGateway(gatewayId, offset, limit);
       return recv_getAllUserProfilesInGateway();
     }
 
-    public void send_getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws TException
+    public void send_getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.thrift.TException
     {
       getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
       args.setGatewayId(gatewayId);
@@ -213,7 +229,7 @@ public class UserProfileCrudeService {
       sendBase("getAllUserProfilesInGateway", args);
     }
 
-    public List<org.apache.airavata.model.user.UserProfile> recv_getAllUserProfilesInGateway() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public List<org.apache.airavata.model.user.UserProfile> recv_getAllUserProfilesInGateway() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
       receiveBase(result, "getAllUserProfilesInGateway");
@@ -226,13 +242,13 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProfilesInGateway failed: unknown result");
     }
 
-    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_getUserProfileByName(userName, gatewayId);
       return recv_getUserProfileByName();
     }
 
-    public void send_getUserProfileByName(String userName, String gatewayId) throws TException
+    public void send_getUserProfileByName(String userName, String gatewayId) throws org.apache.thrift.TException
     {
       getUserProfileByName_args args = new getUserProfileByName_args();
       args.setUserName(userName);
@@ -240,7 +256,7 @@ public class UserProfileCrudeService {
       sendBase("getUserProfileByName", args);
     }
 
-    public org.apache.airavata.model.user.UserProfile recv_getUserProfileByName() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public org.apache.airavata.model.user.UserProfile recv_getUserProfileByName() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       getUserProfileByName_result result = new getUserProfileByName_result();
       receiveBase(result, "getUserProfileByName");
@@ -253,13 +269,13 @@ public class UserProfileCrudeService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileByName failed: unknown result");
     }
 
-    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       send_doesUserExist(userName, gatewayId);
       return recv_doesUserExist();
     }
 
-    public void send_doesUserExist(String userName, String gatewayId) throws TException
+    public void send_doesUserExist(String userName, String gatewayId) throws org.apache.thrift.TException
     {
       doesUserExist_args args = new doesUserExist_args();
       args.setUserName(userName);
@@ -267,7 +283,7 @@ public class UserProfileCrudeService {
       sendBase("doesUserExist", args);
     }
 
-    public boolean recv_doesUserExist() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException
+    public boolean recv_doesUserExist() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
     {
       doesUserExist_result result = new doesUserExist_result();
       receiveBase(result, "doesUserExist");
@@ -298,7 +314,7 @@ public class UserProfileCrudeService {
       super(protocolFactory, clientManager, transport);
     }
 
-    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler) throws TException {
+    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       addUserProfile_call method_call = new addUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -307,12 +323,12 @@ public class UserProfileCrudeService {
 
     public static class addUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
       private org.apache.airavata.model.user.UserProfile userProfile;
-      public addUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public addUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
         addUserProfile_args args = new addUserProfile_args();
         args.setUserProfile(userProfile);
@@ -320,8 +336,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public String getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public String getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -330,7 +346,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler) throws TException {
+    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       updateUserProfile_call method_call = new updateUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -339,12 +355,12 @@ public class UserProfileCrudeService {
 
     public static class updateUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
       private org.apache.airavata.model.user.UserProfile userProfile;
-      public updateUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public updateUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
         updateUserProfile_args args = new updateUserProfile_args();
         args.setUserProfile(userProfile);
@@ -352,8 +368,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -362,7 +378,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void getUserProfileById(String userId, String gatewayId, AsyncMethodCallback resultHandler) throws TException {
+    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       getUserProfileById_call method_call = new getUserProfileById_call(userId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -372,13 +388,13 @@ public class UserProfileCrudeService {
     public static class getUserProfileById_call extends org.apache.thrift.async.TAsyncMethodCall {
       private String userId;
       private String gatewayId;
-      public getUserProfileById_call(String userId, String gatewayId, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public getUserProfileById_call(String userId, String gatewayId, 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.userId = userId;
         this.gatewayId = gatewayId;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileById", org.apache.thrift.protocol.TMessageType.CALL, 0));
         getUserProfileById_args args = new getUserProfileById_args();
         args.setUserId(userId);
@@ -387,8 +403,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -397,7 +413,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void deleteUserProfile(String userId, AsyncMethodCallback resultHandler) throws TException {
+    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       deleteUserProfile_call method_call = new deleteUserProfile_call(userId, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -406,12 +422,12 @@ public class UserProfileCrudeService {
 
     public static class deleteUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
       private String userId;
-      public deleteUserProfile_call(String userId, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public deleteUserProfile_call(String userId, 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.userId = userId;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
         deleteUserProfile_args args = new deleteUserProfile_args();
         args.setUserId(userId);
@@ -419,8 +435,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -429,7 +445,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, AsyncMethodCallback resultHandler) throws TException {
+    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       getAllUserProfilesInGateway_call method_call = new getAllUserProfilesInGateway_call(gatewayId, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -440,14 +456,14 @@ public class UserProfileCrudeService {
       private String gatewayId;
       private int offset;
       private int limit;
-      public getAllUserProfilesInGateway_call(String gatewayId, int offset, int limit, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public getAllUserProfilesInGateway_call(String gatewayId, int offset, int limit, 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.gatewayId = gatewayId;
         this.offset = offset;
         this.limit = limit;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProfilesInGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
         getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
         args.setGatewayId(gatewayId);
@@ -457,8 +473,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public List<org.apache.airavata.model.user.UserProfile> getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public List<org.apache.airavata.model.user.UserProfile> getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -467,7 +483,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void getUserProfileByName(String userName, String gatewayId, AsyncMethodCallback resultHandler) throws TException {
+    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       getUserProfileByName_call method_call = new getUserProfileByName_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -477,13 +493,13 @@ public class UserProfileCrudeService {
     public static class getUserProfileByName_call extends org.apache.thrift.async.TAsyncMethodCall {
       private String userName;
       private String gatewayId;
-      public getUserProfileByName_call(String userName, String gatewayId, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public getUserProfileByName_call(String userName, String gatewayId, 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.userName = userName;
         this.gatewayId = gatewayId;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
         getUserProfileByName_args args = new getUserProfileByName_args();
         args.setUserName(userName);
@@ -492,8 +508,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -502,7 +518,7 @@ public class UserProfileCrudeService {
       }
     }
 
-    public void doesUserExist(String userName, String gatewayId, AsyncMethodCallback resultHandler) throws TException {
+    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
       checkReady();
       doesUserExist_call method_call = new doesUserExist_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
       this.___currentMethod = method_call;
@@ -512,13 +528,13 @@ public class UserProfileCrudeService {
     public static class doesUserExist_call extends org.apache.thrift.async.TAsyncMethodCall {
       private String userName;
       private String gatewayId;
-      public doesUserExist_call(String userName, String gatewayId, AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws TException {
+      public doesUserExist_call(String userName, String gatewayId, 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.userName = userName;
         this.gatewayId = gatewayId;
       }
 
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws TException {
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doesUserExist", org.apache.thrift.protocol.TMessageType.CALL, 0));
         doesUserExist_args args = new doesUserExist_args();
         args.setUserName(userName);
@@ -527,8 +543,8 @@ public class UserProfileCrudeService {
         prot.writeMessageEnd();
       }
 
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, TException {
-        if (getState() != State.RESPONSE_READ) {
+      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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());
@@ -573,7 +589,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public addUserProfile_result getResult(I iface, addUserProfile_args args) throws TException {
+      public addUserProfile_result getResult(I iface, addUserProfile_args args) throws org.apache.thrift.TException {
         addUserProfile_result result = new addUserProfile_result();
         try {
           result.success = iface.addUserProfile(args.userProfile);
@@ -597,7 +613,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public updateUserProfile_result getResult(I iface, updateUserProfile_args args) throws TException {
+      public updateUserProfile_result getResult(I iface, updateUserProfile_args args) throws org.apache.thrift.TException {
         updateUserProfile_result result = new updateUserProfile_result();
         try {
           result.success = iface.updateUserProfile(args.userProfile);
@@ -622,7 +638,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public getUserProfileById_result getResult(I iface, getUserProfileById_args args) throws TException {
+      public getUserProfileById_result getResult(I iface, getUserProfileById_args args) throws org.apache.thrift.TException {
         getUserProfileById_result result = new getUserProfileById_result();
         try {
           result.success = iface.getUserProfileById(args.userId, args.gatewayId);
@@ -646,7 +662,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public deleteUserProfile_result getResult(I iface, deleteUserProfile_args args) throws TException {
+      public deleteUserProfile_result getResult(I iface, deleteUserProfile_args args) throws org.apache.thrift.TException {
         deleteUserProfile_result result = new deleteUserProfile_result();
         try {
           result.success = iface.deleteUserProfile(args.userId);
@@ -671,7 +687,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public getAllUserProfilesInGateway_result getResult(I iface, getAllUserProfilesInGateway_args args) throws TException {
+      public getAllUserProfilesInGateway_result getResult(I iface, getAllUserProfilesInGateway_args args) throws org.apache.thrift.TException {
         getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
         try {
           result.success = iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit);
@@ -695,7 +711,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public getUserProfileByName_result getResult(I iface, getUserProfileByName_args args) throws TException {
+      public getUserProfileByName_result getResult(I iface, getUserProfileByName_args args) throws org.apache.thrift.TException {
         getUserProfileByName_result result = new getUserProfileByName_result();
         try {
           result.success = iface.getUserProfileByName(args.userName, args.gatewayId);
@@ -719,7 +735,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public doesUserExist_result getResult(I iface, doesUserExist_args args) throws TException {
+      public doesUserExist_result getResult(I iface, doesUserExist_args args) throws org.apache.thrift.TException {
         doesUserExist_result result = new doesUserExist_result();
         try {
           result.success = iface.doesUserExist(args.userName, args.gatewayId);
@@ -806,7 +822,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, addUserProfile_args args, AsyncMethodCallback<String> resultHandler) throws TException {
+      public void start(I iface, addUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
         iface.addUserProfile(args.userProfile,resultHandler);
       }
     }
@@ -864,7 +880,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, updateUserProfile_args args, AsyncMethodCallback<Boolean> resultHandler) throws TException {
+      public void start(I iface, updateUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
         iface.updateUserProfile(args.userProfile,resultHandler);
       }
     }
@@ -921,7 +937,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, getUserProfileById_args args, AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
+      public void start(I iface, getUserProfileById_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
         iface.getUserProfileById(args.userId, args.gatewayId,resultHandler);
       }
     }
@@ -979,7 +995,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, deleteUserProfile_args args, AsyncMethodCallback<Boolean> resultHandler) throws TException {
+      public void start(I iface, deleteUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
         iface.deleteUserProfile(args.userId,resultHandler);
       }
     }
@@ -1036,7 +1052,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, getAllUserProfilesInGateway_args args, AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> resultHandler) throws TException {
+      public void start(I iface, getAllUserProfilesInGateway_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> resultHandler) throws TException {
         iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit,resultHandler);
       }
     }
@@ -1093,7 +1109,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, getUserProfileByName_args args, AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
+      public void start(I iface, getUserProfileByName_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
         iface.getUserProfileByName(args.userName, args.gatewayId,resultHandler);
       }
     }
@@ -1151,7 +1167,7 @@ public class UserProfileCrudeService {
         return false;
       }
 
-      public void start(I iface, doesUserExist_args args, AsyncMethodCallback<Boolean> resultHandler) throws TException {
+      public void start(I iface, doesUserExist_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
         iface.doesUserExist(args.userName, args.gatewayId,resultHandler);
       }
     }
@@ -1388,11 +1404,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -1412,10 +1428,10 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (userProfile == null) {
-        throw new TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
       }
       // check for sub-struct validity
       if (userProfile != null) {
@@ -1426,7 +1442,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -1434,7 +1450,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -1447,7 +1463,7 @@ public class UserProfileCrudeService {
 
     private static class addUserProfile_argsStandardScheme extends StandardScheme<addUserProfile_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -1477,7 +1493,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, addUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, addUserProfile_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -1501,13 +1517,13 @@ public class UserProfileCrudeService {
     private static class addUserProfile_argsTupleScheme extends TupleScheme<addUserProfile_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         struct.userProfile.write(oprot);
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         struct.userProfile = new org.apache.airavata.model.user.UserProfile();
         struct.userProfile.read(iprot);
@@ -1821,11 +1837,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
       }
 
@@ -1853,7 +1869,7 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
     }
@@ -1861,7 +1877,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -1869,7 +1885,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -1882,7 +1898,7 @@ public class UserProfileCrudeService {
 
     private static class addUserProfile_resultStandardScheme extends StandardScheme<addUserProfile_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -1920,7 +1936,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, addUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, addUserProfile_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -1949,7 +1965,7 @@ public class UserProfileCrudeService {
     private static class addUserProfile_resultTupleScheme extends TupleScheme<addUserProfile_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -1968,7 +1984,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(2);
         if (incoming.get(0)) {
@@ -2215,11 +2231,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -2239,10 +2255,10 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (userProfile == null) {
-        throw new TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
       }
       // check for sub-struct validity
       if (userProfile != null) {
@@ -2253,7 +2269,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -2261,7 +2277,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -2274,7 +2290,7 @@ public class UserProfileCrudeService {
 
     private static class updateUserProfile_argsStandardScheme extends StandardScheme<updateUserProfile_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, updateUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, updateUserProfile_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -2304,7 +2320,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, updateUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, updateUserProfile_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -2328,13 +2344,13 @@ public class UserProfileCrudeService {
     private static class updateUserProfile_argsTupleScheme extends TupleScheme<updateUserProfile_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         struct.userProfile.write(oprot);
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         struct.userProfile = new org.apache.airavata.model.user.UserProfile();
         struct.userProfile.read(iprot);
@@ -2650,11 +2666,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
       }
 
@@ -2678,7 +2694,7 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
     }
@@ -2686,7 +2702,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -2696,7 +2712,7 @@ public class UserProfileCrudeService {
         // 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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -2709,7 +2725,7 @@ public class UserProfileCrudeService {
 
     private static class updateUserProfile_resultStandardScheme extends StandardScheme<updateUserProfile_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, updateUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, updateUserProfile_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -2747,7 +2763,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, updateUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, updateUserProfile_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -2776,7 +2792,7 @@ public class UserProfileCrudeService {
     private static class updateUserProfile_resultTupleScheme extends TupleScheme<updateUserProfile_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -2795,7 +2811,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, updateUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(2);
         if (incoming.get(0)) {
@@ -3116,11 +3132,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -3148,13 +3164,13 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (userId == null) {
-        throw new TProtocolException("Required field 'userId' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userId' was not present! Struct: " + toString());
       }
       if (gatewayId == null) {
-        throw new TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
       }
       // check for sub-struct validity
     }
@@ -3162,7 +3178,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -3170,7 +3186,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -3183,7 +3199,7 @@ public class UserProfileCrudeService {
 
     private static class getUserProfileById_argsStandardScheme extends StandardScheme<getUserProfileById_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileById_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileById_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -3220,7 +3236,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProfileById_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProfileById_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -3249,14 +3265,14 @@ public class UserProfileCrudeService {
     private static class getUserProfileById_argsTupleScheme extends TupleScheme<getUserProfileById_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         oprot.writeString(struct.userId);
         oprot.writeString(struct.gatewayId);
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         struct.userId = iprot.readString();
         struct.setUserIdIsSet(true);
@@ -3571,11 +3587,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
       }
 
@@ -3603,7 +3619,7 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
       if (success != null) {
@@ -3614,7 +3630,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -3622,7 +3638,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -3635,7 +3651,7 @@ public class UserProfileCrudeService {
 
     private static class getUserProfileById_resultStandardScheme extends StandardScheme<getUserProfileById_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileById_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileById_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -3674,7 +3690,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProfileById_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProfileById_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -3703,7 +3719,7 @@ public class UserProfileCrudeService {
     private static class getUserProfileById_resultTupleScheme extends TupleScheme<getUserProfileById_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -3722,7 +3738,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, getUserProfileById_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(2);
         if (incoming.get(0)) {
@@ -3970,11 +3986,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -3994,10 +4010,10 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (userId == null) {
-        throw new TProtocolException("Required field 'userId' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userId' was not present! Struct: " + toString());
       }
       // check for sub-struct validity
     }
@@ -4005,7 +4021,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -4013,7 +4029,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -4026,7 +4042,7 @@ public class UserProfileCrudeService {
 
     private static class deleteUserProfile_argsStandardScheme extends StandardScheme<deleteUserProfile_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, deleteUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, deleteUserProfile_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -4055,7 +4071,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, deleteUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, deleteUserProfile_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -4079,13 +4095,13 @@ public class UserProfileCrudeService {
     private static class deleteUserProfile_argsTupleScheme extends TupleScheme<deleteUserProfile_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         oprot.writeString(struct.userId);
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         struct.userId = iprot.readString();
         struct.setUserIdIsSet(true);
@@ -4400,11 +4416,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
       }
 
@@ -4428,7 +4444,7 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
     }
@@ -4436,7 +4452,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -4446,7 +4462,7 @@ public class UserProfileCrudeService {
         // 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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -4459,7 +4475,7 @@ public class UserProfileCrudeService {
 
     private static class deleteUserProfile_resultStandardScheme extends StandardScheme<deleteUserProfile_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, deleteUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, deleteUserProfile_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -4497,7 +4513,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, deleteUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, deleteUserProfile_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -4526,7 +4542,7 @@ public class UserProfileCrudeService {
     private static class deleteUserProfile_resultTupleScheme extends TupleScheme<deleteUserProfile_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -4545,7 +4561,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, deleteUserProfile_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(2);
         if (incoming.get(0)) {
@@ -4942,11 +4958,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -4974,10 +4990,10 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (gatewayId == null) {
-        throw new TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
       }
       // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator.
       // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator.
@@ -4987,7 +5003,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -4997,7 +5013,7 @@ public class UserProfileCrudeService {
         // 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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -5010,7 +5026,7 @@ public class UserProfileCrudeService {
 
     private static class getAllUserProfilesInGateway_argsStandardScheme extends StandardScheme<getAllUserProfilesInGateway_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProfilesInGateway_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProfilesInGateway_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -5053,15 +5069,15 @@ public class UserProfileCrudeService {
 
         // check for required fields of primitive type, which can't be checked in the validate method
         if (!struct.isSetOffset()) {
-          throw new TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString());
+          throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString());
         }
         if (!struct.isSetLimit()) {
-          throw new TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString());
+          throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString());
         }
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProfilesInGateway_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProfilesInGateway_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -5091,7 +5107,7 @@ public class UserProfileCrudeService {
     private static class getAllUserProfilesInGateway_argsTupleScheme extends TupleScheme<getAllUserProfilesInGateway_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_args struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         oprot.writeString(struct.gatewayId);
         oprot.writeI32(struct.offset);
@@ -5099,7 +5115,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         struct.gatewayId = iprot.readString();
         struct.setGatewayIdIsSet(true);
@@ -5436,11 +5452,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
       }
 
@@ -5468,7 +5484,7 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
     }
@@ -5476,7 +5492,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -5484,7 +5500,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -5497,7 +5513,7 @@ public class UserProfileCrudeService {
 
     private static class getAllUserProfilesInGateway_resultStandardScheme extends StandardScheme<getAllUserProfilesInGateway_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProfilesInGateway_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProfilesInGateway_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -5546,7 +5562,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProfilesInGateway_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProfilesInGateway_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -5582,7 +5598,7 @@ public class UserProfileCrudeService {
     private static class getAllUserProfilesInGateway_resultTupleScheme extends TupleScheme<getAllUserProfilesInGateway_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_result struct) throws TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -5607,7 +5623,7 @@ public class UserProfileCrudeService {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_result struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProfilesInGateway_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(2);
         if (incoming.get(0)) {
@@ -5938,11 +5954,11 @@ public class UserProfileCrudeService {
       return _Fields.findByThriftId(fieldId);
     }
 
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws TException {
+    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 TException {
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
     }
 
@@ -5970,13 +5986,13 @@ public class UserProfileCrudeService {
       return sb.toString();
     }
 
-    public void validate() throws TException {
+    public void validate() throws org.apache.thrift.TException {
       // check for required fields
       if (userName == null) {
-        throw new TProtocolException("Required field 'userName' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString());
       }
       if (gatewayId == null) {
-        throw new TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
+        throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
       }
       // check for sub-struct validity
     }
@@ -5984,7 +6000,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -5992,7 +6008,7 @@ public class UserProfileCrudeService {
     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 (TException te) {
+      } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
@@ -6005,7 +6021,7 @@ public class UserProfileCrudeService {
 
     private static class getUserProfileByName_argsStandardScheme extends StandardScheme<getUserProfileByName_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileByName_args struct) throws TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProfileByName_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -6042,7 +6058,7 @@ public class UserProfileCrudeService {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProfileByName_args struct) throws TException {
+      public void write(org.apache.thrif

<TRUNCATED>

[05/14] airavata git commit: adding dependancy for user-profile service in distribution pom

Posted by ma...@apache.org.
adding dependancy for user-profile service in distribution pom


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/baaed53a
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/baaed53a
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/baaed53a

Branch: refs/heads/develop
Commit: baaed53a372e7ab51eaed83b997dd604a29baf46
Parents: aa98eee
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Tue Jan 24 19:00:16 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Tue Jan 24 19:00:16 2017 -0500

----------------------------------------------------------------------
 modules/distribution/pom.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/baaed53a/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml
index a832636..e5a1d10 100644
--- a/modules/distribution/pom.xml
+++ b/modules/distribution/pom.xml
@@ -478,6 +478,17 @@
             <artifactId>groovy-templates</artifactId>
             <version>${groovy.version}</version>
         </dependency>
+        <!-- ======================== User Profile Service module =================== -->
+        <dependency>
+            <groupId>org.apache.airavata</groupId>
+            <artifactId>user-profile-service</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.airavata</groupId>
+            <artifactId>user-profile-stubs</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <!-- ======================== Sample =================== -->
         <dependency>
             <groupId>org.apache.airavata</groupId>


[14/14] airavata git commit: Merge branch 'userProfileService' of https://github.com/anujbhan/airavata into develop

Posted by ma...@apache.org.
Merge branch 'userProfileService' of https://github.com/anujbhan/airavata into develop

This closes #94

NOTE: I commented out the USER_PROFILE service in ServerMain.java


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/80dbaba6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/80dbaba6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/80dbaba6

Branch: refs/heads/develop
Commit: 80dbaba6f152a6527928ec038e6f8523db04a14a
Parents: 7a66275 b642ce9
Author: Marcus Christie <ma...@apache.org>
Authored: Thu Feb 2 16:13:39 2017 -0500
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Feb 2 16:22:42 2017 -0500

----------------------------------------------------------------------
 .../main/resources/airavata-server.properties   |    2 +-
 modules/distribution/pom.xml                    |   11 +
 .../org/apache/airavata/MigrationManager.java   |    4 +-
 .../UserProfileAiravataThriftClient.java        |   11 +-
 .../user-profile-service/.classpath             |   26 -
 .../user-profile/user-profile-service/pom.xml   |   14 +-
 .../server/UserProfileHandler.java              |   85 -
 .../server/UserProfileServer.java               |  141 -
 .../user/profile/server/UserProfileServer.java  |  159 +
 .../server/UserProfileServiceHandler.java       |  139 +
 modules/user-profile/user-profile-stubs/pom.xml |   34 +-
 .../api/exception/RegistryServiceException.java |  407 -
 .../userprofile/cpi/UserProfileService.java     | 7504 ++++++++++++++++++
 .../client/UserProfileServiceClientFactory.java |   43 +
 .../exception/UserProfileServiceException.java  |  407 +
 .../cpi/user_profile_cpiConstants.java          |   57 +
 .../airavata/userprofile/crude/cpi/Test.java    |   14 -
 .../crude/cpi/UserProfileCrudeService.java      | 7488 -----------------
 .../client/UserProfileServiceClientFactory.java |   43 -
 .../cpi/user_profile_crud_cpiConstants.java     |   41 -
 .../component-cpis/generate-cpi-stubs.sh        |    9 +-
 .../component-cpis/user-profile-cpi.thrift      |   57 +
 .../user_profile_cpi_errors.thrift              |   32 +
 23 files changed, 8465 insertions(+), 8263 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/80dbaba6/modules/configuration/server/src/main/resources/airavata-server.properties
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/airavata/blob/80dbaba6/modules/distribution/pom.xml
----------------------------------------------------------------------


[07/14] airavata git commit: renaming classes and including userProfileSerive exception

Posted by ma...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/client/UserProfileServiceClientFactory.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/client/UserProfileServiceClientFactory.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/client/UserProfileServiceClientFactory.java
deleted file mode 100644
index 536d43c..0000000
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/client/UserProfileServiceClientFactory.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- *
- * 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.
- *
- */
-package org.apache.airavata.userprofile.crude.cpi.client;
-
-import org.apache.airavata.registry.api.exception.RegistryServiceException;
-import org.apache.airavata.userprofile.crude.cpi.UserProfileCrudeService;
-import org.apache.thrift.protocol.TBinaryProtocol;
-import org.apache.thrift.protocol.TProtocol;
-import org.apache.thrift.transport.TSocket;
-import org.apache.thrift.transport.TTransport;
-import org.apache.thrift.transport.TTransportException;
-
-
-public class UserProfileServiceClientFactory {
-    public static UserProfileCrudeService.Client createRegistryClient(String serverHost, int serverPort)  throws RegistryServiceException {
-        try {
-            TTransport transport = new TSocket(serverHost, serverPort);
-            transport.open();
-            TProtocol protocol = new TBinaryProtocol(transport);
-            return new UserProfileCrudeService.Client(protocol);
-        } catch (TTransportException e) {
-            throw new RegistryServiceException();
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
deleted file mode 100644
index 91eb8c4..0000000
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
+++ /dev/null
@@ -1,57 +0,0 @@
-    /*
-     * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.airavata.userprofile.crude.cpi;
-
-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"})
-public class user_profile_crud_cpiConstants {
-
-  public static final String USER_PROFILE_CPI_VERSION = "0.16.0";
-
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
old mode 100644
new mode 100755
index 877ba8d..e8e301b
--- a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
+++ b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
@@ -73,7 +73,7 @@ GFAC_SRC_DIR='../../modules/gfac/gfac-client/src/main/java/'
 REGISTRY_THRIFT_FILE='registry-api.thrift'
 REGISTRY_SRC_DIR='../../modules/registry/registry-server/registry-api-stubs/src/main/java/'
 
-USER_PROFILE_THRIFT_FILE='user-profile-crud-cpi.thrift'
+USER_PROFILE_THRIFT_FILE='user-profile-cpi.thrift'
 USER_PROFILE_SRC_DIR='../../modules/user-profile/user-profile-stubs/src/main/java/'
 
 # Initialize the thrift arguments.

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/thrift-interface-descriptions/component-cpis/user-profile-cpi.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/user-profile-cpi.thrift b/thrift-interface-descriptions/component-cpis/user-profile-cpi.thrift
new file mode 100644
index 0000000..739ea1c
--- /dev/null
+++ b/thrift-interface-descriptions/component-cpis/user-profile-cpi.thrift
@@ -0,0 +1,57 @@
+/*
+ * 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.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "user_profile_cpi_errors.thrift"
+
+
+namespace java org.apache.airavata.userprofile.cpi
+
+const string USER_PROFILE_CPI_VERSION = "0.17"
+
+service UserProfileService {
+
+  string addUserProfile (1: required user_profile_model.UserProfile userProfile)
+                        throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+  bool updateUserProfile (1: required user_profile_model.UserProfile userProfile)
+                          throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+  user_profile_model.UserProfile getUserProfileById(1: required string userId, 2: required string gatewayId)
+                                                throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+  bool deleteUserProfile(1: required string userId)
+                                                  throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+  list<user_profile_model.UserProfile> getAllUserProfilesInGateway (1: required string gatewayId, 2: required i32 offset, 3: required i32 limit)
+                          throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+ user_profile_model.UserProfile getUserProfileByName(1: required string userName, 2: required string gatewayId)
+                                                throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+   bool doesUserExist(1: required string userName, 2: required string gatewayId)
+                                                   throws (1:user_profile_cpi_errors.UserProfileServiceException userProfileException);
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift b/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
deleted file mode 100644
index cbdc53c..0000000
--- a/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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.
- *
- */
-
-/*
- * Component Programming Interface definition for Apache Airavata User profile registry Service.
- *
-*/
-
-include "../data-models/user-group-models/user_profile_model.thrift"
-include "registry_api_errors.thrift"
-
-
-namespace java org.apache.airavata.userprofile.crude.cpi
-
-const string USER_PROFILE_CPI_VERSION = "0.16.0"
-
-service UserProfileCrudeService {
-
-  string addUserProfile (1: required user_profile_model.UserProfile userProfile)
-                        throws (1:registry_api_errors.RegistryServiceException registryException);
-
-  bool updateUserProfile (1: required user_profile_model.UserProfile userProfile)
-                          throws (1:registry_api_errors.RegistryServiceException registryException);
-
-  user_profile_model.UserProfile getUserProfileById(1: required string userId, 2: required string gatewayId)
-                                                throws (1:registry_api_errors.RegistryServiceException registryException);
-
-  bool deleteUserProfile(1: required string userId)
-                                                  throws (1:registry_api_errors.RegistryServiceException registryException);
-
-  list<user_profile_model.UserProfile> getAllUserProfilesInGateway (1: required string gatewayId, 2: required i32 offset, 3: required i32 limit)
-                          throws (1:registry_api_errors.RegistryServiceException registryException);
-
- user_profile_model.UserProfile getUserProfileByName(1: required string userName, 2: required string gatewayId)
-                                                throws (1:registry_api_errors.RegistryServiceException registryException);
-
-   bool doesUserExist(1: required string userName, 2: required string gatewayId)
-                                                   throws (1:registry_api_errors.RegistryServiceException registryException);
-
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/thrift-interface-descriptions/component-cpis/user_profile_cpi_errors.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/user_profile_cpi_errors.thrift b/thrift-interface-descriptions/component-cpis/user_profile_cpi_errors.thrift
new file mode 100644
index 0000000..bd1984b
--- /dev/null
+++ b/thrift-interface-descriptions/component-cpis/user_profile_cpi_errors.thrift
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ *
+ */
+
+/*
+* This file describes the definitions of the Error Messages that can occur
+*  when invoking Apache Airavata Services through the API. In addition Thrift provides
+*  built in funcationality to raise TApplicationException for all internal server errors.
+*/
+
+namespace java org.apache.airavata.userprofile.cpi.exception
+namespace php Airavata.UserProfile.CPI.Error
+
+exception UserProfileServiceException {
+  1: required string message
+}


[06/14] airavata git commit: adding user profile service to server module

Posted by ma...@apache.org.
adding user profile service to server module


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/c6ba43bf
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/c6ba43bf
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/c6ba43bf

Branch: refs/heads/develop
Commit: c6ba43bf685b953f575760894fb89910e2c22d14
Parents: baaed53
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Tue Jan 24 19:05:59 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Tue Jan 24 19:05:59 2017 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/server/ServerMain.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/c6ba43bf/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
----------------------------------------------------------------------
diff --git a/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java b/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
index 1e67e8d..a3f1a42 100644
--- a/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
+++ b/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
@@ -118,7 +118,7 @@ public class ServerMain {
 			serverList.add(API_SERVER);
 			serverList.add(ORCHESTRATOR);
 			serverList.add(GFAC_SERVER);
-			// serverList.add(USER_PROFILE); // Commenting temporarily since there is no current usage
+			serverList.add(USER_PROFILE);
 		} else if (serverList.indexOf(API_ORCH) > -1) {
 			serverList.clear();
             serverList.add(REGISTRY_SERVER);  // registry server should start before everything


[08/14] airavata git commit: renaming classes and including userProfileSerive exception

Posted by ma...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/39e22204/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
deleted file mode 100644
index 29ae7da..0000000
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/UserProfileCrudeService.java
+++ /dev/null
@@ -1,7504 +0,0 @@
-    /*
-     * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.airavata.userprofile.crude.cpi;
-
-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)")
-public class UserProfileCrudeService {
-
-  public interface Iface {
-
-    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException;
-
-  }
-
-  public interface AsyncIface {
-
-    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
-  }
-
-  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
-    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
-      public Factory() {}
-      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
-        return new Client(prot);
-      }
-      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
-        return new Client(iprot, oprot);
-      }
-    }
-
-    public Client(org.apache.thrift.protocol.TProtocol prot)
-    {
-      super(prot, prot);
-    }
-
-    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
-      super(iprot, oprot);
-    }
-
-    public String addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_addUserProfile(userProfile);
-      return recv_addUserProfile();
-    }
-
-    public void send_addUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
-    {
-      addUserProfile_args args = new addUserProfile_args();
-      args.setUserProfile(userProfile);
-      sendBase("addUserProfile", args);
-    }
-
-    public String recv_addUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      addUserProfile_result result = new addUserProfile_result();
-      receiveBase(result, "addUserProfile");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUserProfile failed: unknown result");
-    }
-
-    public boolean updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_updateUserProfile(userProfile);
-      return recv_updateUserProfile();
-    }
-
-    public void send_updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile) throws org.apache.thrift.TException
-    {
-      updateUserProfile_args args = new updateUserProfile_args();
-      args.setUserProfile(userProfile);
-      sendBase("updateUserProfile", args);
-    }
-
-    public boolean recv_updateUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      updateUserProfile_result result = new updateUserProfile_result();
-      receiveBase(result, "updateUserProfile");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserProfile failed: unknown result");
-    }
-
-    public org.apache.airavata.model.user.UserProfile getUserProfileById(String userId, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_getUserProfileById(userId, gatewayId);
-      return recv_getUserProfileById();
-    }
-
-    public void send_getUserProfileById(String userId, String gatewayId) throws org.apache.thrift.TException
-    {
-      getUserProfileById_args args = new getUserProfileById_args();
-      args.setUserId(userId);
-      args.setGatewayId(gatewayId);
-      sendBase("getUserProfileById", args);
-    }
-
-    public org.apache.airavata.model.user.UserProfile recv_getUserProfileById() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      getUserProfileById_result result = new getUserProfileById_result();
-      receiveBase(result, "getUserProfileById");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileById failed: unknown result");
-    }
-
-    public boolean deleteUserProfile(String userId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_deleteUserProfile(userId);
-      return recv_deleteUserProfile();
-    }
-
-    public void send_deleteUserProfile(String userId) throws org.apache.thrift.TException
-    {
-      deleteUserProfile_args args = new deleteUserProfile_args();
-      args.setUserId(userId);
-      sendBase("deleteUserProfile", args);
-    }
-
-    public boolean recv_deleteUserProfile() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      deleteUserProfile_result result = new deleteUserProfile_result();
-      receiveBase(result, "deleteUserProfile");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUserProfile failed: unknown result");
-    }
-
-    public List<org.apache.airavata.model.user.UserProfile> getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_getAllUserProfilesInGateway(gatewayId, offset, limit);
-      return recv_getAllUserProfilesInGateway();
-    }
-
-    public void send_getAllUserProfilesInGateway(String gatewayId, int offset, int limit) throws org.apache.thrift.TException
-    {
-      getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
-      args.setGatewayId(gatewayId);
-      args.setOffset(offset);
-      args.setLimit(limit);
-      sendBase("getAllUserProfilesInGateway", args);
-    }
-
-    public List<org.apache.airavata.model.user.UserProfile> recv_getAllUserProfilesInGateway() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
-      receiveBase(result, "getAllUserProfilesInGateway");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProfilesInGateway failed: unknown result");
-    }
-
-    public org.apache.airavata.model.user.UserProfile getUserProfileByName(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_getUserProfileByName(userName, gatewayId);
-      return recv_getUserProfileByName();
-    }
-
-    public void send_getUserProfileByName(String userName, String gatewayId) throws org.apache.thrift.TException
-    {
-      getUserProfileByName_args args = new getUserProfileByName_args();
-      args.setUserName(userName);
-      args.setGatewayId(gatewayId);
-      sendBase("getUserProfileByName", args);
-    }
-
-    public org.apache.airavata.model.user.UserProfile recv_getUserProfileByName() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      getUserProfileByName_result result = new getUserProfileByName_result();
-      receiveBase(result, "getUserProfileByName");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProfileByName failed: unknown result");
-    }
-
-    public boolean doesUserExist(String userName, String gatewayId) throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      send_doesUserExist(userName, gatewayId);
-      return recv_doesUserExist();
-    }
-
-    public void send_doesUserExist(String userName, String gatewayId) throws org.apache.thrift.TException
-    {
-      doesUserExist_args args = new doesUserExist_args();
-      args.setUserName(userName);
-      args.setGatewayId(gatewayId);
-      sendBase("doesUserExist", args);
-    }
-
-    public boolean recv_doesUserExist() throws org.apache.airavata.registry.api.exception.RegistryServiceException, org.apache.thrift.TException
-    {
-      doesUserExist_result result = new doesUserExist_result();
-      receiveBase(result, "doesUserExist");
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
-      if (result.registryException != null) {
-        throw result.registryException;
-      }
-      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doesUserExist 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> {
-      private org.apache.thrift.async.TAsyncClientManager clientManager;
-      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
-      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
-        this.clientManager = clientManager;
-        this.protocolFactory = protocolFactory;
-      }
-      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
-        return new AsyncClient(protocolFactory, clientManager, transport);
-      }
-    }
-
-    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-      super(protocolFactory, clientManager, transport);
-    }
-
-    public void addUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      addUserProfile_call method_call = new addUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class addUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private org.apache.airavata.model.user.UserProfile userProfile;
-      public addUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        addUserProfile_args args = new addUserProfile_args();
-        args.setUserProfile(userProfile);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public String getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_addUserProfile();
-      }
-    }
-
-    public void updateUserProfile(org.apache.airavata.model.user.UserProfile userProfile, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      updateUserProfile_call method_call = new updateUserProfile_call(userProfile, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class updateUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private org.apache.airavata.model.user.UserProfile userProfile;
-      public updateUserProfile_call(org.apache.airavata.model.user.UserProfile userProfile, 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.userProfile = userProfile;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        updateUserProfile_args args = new updateUserProfile_args();
-        args.setUserProfile(userProfile);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_updateUserProfile();
-      }
-    }
-
-    public void getUserProfileById(String userId, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      getUserProfileById_call method_call = new getUserProfileById_call(userId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class getUserProfileById_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private String userId;
-      private String gatewayId;
-      public getUserProfileById_call(String userId, String gatewayId, 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.userId = userId;
-        this.gatewayId = gatewayId;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileById", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        getUserProfileById_args args = new getUserProfileById_args();
-        args.setUserId(userId);
-        args.setGatewayId(gatewayId);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_getUserProfileById();
-      }
-    }
-
-    public void deleteUserProfile(String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      deleteUserProfile_call method_call = new deleteUserProfile_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class deleteUserProfile_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private String userId;
-      public deleteUserProfile_call(String userId, 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.userId = userId;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUserProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        deleteUserProfile_args args = new deleteUserProfile_args();
-        args.setUserId(userId);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_deleteUserProfile();
-      }
-    }
-
-    public void getAllUserProfilesInGateway(String gatewayId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      getAllUserProfilesInGateway_call method_call = new getAllUserProfilesInGateway_call(gatewayId, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class getAllUserProfilesInGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private String gatewayId;
-      private int offset;
-      private int limit;
-      public getAllUserProfilesInGateway_call(String gatewayId, int offset, int limit, 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.gatewayId = gatewayId;
-        this.offset = offset;
-        this.limit = limit;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProfilesInGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        getAllUserProfilesInGateway_args args = new getAllUserProfilesInGateway_args();
-        args.setGatewayId(gatewayId);
-        args.setOffset(offset);
-        args.setLimit(limit);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public List<org.apache.airavata.model.user.UserProfile> getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_getAllUserProfilesInGateway();
-      }
-    }
-
-    public void getUserProfileByName(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      getUserProfileByName_call method_call = new getUserProfileByName_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class getUserProfileByName_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private String userName;
-      private String gatewayId;
-      public getUserProfileByName_call(String userName, String gatewayId, 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.userName = userName;
-        this.gatewayId = gatewayId;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProfileByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        getUserProfileByName_args args = new getUserProfileByName_args();
-        args.setUserName(userName);
-        args.setGatewayId(gatewayId);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public org.apache.airavata.model.user.UserProfile getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_getUserProfileByName();
-      }
-    }
-
-    public void doesUserExist(String userName, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
-      checkReady();
-      doesUserExist_call method_call = new doesUserExist_call(userName, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-      this.___currentMethod = method_call;
-      ___manager.call(method_call);
-    }
-
-    public static class doesUserExist_call extends org.apache.thrift.async.TAsyncMethodCall {
-      private String userName;
-      private String gatewayId;
-      public doesUserExist_call(String userName, String gatewayId, 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.userName = userName;
-        this.gatewayId = gatewayId;
-      }
-
-      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doesUserExist", org.apache.thrift.protocol.TMessageType.CALL, 0));
-        doesUserExist_args args = new doesUserExist_args();
-        args.setUserName(userName);
-        args.setGatewayId(gatewayId);
-        args.write(prot);
-        prot.writeMessageEnd();
-      }
-
-      public boolean getResult() throws org.apache.airavata.registry.api.exception.RegistryServiceException, 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_doesUserExist();
-      }
-    }
-
-  }
-
-  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
-    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-    public Processor(I iface) {
-      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-    }
-
-    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-      super(iface, getProcessMap(processMap));
-    }
-
-    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-      processMap.put("addUserProfile", new addUserProfile());
-      processMap.put("updateUserProfile", new updateUserProfile());
-      processMap.put("getUserProfileById", new getUserProfileById());
-      processMap.put("deleteUserProfile", new deleteUserProfile());
-      processMap.put("getAllUserProfilesInGateway", new getAllUserProfilesInGateway());
-      processMap.put("getUserProfileByName", new getUserProfileByName());
-      processMap.put("doesUserExist", new doesUserExist());
-      return processMap;
-    }
-
-    public static class addUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserProfile_args> {
-      public addUserProfile() {
-        super("addUserProfile");
-      }
-
-      public addUserProfile_args getEmptyArgsInstance() {
-        return new addUserProfile_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public addUserProfile_result getResult(I iface, addUserProfile_args args) throws org.apache.thrift.TException {
-        addUserProfile_result result = new addUserProfile_result();
-        try {
-          result.success = iface.addUserProfile(args.userProfile);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class updateUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserProfile_args> {
-      public updateUserProfile() {
-        super("updateUserProfile");
-      }
-
-      public updateUserProfile_args getEmptyArgsInstance() {
-        return new updateUserProfile_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public updateUserProfile_result getResult(I iface, updateUserProfile_args args) throws org.apache.thrift.TException {
-        updateUserProfile_result result = new updateUserProfile_result();
-        try {
-          result.success = iface.updateUserProfile(args.userProfile);
-          result.setSuccessIsSet(true);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class getUserProfileById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserProfileById_args> {
-      public getUserProfileById() {
-        super("getUserProfileById");
-      }
-
-      public getUserProfileById_args getEmptyArgsInstance() {
-        return new getUserProfileById_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public getUserProfileById_result getResult(I iface, getUserProfileById_args args) throws org.apache.thrift.TException {
-        getUserProfileById_result result = new getUserProfileById_result();
-        try {
-          result.success = iface.getUserProfileById(args.userId, args.gatewayId);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class deleteUserProfile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUserProfile_args> {
-      public deleteUserProfile() {
-        super("deleteUserProfile");
-      }
-
-      public deleteUserProfile_args getEmptyArgsInstance() {
-        return new deleteUserProfile_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public deleteUserProfile_result getResult(I iface, deleteUserProfile_args args) throws org.apache.thrift.TException {
-        deleteUserProfile_result result = new deleteUserProfile_result();
-        try {
-          result.success = iface.deleteUserProfile(args.userId);
-          result.setSuccessIsSet(true);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class getAllUserProfilesInGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUserProfilesInGateway_args> {
-      public getAllUserProfilesInGateway() {
-        super("getAllUserProfilesInGateway");
-      }
-
-      public getAllUserProfilesInGateway_args getEmptyArgsInstance() {
-        return new getAllUserProfilesInGateway_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public getAllUserProfilesInGateway_result getResult(I iface, getAllUserProfilesInGateway_args args) throws org.apache.thrift.TException {
-        getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
-        try {
-          result.success = iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class getUserProfileByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserProfileByName_args> {
-      public getUserProfileByName() {
-        super("getUserProfileByName");
-      }
-
-      public getUserProfileByName_args getEmptyArgsInstance() {
-        return new getUserProfileByName_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public getUserProfileByName_result getResult(I iface, getUserProfileByName_args args) throws org.apache.thrift.TException {
-        getUserProfileByName_result result = new getUserProfileByName_result();
-        try {
-          result.success = iface.getUserProfileByName(args.userName, args.gatewayId);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-    public static class doesUserExist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doesUserExist_args> {
-      public doesUserExist() {
-        super("doesUserExist");
-      }
-
-      public doesUserExist_args getEmptyArgsInstance() {
-        return new doesUserExist_args();
-      }
-
-      protected boolean isOneway() {
-        return false;
-      }
-
-      public doesUserExist_result getResult(I iface, doesUserExist_args args) throws org.apache.thrift.TException {
-        doesUserExist_result result = new doesUserExist_result();
-        try {
-          result.success = iface.doesUserExist(args.userName, args.gatewayId);
-          result.setSuccessIsSet(true);
-        } catch (org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-          result.registryException = registryException;
-        }
-        return result;
-      }
-    }
-
-  }
-
-  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
-    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
-    public AsyncProcessor(I iface) {
-      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
-    }
-
-    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
-      super(iface, getProcessMap(processMap));
-    }
-
-    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
-      processMap.put("addUserProfile", new addUserProfile());
-      processMap.put("updateUserProfile", new updateUserProfile());
-      processMap.put("getUserProfileById", new getUserProfileById());
-      processMap.put("deleteUserProfile", new deleteUserProfile());
-      processMap.put("getAllUserProfilesInGateway", new getAllUserProfilesInGateway());
-      processMap.put("getUserProfileByName", new getUserProfileByName());
-      processMap.put("doesUserExist", new doesUserExist());
-      return processMap;
-    }
-
-    public static class addUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addUserProfile_args, String> {
-      public addUserProfile() {
-        super("addUserProfile");
-      }
-
-      public addUserProfile_args getEmptyArgsInstance() {
-        return new addUserProfile_args();
-      }
-
-      public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<String>() { 
-          public void onComplete(String o) {
-            addUserProfile_result result = new addUserProfile_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;
-            addUserProfile_result result = new addUserProfile_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, addUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
-        iface.addUserProfile(args.userProfile,resultHandler);
-      }
-    }
-
-    public static class updateUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateUserProfile_args, Boolean> {
-      public updateUserProfile() {
-        super("updateUserProfile");
-      }
-
-      public updateUserProfile_args getEmptyArgsInstance() {
-        return new updateUserProfile_args();
-      }
-
-      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<Boolean>() { 
-          public void onComplete(Boolean o) {
-            updateUserProfile_result result = new updateUserProfile_result();
-            result.success = o;
-            result.setSuccessIsSet(true);
-            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;
-            updateUserProfile_result result = new updateUserProfile_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, updateUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
-        iface.updateUserProfile(args.userProfile,resultHandler);
-      }
-    }
-
-    public static class getUserProfileById<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserProfileById_args, org.apache.airavata.model.user.UserProfile> {
-      public getUserProfileById() {
-        super("getUserProfileById");
-      }
-
-      public getUserProfileById_args getEmptyArgsInstance() {
-        return new getUserProfileById_args();
-      }
-
-      public AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<org.apache.airavata.model.user.UserProfile>() { 
-          public void onComplete(org.apache.airavata.model.user.UserProfile o) {
-            getUserProfileById_result result = new getUserProfileById_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;
-            getUserProfileById_result result = new getUserProfileById_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, getUserProfileById_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
-        iface.getUserProfileById(args.userId, args.gatewayId,resultHandler);
-      }
-    }
-
-    public static class deleteUserProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteUserProfile_args, Boolean> {
-      public deleteUserProfile() {
-        super("deleteUserProfile");
-      }
-
-      public deleteUserProfile_args getEmptyArgsInstance() {
-        return new deleteUserProfile_args();
-      }
-
-      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<Boolean>() { 
-          public void onComplete(Boolean o) {
-            deleteUserProfile_result result = new deleteUserProfile_result();
-            result.success = o;
-            result.setSuccessIsSet(true);
-            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;
-            deleteUserProfile_result result = new deleteUserProfile_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, deleteUserProfile_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
-        iface.deleteUserProfile(args.userId,resultHandler);
-      }
-    }
-
-    public static class getAllUserProfilesInGateway<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllUserProfilesInGateway_args, List<org.apache.airavata.model.user.UserProfile>> {
-      public getAllUserProfilesInGateway() {
-        super("getAllUserProfilesInGateway");
-      }
-
-      public getAllUserProfilesInGateway_args getEmptyArgsInstance() {
-        return new getAllUserProfilesInGateway_args();
-      }
-
-      public AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>>() { 
-          public void onComplete(List<org.apache.airavata.model.user.UserProfile> o) {
-            getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_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;
-            getAllUserProfilesInGateway_result result = new getAllUserProfilesInGateway_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, getAllUserProfilesInGateway_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.model.user.UserProfile>> resultHandler) throws TException {
-        iface.getAllUserProfilesInGateway(args.gatewayId, args.offset, args.limit,resultHandler);
-      }
-    }
-
-    public static class getUserProfileByName<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserProfileByName_args, org.apache.airavata.model.user.UserProfile> {
-      public getUserProfileByName() {
-        super("getUserProfileByName");
-      }
-
-      public getUserProfileByName_args getEmptyArgsInstance() {
-        return new getUserProfileByName_args();
-      }
-
-      public AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<org.apache.airavata.model.user.UserProfile>() { 
-          public void onComplete(org.apache.airavata.model.user.UserProfile o) {
-            getUserProfileByName_result result = new getUserProfileByName_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;
-            getUserProfileByName_result result = new getUserProfileByName_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, getUserProfileByName_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.user.UserProfile> resultHandler) throws TException {
-        iface.getUserProfileByName(args.userName, args.gatewayId,resultHandler);
-      }
-    }
-
-    public static class doesUserExist<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, doesUserExist_args, Boolean> {
-      public doesUserExist() {
-        super("doesUserExist");
-      }
-
-      public doesUserExist_args getEmptyArgsInstance() {
-        return new doesUserExist_args();
-      }
-
-      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
-        final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<Boolean>() { 
-          public void onComplete(Boolean o) {
-            doesUserExist_result result = new doesUserExist_result();
-            result.success = o;
-            result.setSuccessIsSet(true);
-            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;
-            doesUserExist_result result = new doesUserExist_result();
-            if (e instanceof org.apache.airavata.registry.api.exception.RegistryServiceException) {
-                        result.registryException = (org.apache.airavata.registry.api.exception.RegistryServiceException) e;
-                        result.setRegistryExceptionIsSet(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, doesUserExist_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
-        iface.doesUserExist(args.userName, args.gatewayId,resultHandler);
-      }
-    }
-
-  }
-
-  public static class addUserProfile_args implements org.apache.thrift.TBase<addUserProfile_args, addUserProfile_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUserProfile_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserProfile_args");
-
-    private static final org.apache.thrift.protocol.TField USER_PROFILE_FIELD_DESC = new org.apache.thrift.protocol.TField("userProfile", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
-    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-    static {
-      schemes.put(StandardScheme.class, new addUserProfile_argsStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new addUserProfile_argsTupleSchemeFactory());
-    }
-
-    public org.apache.airavata.model.user.UserProfile userProfile; // 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_PROFILE((short)1, "userProfile");
-
-      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_PROFILE
-            return USER_PROFILE;
-          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_PROFILE, new org.apache.thrift.meta_data.FieldMetaData("userProfile", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.user.UserProfile.class)));
-      metaDataMap = Collections.unmodifiableMap(tmpMap);
-      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserProfile_args.class, metaDataMap);
-    }
-
-    public addUserProfile_args() {
-    }
-
-    public addUserProfile_args(
-      org.apache.airavata.model.user.UserProfile userProfile)
-    {
-      this();
-      this.userProfile = userProfile;
-    }
-
-    /**
-     * Performs a deep copy on <i>other</i>.
-     */
-    public addUserProfile_args(addUserProfile_args other) {
-      if (other.isSetUserProfile()) {
-        this.userProfile = new org.apache.airavata.model.user.UserProfile(other.userProfile);
-      }
-    }
-
-    public addUserProfile_args deepCopy() {
-      return new addUserProfile_args(this);
-    }
-
-    @Override
-    public void clear() {
-      this.userProfile = null;
-    }
-
-    public org.apache.airavata.model.user.UserProfile getUserProfile() {
-      return this.userProfile;
-    }
-
-    public addUserProfile_args setUserProfile(org.apache.airavata.model.user.UserProfile userProfile) {
-      this.userProfile = userProfile;
-      return this;
-    }
-
-    public void unsetUserProfile() {
-      this.userProfile = null;
-    }
-
-    /** Returns true if field userProfile is set (has been assigned a value) and false otherwise */
-    public boolean isSetUserProfile() {
-      return this.userProfile != null;
-    }
-
-    public void setUserProfileIsSet(boolean value) {
-      if (!value) {
-        this.userProfile = null;
-      }
-    }
-
-    public void setFieldValue(_Fields field, Object value) {
-      switch (field) {
-      case USER_PROFILE:
-        if (value == null) {
-          unsetUserProfile();
-        } else {
-          setUserProfile((org.apache.airavata.model.user.UserProfile)value);
-        }
-        break;
-
-      }
-    }
-
-    public Object getFieldValue(_Fields field) {
-      switch (field) {
-      case USER_PROFILE:
-        return getUserProfile();
-
-      }
-      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_PROFILE:
-        return isSetUserProfile();
-      }
-      throw new IllegalStateException();
-    }
-
-    @Override
-    public boolean equals(Object that) {
-      if (that == null)
-        return false;
-      if (that instanceof addUserProfile_args)
-        return this.equals((addUserProfile_args)that);
-      return false;
-    }
-
-    public boolean equals(addUserProfile_args that) {
-      if (that == null)
-        return false;
-
-      boolean this_present_userProfile = true && this.isSetUserProfile();
-      boolean that_present_userProfile = true && that.isSetUserProfile();
-      if (this_present_userProfile || that_present_userProfile) {
-        if (!(this_present_userProfile && that_present_userProfile))
-          return false;
-        if (!this.userProfile.equals(that.userProfile))
-          return false;
-      }
-
-      return true;
-    }
-
-    @Override
-    public int hashCode() {
-      List<Object> list = new ArrayList<Object>();
-
-      boolean present_userProfile = true && (isSetUserProfile());
-      list.add(present_userProfile);
-      if (present_userProfile)
-        list.add(userProfile);
-
-      return list.hashCode();
-    }
-
-    @Override
-    public int compareTo(addUserProfile_args other) {
-      if (!getClass().equals(other.getClass())) {
-        return getClass().getName().compareTo(other.getClass().getName());
-      }
-
-      int lastComparison = 0;
-
-      lastComparison = Boolean.valueOf(isSetUserProfile()).compareTo(other.isSetUserProfile());
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-      if (isSetUserProfile()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userProfile, other.userProfile);
-        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("addUserProfile_args(");
-      boolean first = true;
-
-      sb.append("userProfile:");
-      if (this.userProfile == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.userProfile);
-      }
-      first = false;
-      sb.append(")");
-      return sb.toString();
-    }
-
-    public void validate() throws org.apache.thrift.TException {
-      // check for required fields
-      if (userProfile == null) {
-        throw new org.apache.thrift.protocol.TProtocolException("Required field 'userProfile' was not present! Struct: " + toString());
-      }
-      // check for sub-struct validity
-      if (userProfile != null) {
-        userProfile.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 addUserProfile_argsStandardSchemeFactory implements SchemeFactory {
-      public addUserProfile_argsStandardScheme getScheme() {
-        return new addUserProfile_argsStandardScheme();
-      }
-    }
-
-    private static class addUserProfile_argsStandardScheme extends StandardScheme<addUserProfile_args> {
-
-      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_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_PROFILE
-              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-                struct.userProfile = new org.apache.airavata.model.user.UserProfile();
-                struct.userProfile.read(iprot);
-                struct.setUserProfileIsSet(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, addUserProfile_args struct) throws org.apache.thrift.TException {
-        struct.validate();
-
-        oprot.writeStructBegin(STRUCT_DESC);
-        if (struct.userProfile != null) {
-          oprot.writeFieldBegin(USER_PROFILE_FIELD_DESC);
-          struct.userProfile.write(oprot);
-          oprot.writeFieldEnd();
-        }
-        oprot.writeFieldStop();
-        oprot.writeStructEnd();
-      }
-
-    }
-
-    private static class addUserProfile_argsTupleSchemeFactory implements SchemeFactory {
-      public addUserProfile_argsTupleScheme getScheme() {
-        return new addUserProfile_argsTupleScheme();
-      }
-    }
-
-    private static class addUserProfile_argsTupleScheme extends TupleScheme<addUserProfile_args> {
-
-      @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
-        TTupleProtocol oprot = (TTupleProtocol) prot;
-        struct.userProfile.write(oprot);
-      }
-
-      @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_args struct) throws org.apache.thrift.TException {
-        TTupleProtocol iprot = (TTupleProtocol) prot;
-        struct.userProfile = new org.apache.airavata.model.user.UserProfile();
-        struct.userProfile.read(iprot);
-        struct.setUserProfileIsSet(true);
-      }
-    }
-
-  }
-
-  public static class addUserProfile_result implements org.apache.thrift.TBase<addUserProfile_result, addUserProfile_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUserProfile_result>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserProfile_result");
-
-    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-    private static final org.apache.thrift.protocol.TField REGISTRY_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("registryException", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
-    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-    static {
-      schemes.put(StandardScheme.class, new addUserProfile_resultStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new addUserProfile_resultTupleSchemeFactory());
-    }
-
-    public String success; // required
-    public org.apache.airavata.registry.api.exception.RegistryServiceException registryException; // 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"),
-      REGISTRY_EXCEPTION((short)1, "registryException");
-
-      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: // REGISTRY_EXCEPTION
-            return REGISTRY_EXCEPTION;
-          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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-      tmpMap.put(_Fields.REGISTRY_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("registryException", 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(addUserProfile_result.class, metaDataMap);
-    }
-
-    public addUserProfile_result() {
-    }
-
-    public addUserProfile_result(
-      String success,
-      org.apache.airavata.registry.api.exception.RegistryServiceException registryException)
-    {
-      this();
-      this.success = success;
-      this.registryException = registryException;
-    }
-
-    /**
-     * Performs a deep copy on <i>other</i>.
-     */
-    public addUserProfile_result(addUserProfile_result other) {
-      if (other.isSetSuccess()) {
-        this.success = other.success;
-      }
-      if (other.isSetRegistryException()) {
-        this.registryException = new org.apache.airavata.registry.api.exception.RegistryServiceException(other.registryException);
-      }
-    }
-
-    public addUserProfile_result deepCopy() {
-      return new addUserProfile_result(this);
-    }
-
-    @Override
-    public void clear() {
-      this.success = null;
-      this.registryException = null;
-    }
-
-    public String getSuccess() {
-      return this.success;
-    }
-
-    public addUserProfile_result setSuccess(String 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 org.apache.airavata.registry.api.exception.RegistryServiceException getRegistryException() {
-      return this.registryException;
-    }
-
-    public addUserProfile_result setRegistryException(org.apache.airavata.registry.api.exception.RegistryServiceException registryException) {
-      this.registryException = registryException;
-      return this;
-    }
-
-    public void unsetRegistryException() {
-      this.registryException = null;
-    }
-
-    /** Returns true if field registryException is set (has been assigned a value) and false otherwise */
-    public boolean isSetRegistryException() {
-      return this.registryException != null;
-    }
-
-    public void setRegistryExceptionIsSet(boolean value) {
-      if (!value) {
-        this.registryException = null;
-      }
-    }
-
-    public void setFieldValue(_Fields field, Object value) {
-      switch (field) {
-      case SUCCESS:
-        if (value == null) {
-          unsetSuccess();
-        } else {
-          setSuccess((String)value);
-        }
-        break;
-
-      case REGISTRY_EXCEPTION:
-        if (value == null) {
-          unsetRegistryException();
-        } else {
-          setRegistryException((org.apache.airavata.registry.api.exception.RegistryServiceException)value);
-        }
-        break;
-
-      }
-    }
-
-    public Object getFieldValue(_Fields field) {
-      switch (field) {
-      case SUCCESS:
-        return getSuccess();
-
-      case REGISTRY_EXCEPTION:
-        return getRegistryException();
-
-      }
-      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 REGISTRY_EXCEPTION:
-        return isSetRegistryException();
-      }
-      throw new IllegalStateException();
-    }
-
-    @Override
-    public boolean equals(Object that) {
-      if (that == null)
-        return false;
-      if (that instanceof addUserProfile_result)
-        return this.equals((addUserProfile_result)that);
-      return false;
-    }
-
-    public boolean equals(addUserProfile_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_registryException = true && this.isSetRegistryException();
-      boolean that_present_registryException = true && that.isSetRegistryException();
-      if (this_present_registryException || that_present_registryException) {
-        if (!(this_present_registryException && that_present_registryException))
-          return false;
-        if (!this.registryException.equals(that.registryException))
-          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_registryException = true && (isSetRegistryException());
-      list.add(present_registryException);
-      if (present_registryException)
-        list.add(registryException);
-
-      return list.hashCode();
-    }
-
-    @Override
-    public int compareTo(addUserProfile_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(isSetRegistryException()).compareTo(other.isSetRegistryException());
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-      if (isSetRegistryException()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registryException, other.registryException);
-        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("addUserProfile_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("registryException:");
-      if (this.registryException == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.registryException);
-      }
-      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 addUserProfile_resultStandardSchemeFactory implements SchemeFactory {
-      public addUserProfile_resultStandardScheme getScheme() {
-        return new addUserProfile_resultStandardScheme();
-      }
-    }
-
-    private static class addUserProfile_resultStandardScheme extends StandardScheme<addUserProfile_result> {
-
-      public void read(org.apache.thrift.protocol.TProtocol iprot, addUserProfile_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.STRING) {
-                struct.success = iprot.readString();
-                struct.setSuccessIsSet(true);
-              } else { 
-                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-              }
-              break;
-            case 1: // REGISTRY_EXCEPTION
-              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-                struct.registryException = new org.apache.airavata.registry.api.exception.RegistryServiceException();
-                struct.registryException.read(iprot);
-                struct.setRegistryExceptionIsSet(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, addUserProfile_result struct) throws org.apache.thrift.TException {
-        struct.validate();
-
-        oprot.writeStructBegin(STRUCT_DESC);
-        if (struct.success != null) {
-          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-          oprot.writeString(struct.success);
-          oprot.writeFieldEnd();
-        }
-        if (struct.registryException != null) {
-          oprot.writeFieldBegin(REGISTRY_EXCEPTION_FIELD_DESC);
-          struct.registryException.write(oprot);
-          oprot.writeFieldEnd();
-        }
-        oprot.writeFieldStop();
-        oprot.writeStructEnd();
-      }
-
-    }
-
-    private static class addUserProfile_resultTupleSchemeFactory implements SchemeFactory {
-      public addUserProfile_resultTupleScheme getScheme() {
-        return new addUserProfile_resultTupleScheme();
-      }
-    }
-
-    private static class addUserProfile_resultTupleScheme extends TupleScheme<addUserProfile_result> {
-
-      @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
-        TTupleProtocol oprot = (TTupleProtocol) prot;
-        BitSet optionals = new BitSet();
-        if (struct.isSetSuccess()) {
-          optionals.set(0);
-        }
-        if (struct.isSetRegistryException()) {
-          optionals.set(1);
-        }
-        oprot.writeBitSet(optionals, 2);
-        if (struct.isSetSuccess()) {
-          oprot.writeString(struct.success);
-        }
-        if (struct.isSetRegistryException()) {
-          struct.registryException.write(oprot);
-        }
-      }
-
-      @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, addUserProfile_result struct) throws org.apache.thrift.TException {
-        TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
-        if (incoming.get(0)) {
-          struct.success = iprot.readString();
-          struct.setSuccessIsSet(true);
-        }
-        if (incoming.get(1)) {
-          struct.registryException = new org.apache.airavata.registry.api.exception.RegistryServiceException();
-          struct.registryException.read(iprot);
-          struct.setRegistryExceptionIsSet(true);
-        }
-      }
-    }
-
-  }
-
-  public static class updateUserProfile_args implements org.apache.thrift.TBase<updateUserProfile_args, updateUserProfile_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateUserProfile_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserProfile_args");
-
-    private static final org.apache.thrift.protocol.TField USER_PROFILE_FIELD_DESC = new org.apache.thrift.protocol.TField("userProfile", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
-    private static final Map<C

<TRUNCATED>

[04/14] airavata git commit: adding the server property file, which was left out in last commit

Posted by ma...@apache.org.
adding the server property file, which was left out in last commit


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/aa98eee4
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/aa98eee4
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/aa98eee4

Branch: refs/heads/develop
Commit: aa98eee4f34949a4a8fe09361fe59d6e93e22e36
Parents: 8f6f218
Author: Anuj Bhandar <bh...@gmail.com>
Authored: Tue Jan 24 18:57:11 2017 -0500
Committer: Anuj Bhandar <bh...@gmail.com>
Committed: Tue Jan 24 18:57:11 2017 -0500

----------------------------------------------------------------------
 .../server/src/main/resources/airavata-server.properties           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/aa98eee4/modules/configuration/server/src/main/resources/airavata-server.properties
----------------------------------------------------------------------
diff --git a/modules/configuration/server/src/main/resources/airavata-server.properties b/modules/configuration/server/src/main/resources/airavata-server.properties
index defc1cc..7da87d8 100644
--- a/modules/configuration/server/src/main/resources/airavata-server.properties
+++ b/modules/configuration/server/src/main/resources/airavata-server.properties
@@ -333,4 +333,4 @@ enable.kafka.logging=false
 ###########################################################################
 user.profile.server.host=localhost
 user.profile.server.port=8961
-user_profile=com.apache.airavata.user.profile.server.UserProfileServer
\ No newline at end of file
+user_profile=org.apache.airavata.user.profile.server.UserProfileServer
\ No newline at end of file