Commit 7da6498c authored by Aman Verma's avatar Aman Verma
Browse files

using keyword system instead of public

parent 12bae0b8
Pipeline #57468 failed with stages
in 1 minute and 42 seconds
......@@ -20,7 +20,7 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public interface IMessageBus {
void publishMessage(String schemaId, String eventType);
default void publishMessageForPublicSchema(String schemaId, String eventType) {
default void publishMessageForSystemSchema(String schemaId, String eventType) {
throw new NotImplementedException();
}
}
\ No newline at end of file
......@@ -10,13 +10,13 @@ public interface IAuthorityStore {
Authority get(String authorityId) throws NotFoundException, ApplicationException;
default Authority getPublicAuthority(String authorityId) throws NotFoundException, ApplicationException {
default Authority getSystemAuthority(String authorityId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
Authority create(Authority authority) throws ApplicationException, BadRequestException;
default Authority createPublicAuthority(Authority authority) throws ApplicationException, BadRequestException {
default Authority createSystemAuthority(Authority authority) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
......
......@@ -10,13 +10,13 @@ public interface IEntityTypeStore {
EntityType get(String entityTypeId) throws NotFoundException, ApplicationException;
default EntityType getPublicEntity(String entityTypeId) throws NotFoundException, ApplicationException {
default EntityType getSystemEntity(String entityTypeId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
EntityType create(EntityType entityType) throws BadRequestException, ApplicationException;
default EntityType createPublicEntity(EntityType entityType) throws BadRequestException, ApplicationException {
default EntityType createSystemEntity(EntityType entityType) throws BadRequestException, ApplicationException {
throw new NotImplementedException();
}
......
......@@ -15,19 +15,19 @@ public interface ISchemaInfoStore {
SchemaInfo updateSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException;
default SchemaInfo updatePublicSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
default SchemaInfo updateSystemSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
SchemaInfo createSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException;
default SchemaInfo createPublicSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
default SchemaInfo createSystemSchemaInfo(SchemaRequest schema) throws ApplicationException, BadRequestException {
throw new NotImplementedException();
}
SchemaInfo getSchemaInfo(String schemaId) throws ApplicationException, NotFoundException;
default SchemaInfo getPublicSchemaInfo(String schemaId) throws ApplicationException, NotFoundException {
default SchemaInfo getSystemSchemaInfo(String schemaId) throws ApplicationException, NotFoundException {
throw new NotImplementedException();
}
......@@ -35,19 +35,19 @@ public interface ISchemaInfoStore {
List<SchemaInfo> getSchemaInfoList(QueryParams queryParams, String tenantId) throws ApplicationException;
default List<SchemaInfo> getPublicSchemaInfoList(QueryParams queryParams) throws ApplicationException {
default List<SchemaInfo> getSystemSchemaInfoList(QueryParams queryParams) throws ApplicationException {
throw new NotImplementedException();
}
boolean isUnique(String schemaId, String tenantId) throws ApplicationException;
default boolean isUnique(String schemaId) throws ApplicationException {
default boolean isUniqueSystemSchema(String schemaId) throws ApplicationException {
throw new NotImplementedException();
}
boolean cleanSchema(String schemaId) throws ApplicationException;
default boolean cleanPublicSchema(String schemaId) throws ApplicationException {
default boolean cleanSystemSchema(String schemaId) throws ApplicationException {
throw new NotImplementedException();
}
}
......@@ -10,13 +10,13 @@ public interface ISourceStore {
Source get(String sourceId) throws NotFoundException, ApplicationException;
default Source getPublicSource(String sourceId) throws NotFoundException, ApplicationException {
default Source getSystemSource(String sourceId) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
Source create(Source source) throws BadRequestException, ApplicationException;
default Source createPublicSource(Source source) throws BadRequestException, ApplicationException {
default Source createSystemSource(Source source) throws BadRequestException, ApplicationException {
throw new NotImplementedException();
}
......
......@@ -8,19 +8,19 @@ public interface ISchemaStore {
String createSchema(String filePath, String content) throws ApplicationException;
default String createPublicSchema(String filePath, String content) throws ApplicationException {
default String createSystemSchema(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 {
default String getSystemSchema(String dataPartitionId, String filePath) throws NotFoundException, ApplicationException {
throw new NotImplementedException();
}
boolean cleanSchemaProject(String schemaId) throws ApplicationException;
default boolean cleanPublicSchemaProject(String schemaId) throws ApplicationException {
default boolean cleanSystemSchemaProject(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