You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2017/04/05 19:10:55 UTC

[31/50] [abbrv] airavata git commit: Adding duplicate entry exception to method signatures

Adding duplicate entry exception to method signatures


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

Branch: refs/heads/develop
Commit: 63206c9814113202c255666039b107d575941557
Parents: a26520d
Author: Ajinkya Dhamnaskar <ad...@umail.iu.edu>
Authored: Tue Apr 4 16:34:01 2017 -0400
Committer: Ajinkya Dhamnaskar <ad...@umail.iu.edu>
Committed: Tue Apr 4 16:34:01 2017 -0400

----------------------------------------------------------------------
 .../registry/server/SharingRegistryServerHandler.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/63206c98/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
index 4f4fe9c..b102d13 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
@@ -50,7 +50,7 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
      * *
      */
     @Override
-    public String createDomain(Domain domain) throws SharingRegistryException, TException {
+    public String createDomain(Domain domain) throws SharingRegistryException, DuplicateEntryException, TException {
         try{
             domain.setDomainId(domain.getDomainId());
             if((new DomainRepository()).get(domain.getDomainId()) != null)
@@ -128,7 +128,7 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
      * *
      */
     @Override
-    public String createUser(User user) throws SharingRegistryException, TException {
+    public String createUser(User user) throws SharingRegistryException, DuplicateEntryException, TException {
         try{
             UserPK userPK = new UserPK();
             userPK.setUserId(user.getUserId());
@@ -418,7 +418,7 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
      * *
      */
     @Override
-    public String createEntityType(EntityType entityType) throws SharingRegistryException, TException {
+    public String createEntityType(EntityType entityType) throws SharingRegistryException, DuplicateEntryException, TException {
         try{
             EntityTypePK entityTypePK = new EntityTypePK();
             entityTypePK.setDomainId(entityType.domainId);
@@ -498,7 +498,7 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
      * *
      */
     @Override
-    public String createPermissionType(PermissionType permissionType) throws SharingRegistryException, TException {
+    public String createPermissionType(PermissionType permissionType) throws SharingRegistryException, DuplicateEntryException, TException {
         try{
             PermissionTypePK permissionTypePK =  new PermissionTypePK();
             permissionTypePK.setDomainId(permissionType.domainId);