Commit f8106557 authored by Aman Verma's avatar Aman Verma
Browse files

updating the interfaces

parent a07617ec
Pipeline #57180 passed with stages
in 23 minutes and 31 seconds
......@@ -15,6 +15,12 @@
*/
package org.opengroup.osdu.schema.provider.interfaces.messagebus;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface IMessageBus {
void publishMessage(String schemaId, String eventType);
default void publishMessageForPublicSchema(String schemaId, String eventType) {
throw new NotImplementedException();
}
}
\ No newline at end of file
......@@ -4,11 +4,20 @@ import org.opengroup.osdu.schema.exceptions.ApplicationException;
import org.opengroup.osdu.schema.exceptions.BadRequestException;
import org.opengroup.osdu.schema.exceptions.NotFoundException;
import org.opengroup.osdu.schema.model.Authority;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface IAuthorityStore {
Authority get(String authorityId) throws NotFoundException, ApplicationException;
default Authority getPublicAuthority(String authorityId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
Authority create(Authority authority) throws ApplicationException, BadRequestException;
default Authority createPublicAuthority(Authority authority) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
}
......@@ -4,11 +4,20 @@ import org.opengroup.osdu.schema.exceptions.ApplicationException;
import org.opengroup.osdu.schema.exceptions.BadRequestException;
import org.opengroup.osdu.schema.exceptions.NotFoundException;
import org.opengroup.osdu.schema.model.EntityType;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface IEntityTypeStore {
EntityType get(String entityTypeId) throws NotFoundException, ApplicationException;
default EntityType getPublicEntity(String entityTypeId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
EntityType create(EntityType entityType) throws BadRequestException, ApplicationException;
default EntityType createPublicEntity(EntityType entityType) throws BadRequestException, ApplicationException {
throw new NotImplementedException();
}
}
......@@ -4,11 +4,20 @@ import org.opengroup.osdu.schema.exceptions.ApplicationException;
import org.opengroup.osdu.schema.exceptions.BadRequestException;
import org.opengroup.osdu.schema.exceptions.NotFoundException;
import org.opengroup.osdu.schema.model.Source;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface ISourceStore {
Source get(String sourceId) throws NotFoundException, ApplicationException;
default Source getPublicSource(String sourceId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
Source create(Source source) throws BadRequestException, ApplicationException;
default Source createPublicSource(Source source) throws BadRequestException, ApplicationException {
throw new NotImplementedException();
}
}
......@@ -2,12 +2,25 @@ package org.opengroup.osdu.schema.provider.interfaces.schemastore;
import org.opengroup.osdu.schema.exceptions.ApplicationException;
import org.opengroup.osdu.schema.exceptions.NotFoundException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface ISchemaStore {
String createSchema(String filePath, String content) throws ApplicationException;
default String createPublicSchema(String filePath, String content) throws ApplicationException {
throw new NotImplementedException();
}
String getSchema(String dataPartitionId, String filePath) throws NotFoundException, ApplicationException;
default String getPublicSchema(String dataPartitionId, String filePath) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
boolean cleanSchemaProject(String schemaId) throws ApplicationException;
default boolean cleanPublicSchemaProject(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