|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import org.gcube.common.gxhttp.reference.GXConnection;
|
|
|
|
import org.gcube.common.gxhttp.reference.GXConnection;
|
|
|
|
import org.gcube.common.gxhttp.request.GXHTTPStringRequest;
|
|
|
|
import org.gcube.common.gxhttp.request.GXHTTPStringRequest;
|
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
|
|
import org.gcube.informationsystem.model.reference.ERElement;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
|
|
@ -36,7 +36,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public <E extends Element> Type create(Class<E> clz)
|
|
|
|
public <ERElem extends ERElement> Type create(Class<ERElem> clz)
|
|
|
|
throws SchemaException, ResourceRegistryException {
|
|
|
|
throws SchemaException, ResourceRegistryException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String typeDefinition = TypeMapper.serializeType(clz);
|
|
|
|
String typeDefinition = TypeMapper.serializeType(clz);
|
|
|
@ -78,7 +78,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public <ISM extends Element> List<Type> read(Class<ISM> clz, Boolean polymorphic)
|
|
|
|
public <ERElem extends ERElement> List<Type> read(Class<ERElem> clz, Boolean polymorphic)
|
|
|
|
throws SchemaNotFoundException, ResourceRegistryException {
|
|
|
|
throws SchemaNotFoundException, ResourceRegistryException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String typeName = Utility.getTypeName(clz);
|
|
|
|
String typeName = Utility.getTypeName(clz);
|
|
|
|