Added boolean to control if the client want the list only or including the schema for each element
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@141323 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
73b0a2cbef
commit
649721ca66
|
@ -3,8 +3,6 @@ package org.gcube.informationsystem.resourceregistry.api;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service Endpoint Interface
|
* Service Endpoint Interface
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
@ -23,6 +21,8 @@ public interface SchemaManagement {
|
||||||
|
|
||||||
public String deleteEntitySchema(String entityType) throws SchemaNotFoundException;
|
public String deleteEntitySchema(String entityType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String getEntityTypes(String entityType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
|
||||||
public String registerFacetSchema(String jsonSchema) throws SchemaException;
|
public String registerFacetSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
|
@ -32,6 +32,9 @@ public interface SchemaManagement {
|
||||||
|
|
||||||
public String deleteFacetSchema(String facetType) throws SchemaNotFoundException;
|
public String deleteFacetSchema(String facetType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String getFacetTypes(String facetType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String registerResourceSchema(String jsonSchema) throws SchemaException;
|
public String registerResourceSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
|
@ -41,6 +44,9 @@ public interface SchemaManagement {
|
||||||
|
|
||||||
public String deleteResourceSchema(String resourceType) throws SchemaNotFoundException;
|
public String deleteResourceSchema(String resourceType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String getResourceTypes(String resourceType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String registerEmbeddedTypeSchema(String jsonSchema) throws SchemaException;
|
public String registerEmbeddedTypeSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
|
@ -50,6 +56,9 @@ public interface SchemaManagement {
|
||||||
|
|
||||||
public String deleteEmbeddedTypeSchema(String embeddedType) throws SchemaNotFoundException;
|
public String deleteEmbeddedTypeSchema(String embeddedType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String getEmbeddedTypes(String embeddedType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String registerRelationSchema(String jsonSchema) throws SchemaException;
|
public String registerRelationSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
|
@ -59,22 +68,30 @@ public interface SchemaManagement {
|
||||||
|
|
||||||
public String deleteRelationSchema(String relationType) throws SchemaNotFoundException;
|
public String deleteRelationSchema(String relationType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String getRelationTypes(String relationType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
public String registerConsistOfSchema(String jsonSchema) throws SchemaException;
|
|
||||||
|
|
||||||
public String getConsistOfSchema(String consistOfType) throws SchemaNotFoundException;
|
|
||||||
|
|
||||||
public String updateConsistOfSchema(String consistOfType, String jsonSchema) throws SchemaNotFoundException, SchemaException;
|
|
||||||
|
|
||||||
public String deleteConsistOfSchema(String consistOfType) throws SchemaException;
|
|
||||||
|
|
||||||
|
|
||||||
public String registerRelatedToSchema(String jsonSchema) throws SchemaException;
|
|
||||||
|
|
||||||
public String getRelatedToSchema(String relatedToType) throws SchemaNotFoundException;
|
public String registerConsistsOfSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
public String updateRelatedToSchema(String relatedToType, String jsonSchema) throws SchemaNotFoundException, SchemaException;
|
public String getConsistsOfSchema(String consistsOfType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
public String deleteRelatedToSchema(String relatedToType) throws SchemaException;
|
public String updateConsistsOfSchema(String consistsOfType, String jsonSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
public String deleteConsistsOfSchema(String consistsOfType) throws SchemaException;
|
||||||
|
|
||||||
|
public String getConsistsOfTypes(String consistsOfType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String registerIsRelatedToSchema(String jsonSchema) throws SchemaException;
|
||||||
|
|
||||||
|
public String getIsRelatedToSchema(String isRelatedToType) throws SchemaNotFoundException;
|
||||||
|
|
||||||
|
public String updateIsRelatedToSchema(String isRelatedToType, String jsonSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
|
public String deleteIsRelatedToSchema(String isRelatedToType) throws SchemaException;
|
||||||
|
|
||||||
|
public String getIsRelatedToTypes(String isRelatedToType, boolean includeSchema) throws SchemaNotFoundException, SchemaException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,6 @@ public class SchemaPath {
|
||||||
|
|
||||||
public static final String EMBEDDED_PATH_PART = "embedded";
|
public static final String EMBEDDED_PATH_PART = "embedded";
|
||||||
|
|
||||||
public static final String CONSIST_OF_PATH_PART = "consistOf";
|
public static final String CONSISTS_OF_PATH_PART = "consistsOf";
|
||||||
public static final String RELATED_TO_PATH_PART = "relatedTo";
|
public static final String IS_RELATED_TO_PATH_PART = "isRelatedTo";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue