Refs #11288: Made resource-registry more RESTful

Task-Url: https://support.d4science.org/issues/11288

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@167856 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-06-04 10:31:09 +00:00
parent 8deaca353b
commit 8ea242e4fb
5 changed files with 35 additions and 8 deletions

View File

@ -0,0 +1,27 @@
/**
*
*/
package org.gcube.informationsystem.resourceregistry.api.exceptions.schema;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class SchemaCreationException extends SchemaException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -7235498402448768270L;
public SchemaCreationException(String message) {
super(message);
}
public SchemaCreationException(Throwable cause) {
super(cause);
}
public SchemaCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -25,10 +25,9 @@ public class AccessPath {
public static final String CONSISTS_OF_PATH_PART = ERPath.CONSISTS_OF_PATH_PART;
public static final String IS_RELATED_TO_PATH_PART = ERPath.IS_RELATED_TO_PATH_PART;
public static final String CONTEXT_PATH_PART = ContextPath.CONTEXT_PATH_PART;
public static final String ALL_PATH_PART = ContextPath.ALL_PATH_PART;
public static final String CONTEXTS_PATH_PART = ContextPath.CONTEXTS_PATH_PART;
public static final String SCHEMA_PATH_PART = SchemaPath.SCHEMA_PATH_PART;
public static final String SCHEMA_PATH_PART = SchemaPath.SCHEMAS_PATH_PART;
public static final String INSTANCE_PATH_PART = "instance";
public static final String INSTANCES_PATH_PART = "instances";

View File

@ -8,7 +8,6 @@ package org.gcube.informationsystem.resourceregistry.api.rest;
*/
public class ContextPath {
public static final String CONTEXT_PATH_PART = "context";
public static final String ALL_PATH_PART = "all";
public static final String CONTEXTS_PATH_PART = "contexts";
}

View File

@ -5,7 +5,9 @@ package org.gcube.informationsystem.resourceregistry.api.rest;
*/
public class SchemaPath {
public static final String SCHEMA_PATH_PART = "schema";
public static final String SCHEMAS_PATH_PART = "schemas";
public static final String POLYMORPHIC_PARAM = AccessPath.POLYMORPHIC_PARAM;
public static final String BASE_TYPE_PATH_PARAM = "baseType";
}

View File

@ -220,7 +220,7 @@ public class HTTPCall {
}
@SuppressWarnings("unchecked")
protected <C> C call(Class<C> clz, String path, HTTPMETHOD method, Map<String, ? extends Object> parameters,
public <C> C call(Class<C> clz, String path, HTTPMETHOD method, Map<String, ? extends Object> parameters,
String body) throws Exception {
String urlParameters = getParametersDataString(parameters);