package org.openecomp.aai.parsers.uri;
-import java.io.UnsupportedEncodingException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.List;
-
-import javax.ws.rs.core.MultivaluedMap;
-
import org.openecomp.aai.exceptions.AAIException;
import org.openecomp.aai.introspection.Introspector;
import org.openecomp.aai.introspection.Loader;
import org.openecomp.aai.util.AAIApiServerURLBase;
import org.openecomp.aai.workarounds.LegacyURITransformer;
+import javax.ws.rs.core.MultivaluedMap;
+import java.io.UnsupportedEncodingException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.List;
+
/**
* Given a URI a Relationship Object is returned.
*
public String getCloudRegionTransform(){
return "remove";
}
-
+
/**
* @{inheritDoc}
*/
//only return the path section of the URI past v10
relatedLink = new URI(relatedLink.getRawPath());
}
-
+
this.relationship.setValue("related-link", relatedLink.toString());
-
+
this.result = relationship;
return this.result;
}
Introspector data = loader.introspectorFromName("relationship-data");
data.setValue("relationship-key", obj.getDbName() + "." + key);
data.setValue("relationship-value", obj.getValue(key));
-
+
((List<Object>)relationship.getValue("relationship-data")).add(data.getUnderlyingObject());
} catch (AAIUnknownObjectException e) {
throw new RuntimeException("Fatal error - relationship-data object not found!");