Fixed api

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@154773 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-10-03 13:56:42 +00:00
parent 90ca8549b9
commit a9b8671c81
1 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
@Override
public String createFacet(String facet) throws FacetAlreadyPresentException, ResourceRegistryException {
try {
String facetType = Utility.getERClassFromJsonString(facet);
String facetType = Utility.getClassFromJsonString(facet);
return createFacet(facetType, facet);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", facet, e);
@ -233,7 +233,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
@Override
public String createResource(String resource) throws ResourceAlreadyPresentException, ResourceRegistryException {
try {
String resourceType = Utility.getERClassFromJsonString(resource);
String resourceType = Utility.getClassFromJsonString(resource);
return createResource(resourceType, resource);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", resource, e);
@ -388,7 +388,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
public String createConsistsOf(String consistsOf)
throws FacetNotFoundException, ResourceNotFoundException, ResourceRegistryException {
try {
String consistsOfType = Utility.getERClassFromJsonString(consistsOf);
String consistsOfType = Utility.getClassFromJsonString(consistsOf);
return createConsistsOf(consistsOfType, consistsOf);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", consistsOf, e);
@ -496,7 +496,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
@Override
public String createIsRelatedTo(String isRelatedTo) throws ResourceNotFoundException, ResourceRegistryException {
try {
String isRelatedToType = Utility.getERClassFromJsonString(isRelatedTo);
String isRelatedToType = Utility.getClassFromJsonString(isRelatedTo);
return createConsistsOf(isRelatedToType, isRelatedTo);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", isRelatedTo, e);