Refactoring servcie
This commit is contained in:
parent
383887e7d2
commit
f14061774d
|
@ -63,7 +63,7 @@ import com.tinkerpop.blueprints.util.StringFactory;
|
|||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public abstract class ERManagement<ERType extends ER, El extends Element> {
|
||||
public abstract class ERManagement<El extends Element> {
|
||||
|
||||
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import com.tinkerpop.blueprints.impls.orient.OrientVertex;
|
|||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public abstract class BaseEntityManagement<E extends BaseEntity> extends ERManagement<E,Vertex> {
|
||||
public abstract class BaseEntityManagement<E extends BaseEntity> extends ERManagement<Vertex> {
|
||||
|
||||
/**
|
||||
* Provide a cache edge-internal-id -> RelationManagement
|
||||
|
|
|
@ -27,7 +27,7 @@ import com.tinkerpop.blueprints.impls.orient.OrientGraph;
|
|||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public abstract class BaseRelationManagement<R extends BaseRelation<S, T>, SEM extends BaseEntityManagement<S>, TEM extends BaseEntityManagement<T>, S extends BaseEntity, T extends BaseEntity>
|
||||
extends ERManagement<R,Edge> {
|
||||
extends ERManagement<Edge> {
|
||||
|
||||
protected final Class<S> sourceEntityClass;
|
||||
protected final Class<T> targetEntityClass;
|
||||
|
|
|
@ -140,8 +140,6 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
}
|
||||
|
||||
protected static TypeDefinition getTypeDefinition(OClass oClass) throws SchemaException {
|
||||
// TODO OrientSerilizatoin is not acceptable anymore since TypeDefiniton introduction
|
||||
|
||||
ODocument oDocument = ((OClassImpl) oClass).toStream();
|
||||
String json = oDocument.toJSON();
|
||||
try {
|
||||
|
@ -156,7 +154,6 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
node.put(ISManageable.CLASS_PROPERTY, RelationTypeDefinition.NAME);
|
||||
}
|
||||
|
||||
|
||||
ArrayNode arrayNode = (ArrayNode) node.get(TypeDefinition.PROPERTIES_PROPERTY);
|
||||
Iterator<JsonNode> iterator = arrayNode.iterator();
|
||||
while(iterator.hasNext()) {
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package org.gcube.informationsystem.resourceregistry.instances.type.properties;
|
||||
|
||||
public class PropertyTypeDefinitionManagement {
|
||||
|
||||
}
|
Loading…
Reference in New Issue