throw new CrudException("", Status.NOT_FOUND);
}
- HashMap<String, Class<?>> props = schema.lookupRelationType(type);
+ Map<String, Class<?>> props = schema.lookupRelationType(type);
Map<String, Object> result = new HashMap<String, Object>();
for (String key : filter.keySet()) {
String key = sourceNodeType + ":" + targetNodeType + ":" + type;
// find the validate the key from the schema
- HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key);
+ Map<String, Class<?>> schemaObject = schema.lookupRelation(key);
if (schemaObject == null) {
throw new CrudException("Invalid source/target/relationship type: " + key,
+ ":" + edge.getType();
// find the validate the key from the schema
- HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key);
+ Map<String, Class<?>> schemaObject = schema.lookupRelation(key);
if (schemaObject == null) {
Logger.warn("key :" + key
+ ":" + edge.getType();
// find the validate the key from the schema
- HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key);
+ Map<String, Class<?>> schemaObject = schema.lookupRelation(key);
if (schemaObject == null) {
Logger.warn("key :" + key
private static void validateEdgeProps(Edge.Builder builder, JsonElement props,
- HashMap<String, Class<?>> schemaObject)
+ Map<String, Class<?>> schemaObject)
throws CrudException {
Set<Map.Entry<String, JsonElement>> entries = props.getAsJsonObject().entrySet();
String key = edge.getSource().getType() + ":" + edge.getTarget().getType()
+ ":" + edge.getType();
- HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key);
+ Map<String, Class<?>> schemaObject = schema.lookupRelation(key);
if (schemaObject == null || schemaObject.isEmpty()) {
return edge;