Changed contact url for consistsOf and isRelatedTo creation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@148259 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-05-03 12:42:03 +00:00
parent c7fcaff62c
commit 7fbd6b419a
1 changed files with 7 additions and 1 deletions

View File

@ -262,11 +262,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
Class<C> consistsOfClass, C consistsOf) throws FacetNotFoundException, ResourceNotFoundException, ResourceRegistryException {
try {
logger.info("Going to create: {}", consistsOf);
StringWriter stringWriter = new StringWriter();
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(ERPath.ER_PATH_PART);
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(ERPath.CONSISTS_OF_PATH_PART);
/*
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(ERPath.SOURCE_PATH_PART);
stringWriter.append(PATH_SEPARATOR);
@ -277,9 +279,11 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(consistsOf.getTarget().getHeader().getUUID()
.toString());
*/
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(consistsOfClass.getSimpleName());
String body = ISMapper.marshal(consistsOf);
HTTPCall httpCall = getHTTPCall();
@ -347,6 +351,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(ERPath.IS_RELATED_TO_PATH_PART);
stringWriter.append(PATH_SEPARATOR);
/*
stringWriter.append(ERPath.SOURCE_PATH_PART);
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(isRelatedTo.getSource().getHeader().getUUID()
@ -356,9 +361,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(isRelatedTo.getTarget().getHeader().getUUID()
.toString());
*/
stringWriter.append(PATH_SEPARATOR);
stringWriter.append(isRelatedToClass.getSimpleName());
String body = ISMapper.marshal(isRelatedTo);
HTTPCall httpCall = getHTTPCall();