Reorganized utilities and their usage
This commit is contained in:
parent
effa972513
commit
988630d5c0
|
@ -17,9 +17,9 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaE
|
|||
import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.rest.TypePath;
|
||||
import org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPUtility;
|
||||
import org.gcube.informationsystem.resourceregistry.api.utils.Utility;
|
||||
import org.gcube.informationsystem.types.TypeMapper;
|
||||
import org.gcube.informationsystem.types.reference.Type;
|
||||
import org.gcube.informationsystem.utils.TypeUtility;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|||
@Override
|
||||
public <E extends Element> boolean exist(Class<E> clz) throws ResourceRegistryException {
|
||||
try {
|
||||
String typeName = Utility.getTypeName(clz);
|
||||
String typeName = TypeUtility.getTypeName(clz);
|
||||
return exist(typeName);
|
||||
} catch(ResourceRegistryException e) {
|
||||
throw e;
|
||||
|
@ -139,7 +139,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|||
public <E extends Element> List<Type> read(Class<E> clz, Boolean polymorphic)
|
||||
throws SchemaNotFoundException, ResourceRegistryException {
|
||||
try {
|
||||
String typeName = Utility.getTypeName(clz);
|
||||
String typeName = TypeUtility.getTypeName(clz);
|
||||
String res = read(typeName, polymorphic);
|
||||
return TypeMapper.deserializeTypeDefinitions(res);
|
||||
} catch(ResourceRegistryException e) {
|
||||
|
|
Loading…
Reference in New Issue