ODocument doc=dao.create(fileName,contentType,contentLength,is,metadata,contentString);
if (data!=null && !data.trim().isEmpty()) {
ODocument metaDoc=(new ODocument()).fromJSON("{ '"+DATA_FIELD_NAME+"' : " + data + "}");
doc.merge(metaDoc, true, false);
}
dao.save(doc);
return doc;
}
public static ODocument createFile(String fileName, String dataJson,
String aclJsonString, String contentType, long length,