From 838a2587534c344a36e1aa8b7a00e40e92d081e6 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 5 Apr 2017 15:18:53 +0000 Subject: [PATCH] Removed common-client dependency which was not needed git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@146588 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 16 ---------- .../ResourceRegistryPublisherImpl.java | 29 +++++++++---------- 2 files changed, 14 insertions(+), 31 deletions(-) diff --git a/pom.xml b/pom.xml index 0370f0b..f140a6c 100644 --- a/pom.xml +++ b/pom.xml @@ -45,20 +45,6 @@ - - org.gcube.core - common-generic-clients - - - org.gcube.core - common-gcube-calls - - - org.gcube.core - common-fw-clients - - - org.gcube.common authorization-client @@ -68,13 +54,11 @@ common-authorization - org.gcube.core common-encryption - org.gcube.information-system information-system-model diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java index 9ebc297..8622aad 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java @@ -7,7 +7,6 @@ import java.util.UUID; import org.gcube.common.authorization.client.Constants; import org.gcube.common.authorization.library.AuthorizationEntry; import org.gcube.common.authorization.library.provider.SecurityTokenProvider; -import org.gcube.common.clients.exceptions.ServiceException; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.informationsystem.impl.utils.ISMapper; import org.gcube.informationsystem.model.entity.Context; @@ -91,7 +90,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Creating {}", facet, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -121,7 +120,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Updating {}", facet, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -150,7 +149,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Removing {}", facet, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -183,7 +182,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } catch (Exception e) { logger.error("Error Creating {}", resource, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -214,7 +213,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Creating {}", resource, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -243,7 +242,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Removing {}", resource, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -285,7 +284,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Creating {}", consistsOf, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -321,7 +320,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Removing {} with UUID {}", ConsistsOf.NAME, uuid, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -364,7 +363,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Creating {}", isRelatedTo, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -399,7 +398,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher throw e; } catch (Exception e) { logger.error("Error Removing {} with UUID {}", IsRelatedTo.NAME, uuid, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -440,7 +439,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } catch (Exception e) { logger.error("Error Adding {} with UUID {} to current {} : {}", Resource.NAME, uuid, Context.NAME, context, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -486,7 +485,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } catch (Exception e) { logger.error("Error Adding {} with UUID {} to current {} : {}", Facet.NAME, uuid, Context.NAME, context, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -534,7 +533,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } catch (Exception e) { logger.error("Error Adding {} with UUID {} to current {} : {}", Resource.NAME, uuid, Context.NAME, context, e); - throw new ServiceException(e); + throw new RuntimeException(e); } } @@ -583,7 +582,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } catch (Exception e) { logger.error("Error Adding {} with UUID {} to current {} : {}", Facet.NAME, uuid, Context.NAME, context, e); - throw new ServiceException(e); + throw new RuntimeException(e); } }