Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168999 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d5d79c14cc
commit
32b5499b2e
|
@ -32,6 +32,7 @@ public class SchemaActionImpl implements SchemaAction {
|
|||
public <R extends Relation<? extends Entity,? extends Entity>> void manageRelationClass(Class<R> r)
|
||||
throws Exception {
|
||||
try {
|
||||
((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(r));
|
||||
String json = TypeBinder.serializeType(r);
|
||||
logger.trace(json);
|
||||
if(ConsistsOf.class.isAssignableFrom(r)) {
|
||||
|
@ -51,6 +52,7 @@ public class SchemaActionImpl implements SchemaAction {
|
|||
@Override
|
||||
public <E extends Entity> void manageEntityClass(Class<E> e) throws Exception {
|
||||
try {
|
||||
((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(e));
|
||||
String json = TypeBinder.serializeType(e);
|
||||
logger.trace(json);
|
||||
if(Facet.class.isAssignableFrom(e)) {
|
||||
|
@ -69,6 +71,7 @@ public class SchemaActionImpl implements SchemaAction {
|
|||
@Override
|
||||
public <E extends Embedded> void manageEmbeddedClass(Class<E> e) throws Exception {
|
||||
try {
|
||||
((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(e));
|
||||
String json = TypeBinder.serializeType(e);
|
||||
logger.trace(json);
|
||||
schemaManagement.create(json, AccessType.EMBEDDED);
|
||||
|
|
Loading…
Reference in New Issue