We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df68da2 commit 89aa514Copy full SHA for 89aa514
src/foam/core/fs/FSFileContentDAO.js
@@ -25,15 +25,21 @@ foam.CLASS({
25
'java.nio.file.Path',
26
'java.nio.file.Paths'
27
],
28
-
+ properties: [
29
+ {
30
+ class: 'String',
31
+ name: 'fileDaoName',
32
+ value: 'FSFileDAO'
33
+ }
34
+ ],
35
methods: [
36
{
37
name: 'find_',
38
javaCode: `
39
var ret = getDelegate().find(id);
40
if ( ret != null ) return ret;
41
- FSFile file = (FSFile) ((DAO) x.get("FSFileDAO")).find((String) id);
42
+ FSFile file = (FSFile) ((DAO) x.get(getFileDaoName())).find((String) id);
43
if ( file == null ) {
44
Loggers.logger(x, this).error("Error getting content: FSFile not found for id: ", (String) id);
45
return null;
0 commit comments