Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Schema
Commits
f8106557
Commit
f8106557
authored
Aug 09, 2021
by
Aman Verma
Browse files
updating the interfaces
parent
a07617ec
Pipeline
#57180
passed with stages
in 23 minutes and 31 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
schema-core/src/main/java/org/opengroup/osdu/schema/provider/interfaces/messagebus/IMessageBus.java
View file @
f8106557
...
...
@@ -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
schema-core/src/main/java/org/opengroup/osdu/schema/provider/interfaces/schemainfostore/IAuthorityStore.java
View file @
f8106557
...
...
@@ -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
();
}
}
schema-core/src/main/java/org/opengroup/osdu/schema/provider/interfaces/schemainfostore/IEntityTypeStore.java
View file @
f8106557
...
...
@@ -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
();
}
}
schema-core/src/main/java/org/opengroup/osdu/schema/provider/interfaces/schemainfostore/ISourceStore.java
View file @
f8106557
...
...
@@ -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
();
}
}
schema-core/src/main/java/org/opengroup/osdu/schema/provider/interfaces/schemastore/ISchemaStore.java
View file @
f8106557
...
...
@@ -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
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment