airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [28/50] [abbrv] airavata git commit: Modify SharingRegistryService to throw DuplicateEntryException
Date Wed, 05 Apr 2017 19:10:52 GMT
Modify SharingRegistryService to throw DuplicateEntryException


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

Branch: refs/heads/develop
Commit: f17d5f59ae113ad3b8be1c3900b3d0f3af9441a8
Parents: eff24f1
Author: Gourav Shenoy <shenoy.200@gmail.com>
Authored: Tue Apr 4 16:28:00 2017 -0400
Committer: Gourav Shenoy <shenoy.200@gmail.com>
Committed: Tue Apr 4 16:28:00 2017 -0400

----------------------------------------------------------------------
 .../sharing/registry/models/Entity.java         |  40 +-
 .../service/cpi/SharingRegistryService.java     | 546 +++++++++++++++++--
 .../sharing-service-docs/api-docs/index.html    | 119 ++++
 .../api-docs/sharing_cpi.html                   |   8 +-
 .../api-docs/sharing_models.html                |  27 +-
 .../thrift_models/sharing_cpi.thrift            |   9 +-
 .../thrift_models/thrift-gen.sh                 |   4 +-
 7 files changed, 662 insertions(+), 91 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
index dc485fb..d85888f 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
@@ -67,7 +67,7 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
   private static final org.apache.thrift.protocol.TField ORIGINAL_ENTITY_CREATION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("originalEntityCreationTime", org.apache.thrift.protocol.TType.I64, (short)10);
   private static final org.apache.thrift.protocol.TField CREATED_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTime", org.apache.thrift.protocol.TType.I64, (short)11);
   private static final org.apache.thrift.protocol.TField UPDATED_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedTime", org.apache.thrift.protocol.TType.I64, (short)12);
-  private static final org.apache.thrift.protocol.TField SHARED_FIELD_DESC = new org.apache.thrift.protocol.TField("shared", org.apache.thrift.protocol.TType.BOOL, (short) 13);
+  private static final org.apache.thrift.protocol.TField SHARED_FIELD_DESC = new org.apache.thrift.protocol.TField("shared", org.apache.thrift.protocol.TType.BOOL, (short)13);
 
   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
   static {
@@ -102,8 +102,8 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
     FULL_TEXT((short)9, "fullText"),
     ORIGINAL_ENTITY_CREATION_TIME((short)10, "originalEntityCreationTime"),
     CREATED_TIME((short)11, "createdTime"),
-    UPDATED_TIME((short) 12, "updatedTime"),
-    SHARED((short) 13, "shared");
+    UPDATED_TIME((short)12, "updatedTime"),
+    SHARED((short)13, "shared");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -189,7 +189,7 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
   private static final int __UPDATEDTIME_ISSET_ID = 2;
   private static final int __SHARED_ISSET_ID = 3;
   private byte __isset_bitfield = 0;
-  private static final _Fields optionals[] = {_Fields.ENTITY_ID, _Fields.DOMAIN_ID, _Fields.ENTITY_TYPE_ID, _Fields.OWNER_ID, _Fields.PARENT_ENTITY_ID, _Fields.NAME, _Fields.DESCRIPTION, _Fields.BINARY_DATA, _Fields.FULL_TEXT, _Fields.ORIGINAL_ENTITY_CREATION_TIME, _Fields.CREATED_TIME, _Fields.UPDATED_TIME, _Fields.SHARED};
+  private static final _Fields optionals[] = {_Fields.ENTITY_ID,_Fields.DOMAIN_ID,_Fields.ENTITY_TYPE_ID,_Fields.OWNER_ID,_Fields.PARENT_ENTITY_ID,_Fields.NAME,_Fields.DESCRIPTION,_Fields.BINARY_DATA,_Fields.FULL_TEXT,_Fields.ORIGINAL_ENTITY_CREATION_TIME,_Fields.CREATED_TIME,_Fields.UPDATED_TIME,_Fields.SHARED};
   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);
@@ -217,8 +217,8 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
     tmpMap.put(_Fields.UPDATED_TIME, new org.apache.thrift.meta_data.FieldMetaData("updatedTime", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.SHARED, new org.apache.thrift.meta_data.FieldMetaData("shared", org.apache.thrift.TFieldRequirementType.OPTIONAL,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.SHARED, new org.apache.thrift.meta_data.FieldMetaData("shared", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Entity.class, metaDataMap);
   }
@@ -600,9 +600,7 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHARED_ISSET_ID);
   }
 
-  /**
-   * Returns true if field shared is set (has been assigned a value) and false otherwise
-   */
+  /** Returns true if field shared is set (has been assigned a value) and false otherwise */
   public boolean isSetShared() {
     return EncodingUtils.testBit(__isset_bitfield, __SHARED_ISSET_ID);
   }
@@ -709,13 +707,13 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
       }
       break;
 
-      case SHARED:
-        if (value == null) {
-          unsetShared();
-        } else {
-          setShared((Boolean) value);
-        }
-        break;
+    case SHARED:
+      if (value == null) {
+        unsetShared();
+      } else {
+        setShared((Boolean)value);
+      }
+      break;
 
     }
   }
@@ -758,8 +756,8 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
     case UPDATED_TIME:
       return getUpdatedTime();
 
-      case SHARED:
-        return isShared();
+    case SHARED:
+      return isShared();
 
     }
     throw new IllegalStateException();
@@ -796,8 +794,8 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
       return isSetCreatedTime();
     case UPDATED_TIME:
       return isSetUpdatedTime();
-      case SHARED:
-        return isSetShared();
+    case SHARED:
+      return isSetShared();
     }
     throw new IllegalStateException();
   }
@@ -1423,7 +1421,7 @@ public class Entity implements org.apache.thrift.TBase<Entity, Entity._Fields>,
             if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
               struct.shared = iprot.readBool();
               struct.setSharedIsSet(true);
-            } else {
+            } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
index 065619c..0fcbdeb 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
@@ -44,7 +44,7 @@ public class SharingRegistryService {
      * 
      * @param domain
      */
-    public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+    public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
 
     /**
      * <p>API method to update a domain</p>
@@ -80,7 +80,7 @@ public class SharingRegistryService {
      * 
      * @param user
      */
-    public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+    public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
 
     /**
      * <p>API method to update existing user</p>
@@ -217,7 +217,7 @@ public class SharingRegistryService {
      * 
      * @param entityType
      */
-    public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+    public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
 
     /**
      * <p>API method to update entity type</p>
@@ -315,7 +315,7 @@ public class SharingRegistryService {
      * 
      * @param permissionType
      */
-    public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+    public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
 
     /**
      * <p>API method to update permission type</p>
@@ -513,7 +513,7 @@ public class SharingRegistryService {
       super(iprot, oprot);
     }
 
-    public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       send_createDomain(domain);
       return recv_createDomain();
@@ -526,7 +526,7 @@ public class SharingRegistryService {
       sendBase("createDomain", args);
     }
 
-    public String recv_createDomain() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String recv_createDomain() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       createDomain_result result = new createDomain_result();
       receiveBase(result, "createDomain");
@@ -536,6 +536,9 @@ public class SharingRegistryService {
       if (result.sre != null) {
         throw result.sre;
       }
+      if (result.dee != null) {
+        throw result.dee;
+      }
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createDomain failed: unknown result");
     }
 
@@ -644,7 +647,7 @@ public class SharingRegistryService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDomains failed: unknown result");
     }
 
-    public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       send_createUser(user);
       return recv_createUser();
@@ -657,7 +660,7 @@ public class SharingRegistryService {
       sendBase("createUser", args);
     }
 
-    public String recv_createUser() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String recv_createUser() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       createUser_result result = new createUser_result();
       receiveBase(result, "createUser");
@@ -667,6 +670,9 @@ public class SharingRegistryService {
       if (result.sre != null) {
         throw result.sre;
       }
+      if (result.dee != null) {
+        throw result.dee;
+      }
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
     }
 
@@ -1079,7 +1085,7 @@ public class SharingRegistryService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeChildGroupFromParentGroup failed: unknown result");
     }
 
-    public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       send_createEntityType(entityType);
       return recv_createEntityType();
@@ -1092,7 +1098,7 @@ public class SharingRegistryService {
       sendBase("createEntityType", args);
     }
 
-    public String recv_createEntityType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String recv_createEntityType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       createEntityType_result result = new createEntityType_result();
       receiveBase(result, "createEntityType");
@@ -1102,6 +1108,9 @@ public class SharingRegistryService {
       if (result.sre != null) {
         throw result.sre;
       }
+      if (result.dee != null) {
+        throw result.dee;
+      }
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createEntityType failed: unknown result");
     }
 
@@ -1405,7 +1414,7 @@ public class SharingRegistryService {
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getListOfSharedGroups failed: unknown result");
     }
 
-    public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       send_createPermissionType(permissionType);
       return recv_createPermissionType();
@@ -1418,7 +1427,7 @@ public class SharingRegistryService {
       sendBase("createPermissionType", args);
     }
 
-    public String recv_createPermissionType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+    public String recv_createPermissionType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
     {
       createPermissionType_result result = new createPermissionType_result();
       receiveBase(result, "createPermissionType");
@@ -1428,6 +1437,9 @@ public class SharingRegistryService {
       if (result.sre != null) {
         throw result.sre;
       }
+      if (result.dee != null) {
+        throw result.dee;
+      }
       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPermissionType failed: unknown result");
     }
 
@@ -1726,7 +1738,7 @@ public class SharingRegistryService {
         prot.writeMessageEnd();
       }
 
-      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException {
+      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
           throw new IllegalStateException("Method call not finished!");
         }
@@ -1889,7 +1901,7 @@ public class SharingRegistryService {
         prot.writeMessageEnd();
       }
 
-      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException {
+      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
           throw new IllegalStateException("Method call not finished!");
         }
@@ -2467,7 +2479,7 @@ public class SharingRegistryService {
         prot.writeMessageEnd();
       }
 
-      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException {
+      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
           throw new IllegalStateException("Method call not finished!");
         }
@@ -2893,7 +2905,7 @@ public class SharingRegistryService {
         prot.writeMessageEnd();
       }
 
-      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException {
+      public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
           throw new IllegalStateException("Method call not finished!");
         }
@@ -3332,6 +3344,8 @@ public class SharingRegistryService {
           result.success = iface.createDomain(args.domain);
         } catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
           result.sre = sre;
+        } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+          result.dee = dee;
         }
         return result;
       }
@@ -3454,6 +3468,8 @@ public class SharingRegistryService {
           result.success = iface.createUser(args.user);
         } catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
           result.sre = sre;
+        } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+          result.dee = dee;
         }
         return result;
       }
@@ -3842,6 +3858,8 @@ public class SharingRegistryService {
           result.success = iface.createEntityType(args.entityType);
         } catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
           result.sre = sre;
+        } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+          result.dee = dee;
         }
         return result;
       }
@@ -4134,6 +4152,8 @@ public class SharingRegistryService {
           result.success = iface.createPermissionType(args.permissionType);
         } catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
           result.sre = sre;
+        } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+          result.dee = dee;
         }
         return result;
       }
@@ -4453,6 +4473,11 @@ public class SharingRegistryService {
                         result.setSreIsSet(true);
                         msg = result;
             }
+            else             if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
+                        result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+                        result.setDeeIsSet(true);
+                        msg = result;
+            }
              else 
             {
               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -4740,6 +4765,11 @@ public class SharingRegistryService {
                         result.setSreIsSet(true);
                         msg = result;
             }
+            else             if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
+                        result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+                        result.setDeeIsSet(true);
+                        msg = result;
+            }
              else 
             {
               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -5654,6 +5684,11 @@ public class SharingRegistryService {
                         result.setSreIsSet(true);
                         msg = result;
             }
+            else             if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
+                        result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+                        result.setDeeIsSet(true);
+                        msg = result;
+            }
              else 
             {
               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -6192,7 +6227,7 @@ public class SharingRegistryService {
       }
 
       public void start(I iface, searchEntities_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>> resultHandler) throws TException {
-        iface.searchEntities(args.domainId, args.userId, args.filters, args.offset, args.limit, resultHandler);
+        iface.searchEntities(args.domainId, args.userId, args.filters, args.offset, args.limit,resultHandler);
       }
     }
 
@@ -6342,6 +6377,11 @@ public class SharingRegistryService {
                         result.setSreIsSet(true);
                         msg = result;
             }
+            else             if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
+                        result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+                        result.setDeeIsSet(true);
+                        msg = result;
+            }
              else 
             {
               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -7253,6 +7293,7 @@ public class SharingRegistryService {
 
     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 SRE_FIELD_DESC = new org.apache.thrift.protocol.TField("sre", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField DEE_FIELD_DESC = new org.apache.thrift.protocol.TField("dee", org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
@@ -7262,11 +7303,13 @@ public class SharingRegistryService {
 
     public String success; // required
     public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
+    public org.apache.airavata.model.error.DuplicateEntryException dee; // 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"),
-      SRE((short)1, "sre");
+      SRE((short)1, "sre"),
+      DEE((short)2, "dee");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -7285,6 +7328,8 @@ public class SharingRegistryService {
             return SUCCESS;
           case 1: // SRE
             return SRE;
+          case 2: // DEE
+            return DEE;
           default:
             return null;
         }
@@ -7332,6 +7377,8 @@ public class SharingRegistryService {
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.SRE, new org.apache.thrift.meta_data.FieldMetaData("sre", org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.DEE, new org.apache.thrift.meta_data.FieldMetaData("dee", 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(createDomain_result.class, metaDataMap);
     }
@@ -7341,11 +7388,13 @@ public class SharingRegistryService {
 
     public createDomain_result(
       String success,
-      org.apache.airavata.sharing.registry.models.SharingRegistryException sre)
+      org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
+      org.apache.airavata.model.error.DuplicateEntryException dee)
     {
       this();
       this.success = success;
       this.sre = sre;
+      this.dee = dee;
     }
 
     /**
@@ -7358,6 +7407,9 @@ public class SharingRegistryService {
       if (other.isSetSre()) {
         this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
       }
+      if (other.isSetDee()) {
+        this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+      }
     }
 
     public createDomain_result deepCopy() {
@@ -7368,6 +7420,7 @@ public class SharingRegistryService {
     public void clear() {
       this.success = null;
       this.sre = null;
+      this.dee = null;
     }
 
     public String getSuccess() {
@@ -7418,6 +7471,30 @@ public class SharingRegistryService {
       }
     }
 
+    public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+      return this.dee;
+    }
+
+    public createDomain_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+      this.dee = dee;
+      return this;
+    }
+
+    public void unsetDee() {
+      this.dee = null;
+    }
+
+    /** Returns true if field dee is set (has been assigned a value) and false otherwise */
+    public boolean isSetDee() {
+      return this.dee != null;
+    }
+
+    public void setDeeIsSet(boolean value) {
+      if (!value) {
+        this.dee = null;
+      }
+    }
+
     public void setFieldValue(_Fields field, Object value) {
       switch (field) {
       case SUCCESS:
@@ -7436,6 +7513,14 @@ public class SharingRegistryService {
         }
         break;
 
+      case DEE:
+        if (value == null) {
+          unsetDee();
+        } else {
+          setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+        }
+        break;
+
       }
     }
 
@@ -7447,6 +7532,9 @@ public class SharingRegistryService {
       case SRE:
         return getSre();
 
+      case DEE:
+        return getDee();
+
       }
       throw new IllegalStateException();
     }
@@ -7462,6 +7550,8 @@ public class SharingRegistryService {
         return isSetSuccess();
       case SRE:
         return isSetSre();
+      case DEE:
+        return isSetDee();
       }
       throw new IllegalStateException();
     }
@@ -7497,6 +7587,15 @@ public class SharingRegistryService {
           return false;
       }
 
+      boolean this_present_dee = true && this.isSetDee();
+      boolean that_present_dee = true && that.isSetDee();
+      if (this_present_dee || that_present_dee) {
+        if (!(this_present_dee && that_present_dee))
+          return false;
+        if (!this.dee.equals(that.dee))
+          return false;
+      }
+
       return true;
     }
 
@@ -7514,6 +7613,11 @@ public class SharingRegistryService {
       if (present_sre)
         list.add(sre);
 
+      boolean present_dee = true && (isSetDee());
+      list.add(present_dee);
+      if (present_dee)
+        list.add(dee);
+
       return list.hashCode();
     }
 
@@ -7545,6 +7649,16 @@ public class SharingRegistryService {
           return lastComparison;
         }
       }
+      lastComparison = Boolean.valueOf(isSetDee()).compareTo(other.isSetDee());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetDee()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dee, other.dee);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
       return 0;
     }
 
@@ -7580,6 +7694,14 @@ public class SharingRegistryService {
         sb.append(this.sre);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("dee:");
+      if (this.dee == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.dee);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -7640,6 +7762,15 @@ public class SharingRegistryService {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
               }
               break;
+            case 2: // DEE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+                struct.dee.read(iprot);
+                struct.setDeeIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
             default:
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
           }
@@ -7665,6 +7796,11 @@ public class SharingRegistryService {
           struct.sre.write(oprot);
           oprot.writeFieldEnd();
         }
+        if (struct.dee != null) {
+          oprot.writeFieldBegin(DEE_FIELD_DESC);
+          struct.dee.write(oprot);
+          oprot.writeFieldEnd();
+        }
         oprot.writeFieldStop();
         oprot.writeStructEnd();
       }
@@ -7689,19 +7825,25 @@ public class SharingRegistryService {
         if (struct.isSetSre()) {
           optionals.set(1);
         }
-        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetDee()) {
+          optionals.set(2);
+        }
+        oprot.writeBitSet(optionals, 3);
         if (struct.isSetSuccess()) {
           oprot.writeString(struct.success);
         }
         if (struct.isSetSre()) {
           struct.sre.write(oprot);
         }
+        if (struct.isSetDee()) {
+          struct.dee.write(oprot);
+        }
       }
 
       @Override
       public void read(org.apache.thrift.protocol.TProtocol prot, createDomain_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
+        BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
           struct.success = iprot.readString();
           struct.setSuccessIsSet(true);
@@ -7711,6 +7853,11 @@ public class SharingRegistryService {
           struct.sre.read(iprot);
           struct.setSreIsSet(true);
         }
+        if (incoming.get(2)) {
+          struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+          struct.dee.read(iprot);
+          struct.setDeeIsSet(true);
+        }
       }
     }
 
@@ -11527,6 +11674,7 @@ public class SharingRegistryService {
 
     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 SRE_FIELD_DESC = new org.apache.thrift.protocol.TField("sre", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField DEE_FIELD_DESC = new org.apache.thrift.protocol.TField("dee", org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
@@ -11536,11 +11684,13 @@ public class SharingRegistryService {
 
     public String success; // required
     public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
+    public org.apache.airavata.model.error.DuplicateEntryException dee; // 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"),
-      SRE((short)1, "sre");
+      SRE((short)1, "sre"),
+      DEE((short)2, "dee");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -11559,6 +11709,8 @@ public class SharingRegistryService {
             return SUCCESS;
           case 1: // SRE
             return SRE;
+          case 2: // DEE
+            return DEE;
           default:
             return null;
         }
@@ -11606,6 +11758,8 @@ public class SharingRegistryService {
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.SRE, new org.apache.thrift.meta_data.FieldMetaData("sre", org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.DEE, new org.apache.thrift.meta_data.FieldMetaData("dee", 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(createUser_result.class, metaDataMap);
     }
@@ -11615,11 +11769,13 @@ public class SharingRegistryService {
 
     public createUser_result(
       String success,
-      org.apache.airavata.sharing.registry.models.SharingRegistryException sre)
+      org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
+      org.apache.airavata.model.error.DuplicateEntryException dee)
     {
       this();
       this.success = success;
       this.sre = sre;
+      this.dee = dee;
     }
 
     /**
@@ -11632,6 +11788,9 @@ public class SharingRegistryService {
       if (other.isSetSre()) {
         this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
       }
+      if (other.isSetDee()) {
+        this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+      }
     }
 
     public createUser_result deepCopy() {
@@ -11642,6 +11801,7 @@ public class SharingRegistryService {
     public void clear() {
       this.success = null;
       this.sre = null;
+      this.dee = null;
     }
 
     public String getSuccess() {
@@ -11692,6 +11852,30 @@ public class SharingRegistryService {
       }
     }
 
+    public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+      return this.dee;
+    }
+
+    public createUser_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+      this.dee = dee;
+      return this;
+    }
+
+    public void unsetDee() {
+      this.dee = null;
+    }
+
+    /** Returns true if field dee is set (has been assigned a value) and false otherwise */
+    public boolean isSetDee() {
+      return this.dee != null;
+    }
+
+    public void setDeeIsSet(boolean value) {
+      if (!value) {
+        this.dee = null;
+      }
+    }
+
     public void setFieldValue(_Fields field, Object value) {
       switch (field) {
       case SUCCESS:
@@ -11710,6 +11894,14 @@ public class SharingRegistryService {
         }
         break;
 
+      case DEE:
+        if (value == null) {
+          unsetDee();
+        } else {
+          setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+        }
+        break;
+
       }
     }
 
@@ -11721,6 +11913,9 @@ public class SharingRegistryService {
       case SRE:
         return getSre();
 
+      case DEE:
+        return getDee();
+
       }
       throw new IllegalStateException();
     }
@@ -11736,6 +11931,8 @@ public class SharingRegistryService {
         return isSetSuccess();
       case SRE:
         return isSetSre();
+      case DEE:
+        return isSetDee();
       }
       throw new IllegalStateException();
     }
@@ -11771,6 +11968,15 @@ public class SharingRegistryService {
           return false;
       }
 
+      boolean this_present_dee = true && this.isSetDee();
+      boolean that_present_dee = true && that.isSetDee();
+      if (this_present_dee || that_present_dee) {
+        if (!(this_present_dee && that_present_dee))
+          return false;
+        if (!this.dee.equals(that.dee))
+          return false;
+      }
+
       return true;
     }
 
@@ -11788,6 +11994,11 @@ public class SharingRegistryService {
       if (present_sre)
         list.add(sre);
 
+      boolean present_dee = true && (isSetDee());
+      list.add(present_dee);
+      if (present_dee)
+        list.add(dee);
+
       return list.hashCode();
     }
 
@@ -11819,6 +12030,16 @@ public class SharingRegistryService {
           return lastComparison;
         }
       }
+      lastComparison = Boolean.valueOf(isSetDee()).compareTo(other.isSetDee());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetDee()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dee, other.dee);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
       return 0;
     }
 
@@ -11854,6 +12075,14 @@ public class SharingRegistryService {
         sb.append(this.sre);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("dee:");
+      if (this.dee == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.dee);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -11914,6 +12143,15 @@ public class SharingRegistryService {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
               }
               break;
+            case 2: // DEE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+                struct.dee.read(iprot);
+                struct.setDeeIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
             default:
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
           }
@@ -11939,6 +12177,11 @@ public class SharingRegistryService {
           struct.sre.write(oprot);
           oprot.writeFieldEnd();
         }
+        if (struct.dee != null) {
+          oprot.writeFieldBegin(DEE_FIELD_DESC);
+          struct.dee.write(oprot);
+          oprot.writeFieldEnd();
+        }
         oprot.writeFieldStop();
         oprot.writeStructEnd();
       }
@@ -11963,19 +12206,25 @@ public class SharingRegistryService {
         if (struct.isSetSre()) {
           optionals.set(1);
         }
-        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetDee()) {
+          optionals.set(2);
+        }
+        oprot.writeBitSet(optionals, 3);
         if (struct.isSetSuccess()) {
           oprot.writeString(struct.success);
         }
         if (struct.isSetSre()) {
           struct.sre.write(oprot);
         }
+        if (struct.isSetDee()) {
+          struct.dee.write(oprot);
+        }
       }
 
       @Override
       public void read(org.apache.thrift.protocol.TProtocol prot, createUser_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
+        BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
           struct.success = iprot.readString();
           struct.setSuccessIsSet(true);
@@ -11985,6 +12234,11 @@ public class SharingRegistryService {
           struct.sre.read(iprot);
           struct.setSreIsSet(true);
         }
+        if (incoming.get(2)) {
+          struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+          struct.dee.read(iprot);
+          struct.setDeeIsSet(true);
+        }
       }
     }
 
@@ -27170,6 +27424,7 @@ public class SharingRegistryService {
 
     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 SRE_FIELD_DESC = new org.apache.thrift.protocol.TField("sre", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField DEE_FIELD_DESC = new org.apache.thrift.protocol.TField("dee", org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
@@ -27179,11 +27434,13 @@ public class SharingRegistryService {
 
     public String success; // required
     public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
+    public org.apache.airavata.model.error.DuplicateEntryException dee; // 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"),
-      SRE((short)1, "sre");
+      SRE((short)1, "sre"),
+      DEE((short)2, "dee");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -27202,6 +27459,8 @@ public class SharingRegistryService {
             return SUCCESS;
           case 1: // SRE
             return SRE;
+          case 2: // DEE
+            return DEE;
           default:
             return null;
         }
@@ -27249,6 +27508,8 @@ public class SharingRegistryService {
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.SRE, new org.apache.thrift.meta_data.FieldMetaData("sre", org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.DEE, new org.apache.thrift.meta_data.FieldMetaData("dee", 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(createEntityType_result.class, metaDataMap);
     }
@@ -27258,11 +27519,13 @@ public class SharingRegistryService {
 
     public createEntityType_result(
       String success,
-      org.apache.airavata.sharing.registry.models.SharingRegistryException sre)
+      org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
+      org.apache.airavata.model.error.DuplicateEntryException dee)
     {
       this();
       this.success = success;
       this.sre = sre;
+      this.dee = dee;
     }
 
     /**
@@ -27275,6 +27538,9 @@ public class SharingRegistryService {
       if (other.isSetSre()) {
         this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
       }
+      if (other.isSetDee()) {
+        this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+      }
     }
 
     public createEntityType_result deepCopy() {
@@ -27285,6 +27551,7 @@ public class SharingRegistryService {
     public void clear() {
       this.success = null;
       this.sre = null;
+      this.dee = null;
     }
 
     public String getSuccess() {
@@ -27335,6 +27602,30 @@ public class SharingRegistryService {
       }
     }
 
+    public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+      return this.dee;
+    }
+
+    public createEntityType_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+      this.dee = dee;
+      return this;
+    }
+
+    public void unsetDee() {
+      this.dee = null;
+    }
+
+    /** Returns true if field dee is set (has been assigned a value) and false otherwise */
+    public boolean isSetDee() {
+      return this.dee != null;
+    }
+
+    public void setDeeIsSet(boolean value) {
+      if (!value) {
+        this.dee = null;
+      }
+    }
+
     public void setFieldValue(_Fields field, Object value) {
       switch (field) {
       case SUCCESS:
@@ -27353,6 +27644,14 @@ public class SharingRegistryService {
         }
         break;
 
+      case DEE:
+        if (value == null) {
+          unsetDee();
+        } else {
+          setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+        }
+        break;
+
       }
     }
 
@@ -27364,6 +27663,9 @@ public class SharingRegistryService {
       case SRE:
         return getSre();
 
+      case DEE:
+        return getDee();
+
       }
       throw new IllegalStateException();
     }
@@ -27379,6 +27681,8 @@ public class SharingRegistryService {
         return isSetSuccess();
       case SRE:
         return isSetSre();
+      case DEE:
+        return isSetDee();
       }
       throw new IllegalStateException();
     }
@@ -27414,6 +27718,15 @@ public class SharingRegistryService {
           return false;
       }
 
+      boolean this_present_dee = true && this.isSetDee();
+      boolean that_present_dee = true && that.isSetDee();
+      if (this_present_dee || that_present_dee) {
+        if (!(this_present_dee && that_present_dee))
+          return false;
+        if (!this.dee.equals(that.dee))
+          return false;
+      }
+
       return true;
     }
 
@@ -27431,6 +27744,11 @@ public class SharingRegistryService {
       if (present_sre)
         list.add(sre);
 
+      boolean present_dee = true && (isSetDee());
+      list.add(present_dee);
+      if (present_dee)
+        list.add(dee);
+
       return list.hashCode();
     }
 
@@ -27462,6 +27780,16 @@ public class SharingRegistryService {
           return lastComparison;
         }
       }
+      lastComparison = Boolean.valueOf(isSetDee()).compareTo(other.isSetDee());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetDee()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dee, other.dee);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
       return 0;
     }
 
@@ -27497,6 +27825,14 @@ public class SharingRegistryService {
         sb.append(this.sre);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("dee:");
+      if (this.dee == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.dee);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -27557,6 +27893,15 @@ public class SharingRegistryService {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
               }
               break;
+            case 2: // DEE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+                struct.dee.read(iprot);
+                struct.setDeeIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
             default:
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
           }
@@ -27582,6 +27927,11 @@ public class SharingRegistryService {
           struct.sre.write(oprot);
           oprot.writeFieldEnd();
         }
+        if (struct.dee != null) {
+          oprot.writeFieldBegin(DEE_FIELD_DESC);
+          struct.dee.write(oprot);
+          oprot.writeFieldEnd();
+        }
         oprot.writeFieldStop();
         oprot.writeStructEnd();
       }
@@ -27606,19 +27956,25 @@ public class SharingRegistryService {
         if (struct.isSetSre()) {
           optionals.set(1);
         }
-        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetDee()) {
+          optionals.set(2);
+        }
+        oprot.writeBitSet(optionals, 3);
         if (struct.isSetSuccess()) {
           oprot.writeString(struct.success);
         }
         if (struct.isSetSre()) {
           struct.sre.write(oprot);
         }
+        if (struct.isSetDee()) {
+          struct.dee.write(oprot);
+        }
       }
 
       @Override
       public void read(org.apache.thrift.protocol.TProtocol prot, createEntityType_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
+        BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
           struct.success = iprot.readString();
           struct.setSuccessIsSet(true);
@@ -27628,6 +27984,11 @@ public class SharingRegistryService {
           struct.sre.read(iprot);
           struct.setSreIsSet(true);
         }
+        if (incoming.get(2)) {
+          struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+          struct.dee.read(iprot);
+          struct.setDeeIsSet(true);
+        }
       }
     }
 
@@ -34893,9 +35254,9 @@ public class SharingRegistryService {
 
     private static final org.apache.thrift.protocol.TField DOMAIN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("domainId", org.apache.thrift.protocol.TType.STRING, (short)1);
     private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)2);
-    private static final org.apache.thrift.protocol.TField FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("filters", org.apache.thrift.protocol.TType.LIST, (short) 3);
-    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short) 4);
-    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short) 5);
+    private static final org.apache.thrift.protocol.TField FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("filters", org.apache.thrift.protocol.TType.LIST, (short)3);
+    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)4);
+    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
@@ -34913,9 +35274,9 @@ public class SharingRegistryService {
     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
       DOMAIN_ID((short)1, "domainId"),
       USER_ID((short)2, "userId"),
-      FILTERS((short) 3, "filters"),
-      OFFSET((short) 4, "offset"),
-      LIMIT((short) 5, "limit");
+      FILTERS((short)3, "filters"),
+      OFFSET((short)4, "offset"),
+      LIMIT((short)5, "limit");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -38736,6 +39097,7 @@ public class SharingRegistryService {
 
     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 SRE_FIELD_DESC = new org.apache.thrift.protocol.TField("sre", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField DEE_FIELD_DESC = new org.apache.thrift.protocol.TField("dee", org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
@@ -38745,11 +39107,13 @@ public class SharingRegistryService {
 
     public String success; // required
     public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
+    public org.apache.airavata.model.error.DuplicateEntryException dee; // 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"),
-      SRE((short)1, "sre");
+      SRE((short)1, "sre"),
+      DEE((short)2, "dee");
 
       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -38768,6 +39132,8 @@ public class SharingRegistryService {
             return SUCCESS;
           case 1: // SRE
             return SRE;
+          case 2: // DEE
+            return DEE;
           default:
             return null;
         }
@@ -38815,6 +39181,8 @@ public class SharingRegistryService {
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.SRE, new org.apache.thrift.meta_data.FieldMetaData("sre", org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.DEE, new org.apache.thrift.meta_data.FieldMetaData("dee", 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(createPermissionType_result.class, metaDataMap);
     }
@@ -38824,11 +39192,13 @@ public class SharingRegistryService {
 
     public createPermissionType_result(
       String success,
-      org.apache.airavata.sharing.registry.models.SharingRegistryException sre)
+      org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
+      org.apache.airavata.model.error.DuplicateEntryException dee)
     {
       this();
       this.success = success;
       this.sre = sre;
+      this.dee = dee;
     }
 
     /**
@@ -38841,6 +39211,9 @@ public class SharingRegistryService {
       if (other.isSetSre()) {
         this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
       }
+      if (other.isSetDee()) {
+        this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+      }
     }
 
     public createPermissionType_result deepCopy() {
@@ -38851,6 +39224,7 @@ public class SharingRegistryService {
     public void clear() {
       this.success = null;
       this.sre = null;
+      this.dee = null;
     }
 
     public String getSuccess() {
@@ -38901,6 +39275,30 @@ public class SharingRegistryService {
       }
     }
 
+    public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+      return this.dee;
+    }
+
+    public createPermissionType_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+      this.dee = dee;
+      return this;
+    }
+
+    public void unsetDee() {
+      this.dee = null;
+    }
+
+    /** Returns true if field dee is set (has been assigned a value) and false otherwise */
+    public boolean isSetDee() {
+      return this.dee != null;
+    }
+
+    public void setDeeIsSet(boolean value) {
+      if (!value) {
+        this.dee = null;
+      }
+    }
+
     public void setFieldValue(_Fields field, Object value) {
       switch (field) {
       case SUCCESS:
@@ -38919,6 +39317,14 @@ public class SharingRegistryService {
         }
         break;
 
+      case DEE:
+        if (value == null) {
+          unsetDee();
+        } else {
+          setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+        }
+        break;
+
       }
     }
 
@@ -38930,6 +39336,9 @@ public class SharingRegistryService {
       case SRE:
         return getSre();
 
+      case DEE:
+        return getDee();
+
       }
       throw new IllegalStateException();
     }
@@ -38945,6 +39354,8 @@ public class SharingRegistryService {
         return isSetSuccess();
       case SRE:
         return isSetSre();
+      case DEE:
+        return isSetDee();
       }
       throw new IllegalStateException();
     }
@@ -38980,6 +39391,15 @@ public class SharingRegistryService {
           return false;
       }
 
+      boolean this_present_dee = true && this.isSetDee();
+      boolean that_present_dee = true && that.isSetDee();
+      if (this_present_dee || that_present_dee) {
+        if (!(this_present_dee && that_present_dee))
+          return false;
+        if (!this.dee.equals(that.dee))
+          return false;
+      }
+
       return true;
     }
 
@@ -38997,6 +39417,11 @@ public class SharingRegistryService {
       if (present_sre)
         list.add(sre);
 
+      boolean present_dee = true && (isSetDee());
+      list.add(present_dee);
+      if (present_dee)
+        list.add(dee);
+
       return list.hashCode();
     }
 
@@ -39028,6 +39453,16 @@ public class SharingRegistryService {
           return lastComparison;
         }
       }
+      lastComparison = Boolean.valueOf(isSetDee()).compareTo(other.isSetDee());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetDee()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dee, other.dee);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
       return 0;
     }
 
@@ -39063,6 +39498,14 @@ public class SharingRegistryService {
         sb.append(this.sre);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("dee:");
+      if (this.dee == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.dee);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -39123,6 +39566,15 @@ public class SharingRegistryService {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
               }
               break;
+            case 2: // DEE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+                struct.dee.read(iprot);
+                struct.setDeeIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
             default:
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
           }
@@ -39148,6 +39600,11 @@ public class SharingRegistryService {
           struct.sre.write(oprot);
           oprot.writeFieldEnd();
         }
+        if (struct.dee != null) {
+          oprot.writeFieldBegin(DEE_FIELD_DESC);
+          struct.dee.write(oprot);
+          oprot.writeFieldEnd();
+        }
         oprot.writeFieldStop();
         oprot.writeStructEnd();
       }
@@ -39172,19 +39629,25 @@ public class SharingRegistryService {
         if (struct.isSetSre()) {
           optionals.set(1);
         }
-        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetDee()) {
+          optionals.set(2);
+        }
+        oprot.writeBitSet(optionals, 3);
         if (struct.isSetSuccess()) {
           oprot.writeString(struct.success);
         }
         if (struct.isSetSre()) {
           struct.sre.write(oprot);
         }
+        if (struct.isSetDee()) {
+          struct.dee.write(oprot);
+        }
       }
 
       @Override
       public void read(org.apache.thrift.protocol.TProtocol prot, createPermissionType_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
+        BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
           struct.success = iprot.readString();
           struct.setSuccessIsSet(true);
@@ -39194,6 +39657,11 @@ public class SharingRegistryService {
           struct.sre.read(iprot);
           struct.setSreIsSet(true);
         }
+        if (incoming.get(2)) {
+          struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+          struct.dee.read(iprot);
+          struct.setDeeIsSet(true);
+        }
       }
     }
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/sharing-service-docs/api-docs/index.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/index.html b/modules/sharing-registry/sharing-service-docs/api-docs/index.html
index e4f5e56..ddbcca6 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/index.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/index.html
@@ -75,5 +75,124 @@
 </td>
 <td><code><a href="sharing_models.html#Const_DO_NOT_SET_AT_CLIENTS_ID">DO_NOT_SET_AT_CLIENTS_ID</a></code><br/>
 </code></td>
+</tr><tr>
+<td>airavata_errors</td><td></td>
+<td><a href="airavata_errors.html#Struct_AiravataClientException">AiravataClientException</a><br/>
+<a href="airavata_errors.html#Enum_AiravataErrorType">AiravataErrorType</a><br/>
+<a href="airavata_errors.html#Struct_AiravataSystemException">AiravataSystemException</a><br/>
+<a href="airavata_errors.html#Struct_AuthenticationException">AuthenticationException</a><br/>
+<a href="airavata_errors.html#Struct_AuthorizationException">AuthorizationException</a><br/>
+<a href="airavata_errors.html#Struct_DuplicateEntryException">DuplicateEntryException</a><br/>
+<a href="airavata_errors.html#Struct_ExperimentNotFoundException">ExperimentNotFoundException</a><br/>
+<a href="airavata_errors.html#Struct_InvalidRequestException">InvalidRequestException</a><br/>
+<a href="airavata_errors.html#Struct_LaunchValidationException">LaunchValidationException</a><br/>
+<a href="airavata_errors.html#Struct_ProjectNotFoundException">ProjectNotFoundException</a><br/>
+<a href="airavata_errors.html#Struct_TimedOutException">TimedOutException</a><br/>
+<a href="airavata_errors.html#Struct_ValidationResults">ValidationResults</a><br/>
+<a href="airavata_errors.html#Struct_ValidatorResult">ValidatorResult</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>experiment_model</td><td></td>
+<td><a href="experiment_model.html#Struct_ExperimentModel">ExperimentModel</a><br/>
+<a href="experiment_model.html#Enum_ExperimentSearchFields">ExperimentSearchFields</a><br/>
+<a href="experiment_model.html#Struct_ExperimentStatistics">ExperimentStatistics</a><br/>
+<a href="experiment_model.html#Struct_ExperimentSummaryModel">ExperimentSummaryModel</a><br/>
+<a href="experiment_model.html#Enum_ExperimentType">ExperimentType</a><br/>
+<a href="experiment_model.html#Enum_ProjectSearchFields">ProjectSearchFields</a><br/>
+<a href="experiment_model.html#Struct_UserConfigurationDataModel">UserConfigurationDataModel</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>airavata_commons</td><td></td>
+<td><a href="airavata_commons.html#Struct_ErrorModel">ErrorModel</a><br/>
+<a href="airavata_commons.html#Struct_ValidationResults">ValidationResults</a><br/>
+<a href="airavata_commons.html#Struct_ValidatorResult">ValidatorResult</a><br/>
+</td>
+<td><code><a href="airavata_commons.html#Const_DEFAULT_ID">DEFAULT_ID</a></code><br/>
+</code></td>
+</tr><tr>
+<td>application_io_models</td><td></td>
+<td><a href="application_io_models.html#Enum_DataType">DataType</a><br/>
+<a href="application_io_models.html#Struct_InputDataObjectType">InputDataObjectType</a><br/>
+<a href="application_io_models.html#Struct_OutputDataObjectType">OutputDataObjectType</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>compute_resource_model</td><td></td>
+<td><a href="compute_resource_model.html#Struct_BatchQueue">BatchQueue</a><br/>
+<a href="compute_resource_model.html#Struct_CloudJobSubmission">CloudJobSubmission</a><br/>
+<a href="compute_resource_model.html#Struct_ComputeResourceDescription">ComputeResourceDescription</a><br/>
+<a href="compute_resource_model.html#Enum_DMType">DMType</a><br/>
+<a href="compute_resource_model.html#Enum_FileSystems">FileSystems</a><br/>
+<a href="compute_resource_model.html#Struct_GlobusJobSubmission">GlobusJobSubmission</a><br/>
+<a href="compute_resource_model.html#Enum_JobManagerCommand">JobManagerCommand</a><br/>
+<a href="compute_resource_model.html#Struct_JobSubmissionInterface">JobSubmissionInterface</a><br/>
+<a href="compute_resource_model.html#Enum_JobSubmissionProtocol">JobSubmissionProtocol</a><br/>
+<a href="compute_resource_model.html#Struct_LOCALSubmission">LOCALSubmission</a><br/>
+<a href="compute_resource_model.html#Enum_MonitorMode">MonitorMode</a><br/>
+<a href="compute_resource_model.html#Enum_ProviderName">ProviderName</a><br/>
+<a href="compute_resource_model.html#Struct_ResourceJobManager">ResourceJobManager</a><br/>
+<a href="compute_resource_model.html#Enum_ResourceJobManagerType">ResourceJobManagerType</a><br/>
+<a href="compute_resource_model.html#Struct_SSHJobSubmission">SSHJobSubmission</a><br/>
+<a href="compute_resource_model.html#Struct_UnicoreJobSubmission">UnicoreJobSubmission</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>parallelism_model</td><td></td>
+<td><a href="parallelism_model.html#Enum_ApplicationParallelismType">ApplicationParallelismType</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>data_movement_models</td><td></td>
+<td><a href="data_movement_models.html#Enum_DMType">DMType</a><br/>
+<a href="data_movement_models.html#Struct_DataMovementInterface">DataMovementInterface</a><br/>
+<a href="data_movement_models.html#Enum_DataMovementProtocol">DataMovementProtocol</a><br/>
+<a href="data_movement_models.html#Struct_GridFTPDataMovement">GridFTPDataMovement</a><br/>
+<a href="data_movement_models.html#Struct_LOCALDataMovement">LOCALDataMovement</a><br/>
+<a href="data_movement_models.html#Struct_SCPDataMovement">SCPDataMovement</a><br/>
+<a href="data_movement_models.html#Enum_SecurityProtocol">SecurityProtocol</a><br/>
+<a href="data_movement_models.html#Struct_UnicoreDataMovement">UnicoreDataMovement</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>scheduling_model</td><td></td>
+<td><a href="scheduling_model.html#Struct_ComputationalResourceSchedulingModel">ComputationalResourceSchedulingModel</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>status_models</td><td></td>
+<td><a href="status_models.html#Enum_ExperimentState">ExperimentState</a><br/>
+<a href="status_models.html#Struct_ExperimentStatus">ExperimentStatus</a><br/>
+<a href="status_models.html#Enum_JobState">JobState</a><br/>
+<a href="status_models.html#Struct_JobStatus">JobStatus</a><br/>
+<a href="status_models.html#Enum_ProcessState">ProcessState</a><br/>
+<a href="status_models.html#Struct_ProcessStatus">ProcessStatus</a><br/>
+<a href="status_models.html#Struct_QueueStatusModel">QueueStatusModel</a><br/>
+<a href="status_models.html#Enum_TaskState">TaskState</a><br/>
+<a href="status_models.html#Struct_TaskStatus">TaskStatus</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>process_model</td><td></td>
+<td><a href="process_model.html#Struct_ProcessModel">ProcessModel</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>task_model</td><td></td>
+<td><a href="task_model.html#Enum_DataStageType">DataStageType</a><br/>
+<a href="task_model.html#Struct_DataStagingTaskModel">DataStagingTaskModel</a><br/>
+<a href="task_model.html#Struct_EnvironmentSetupTaskModel">EnvironmentSetupTaskModel</a><br/>
+<a href="task_model.html#Struct_JobSubmissionTaskModel">JobSubmissionTaskModel</a><br/>
+<a href="task_model.html#Struct_MonitorTaskModel">MonitorTaskModel</a><br/>
+<a href="task_model.html#Struct_TaskModel">TaskModel</a><br/>
+<a href="task_model.html#Enum_TaskTypes">TaskTypes</a><br/>
+</td>
+<td></code></td>
+</tr><tr>
+<td>job_model</td><td></td>
+<td><a href="job_model.html#Struct_JobModel">JobModel</a><br/>
+</td>
+<td></code></td>
 </tr></table>
 </div></body></html>

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
index 5ec6076..bfa3bfd 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
@@ -63,7 +63,7 @@
 <h3 id="Svc_SharingRegistryService">Service: SharingRegistryService</h3>
 <div class="definition"><h4 id="Fn_SharingRegistryService_createDomain">Function: SharingRegistryService.createDomain</h4>
 <pre><code>string</code> createDomain(<code><a href="sharing_models.html#Struct_Domain">sharing_models.Domain</a></code> domain)
-    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
+    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
 </pre><p>API method to create a new domain</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updateDomain">Function: SharingRegistryService.updateDomain</h4>
 <pre><code>bool</code> updateDomain(<code><a href="sharing_models.html#Struct_Domain">sharing_models.Domain</a></code> domain)
@@ -84,7 +84,7 @@
 </pre><p>API method to get all domain.</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createUser">Function: SharingRegistryService.createUser</h4>
 <pre><code>string</code> createUser(<code><a href="sharing_models.html#Struct_User">sharing_models.User</a></code> user)
-    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
+    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
 </pre><p>API method to register a user in the system</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updatedUser">Function: SharingRegistryService.updatedUser</h4>
 <pre><code>bool</code> updatedUser(<code><a href="sharing_models.html#Struct_User">sharing_models.User</a></code> user)
@@ -172,7 +172,7 @@
 </pre><p>API method to remove a child group from parent group.</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createEntityType">Function: SharingRegistryService.createEntityType</h4>
 <pre><code>string</code> createEntityType(<code><a href="sharing_models.html#Struct_EntityType">sharing_models.EntityType</a></code> entityType)
-    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
+    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
 </pre><p>API method to create a new entity type</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updateEntityType">Function: SharingRegistryService.updateEntityType</h4>
 <pre><code>bool</code> updateEntityType(<code><a href="sharing_models.html#Struct_EntityType">sharing_models.EntityType</a></code> entityType)
@@ -234,7 +234,7 @@
 </pre><p>API method to get a list of shared groups given the entity id</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createPermissionType">Function: SharingRegistryService.createPermissionType</h4>
 <pre><code>string</code> createPermissionType(<code><a href="sharing_models.html#Struct_PermissionType">sharing_models.PermissionType</a></code> permissionType)
-    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
+    throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
 </pre><p>API method to create permission type</p>
 <br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updatePermissionType">Function: SharingRegistryService.updatePermissionType</h4>
 <pre><code>bool</code> updatePermissionType(<code><a href="sharing_models.html#Struct_PermissionType">sharing_models.PermissionType</a></code> permissionType)

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
index 8ce70b8..4dc0b42 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
@@ -88,16 +88,12 @@ considered as a group in it's own right for implementation ease</p>
 </td></tr>
 <tr><td><code>UPDATED_TIME</code></td><td><code>7</code></td><td>
 </td></tr>
-  <tr>
-   <td><code>ENTITY_TYPE_ID</code></td>
-   <td><code>8</code></td>
-   <td>
-   </td>
-  </tr>
+<tr><td><code>ENTITY_TYPE_ID</code></td><td><code>8</code></td><td>
+</td></tr>
 </table></div>
 <div class="definition"><h3 id="Enum_SearchCondition">Enumeration: SearchCondition</h3>
 <p>Different search operators that can be used with the entity search fields</p>
- <li>EQUAL : Simply matches for equality. Applicable for name, and parent entity id</li>
+<li>EQUAL : Simply matches for equality. Applicable for name, and parent entity id</li>
 <li>LIKE : Check for the condition %$FIELD% condition. Applicable for name, and description</li>
 <li>FULL_TEXT : Does a full text search. Only applicable for the FULL_TEXT field.</li>
 <li>GTE : Greater than or equal. Only applicable for created time and updated time.</li>
@@ -114,12 +110,8 @@ considered as a group in it's own right for implementation ease</p>
 </td></tr>
 <tr><td><code>LTE</code></td><td><code>4</code></td><td>
 </td></tr>
-  <tr>
-   <td><code>NOT</code></td>
-   <td><code>5</code></td>
-   <td>
-   </td>
-  </tr>
+<tr><td><code>NOT</code></td><td><code>5</code></td><td>
+</td></tr>
 </table></div>
 <div class="definition"><h3 id="Enum_SharingType">Enumeration: SharingType</h3>
 <p>This is an internal enum type for managing sharings</p>
@@ -244,14 +236,7 @@ regarding the user.</p>
 <tr><td>10</td><td>originalEntityCreationTime</td><td><code>i64</code></td><td></td><td>optional</td><td></td></tr>
 <tr><td>11</td><td>createdTime</td><td><code>i64</code></td><td></td><td>optional</td><td></td></tr>
 <tr><td>12</td><td>updatedTime</td><td><code>i64</code></td><td></td><td>optional</td><td></td></tr>
- <tr>
-  <td>13</td>
-  <td>shared</td>
-  <td><code>bool</code></td>
-  <td></td>
-  <td>optional</td>
-  <td><code>false</code></td>
- </tr>
+<tr><td>13</td><td>shared</td><td><code>bool</code></td><td></td><td>optional</td><td><code>false</code></td></tr>
 </table><br/><p>Entity object which is used to register an entity in the system.</p>
 <li><b>entityId</b> : Entity id provided by the client</li>
 <li><b>domainId</b> : Domain id</li>

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/thrift_models/sharing_cpi.thrift
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/thrift_models/sharing_cpi.thrift b/modules/sharing-registry/thrift_models/sharing_cpi.thrift
index 5cd837e..e533bd4 100644
--- a/modules/sharing-registry/thrift_models/sharing_cpi.thrift
+++ b/modules/sharing-registry/thrift_models/sharing_cpi.thrift
@@ -21,13 +21,14 @@
 namespace java org.apache.airavata.sharing.registry.service.cpi
 
 include "./sharing_models.thrift"
+include "../../../thrift-interface-descriptions/airavata-apis/airavata_errors.thrift"
 
 service SharingRegistryService {
 
     /**
       <p>API method to create a new domain</p>
     */
-    string createDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException sre)
+    string createDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
     /**
      <p>API method to update a domain</p>
     */
@@ -48,7 +49,7 @@ service SharingRegistryService {
     /**
      <p>API method to register a user in the system</p>
     */
-    string createUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException sre)
+    string createUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
     /**
      <p>API method to update existing user</p>
     */
@@ -118,7 +119,7 @@ service SharingRegistryService {
     /**
      <p>API method to create a new entity type</p>
     */
-    string createEntityType(1: required sharing_models.EntityType entityType) throws (1: sharing_models.SharingRegistryException sre)
+    string createEntityType(1: required sharing_models.EntityType entityType) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
     /**
      <p>API method to update entity type</p>
     */
@@ -169,7 +170,7 @@ service SharingRegistryService {
     /**
      <p>API method to create permission type</p>
     */
-    string createPermissionType(1: required sharing_models.PermissionType permissionType) throws (1: sharing_models.SharingRegistryException sre)
+    string createPermissionType(1: required sharing_models.PermissionType permissionType) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
     /**
      <p>API method to update permission type</p>
     */

http://git-wip-us.apache.org/repos/asf/airavata/blob/f17d5f59/modules/sharing-registry/thrift_models/thrift-gen.sh
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/thrift_models/thrift-gen.sh b/modules/sharing-registry/thrift_models/thrift-gen.sh
index 7449682..b4fb872 100755
--- a/modules/sharing-registry/thrift_models/thrift-gen.sh
+++ b/modules/sharing-registry/thrift_models/thrift-gen.sh
@@ -1,12 +1,12 @@
 #!/usr/bin/env bash
 
-thrift --gen java sharing_models.thrift
+thrift --gen java:generated_annotations=undated sharing_models.thrift
 cd gen-java
 rm -r ../../sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/*
 cp -r org/apache/airavata/sharing/registry/models/ ../../sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/
 
 cd ..
-thrift --gen java sharing_cpi.thrift
+thrift --gen java:generated_annotations=undated sharing_cpi.thrift
 cd gen-java
 rm -r ../../sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/*
 cp -r org/apache/airavata/sharing/registry/service/cpi/ ../../sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/


Mime
View raw message