Commit 12bae0b8 authored by Aman Verma's avatar Aman Verma
Browse files

updating the interface

parent f8106557
Pipeline #57405 passed with stages
in 24 minutes and 35 seconds
......@@ -9,20 +9,45 @@ import org.opengroup.osdu.schema.exceptions.NotFoundException;
import org.opengroup.osdu.schema.model.QueryParams;
import org.opengroup.osdu.schema.model.SchemaInfo;
import org.opengroup.osdu.schema.model.SchemaRequest;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface ISchemaInfoStore {
SchemaInfo updateSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException;
default SchemaInfo updatePublicSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
SchemaInfo createSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException;
default SchemaInfo createPublicSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
SchemaInfo getSchemaInfo(String schemaId) throws ApplicationException, NotFoundException;
default SchemaInfo getPublicSchemaInfo(String schemaId) throws ApplicationException, NotFoundException {
throw new NotImplementedException();
}
String getLatestMinorVerSchema(SchemaInfo schemaInfo) throws ApplicationException;
List<SchemaInfo> getSchemaInfoList(QueryParams queryParams, String tenantId) throws ApplicationException;
default List<SchemaInfo> getPublicSchemaInfoList(QueryParams queryParams) throws ApplicationException {
throw new NotImplementedException();
}
boolean isUnique(String schemaId, String tenantId) throws ApplicationException;
default boolean isUnique(String schemaId) throws ApplicationException {
throw new NotImplementedException();
}
boolean cleanSchema(String schemaId) throws ApplicationException;
default boolean cleanPublicSchema(String schemaId) throws ApplicationException {
throw new NotImplementedException();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment