Reorganized utilities and their usage

This commit is contained in:
Luca Frosini 2023-04-21 15:58:07 +02:00
parent effa972513
commit 988630d5c0
1 changed files with 3 additions and 3 deletions

View File

@ -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) {