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:
parent
c7fcaff62c
commit
7fbd6b419a
|
@ -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,6 +361,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(isRelatedTo.getTarget().getHeader().getUUID()
|
||||
.toString());
|
||||
*/
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(isRelatedToClass.getSimpleName());
|
||||
|
||||
|
|
Loading…
Reference in New Issue