示例#1
0
 protected File findProjectOrPredefinedFile(Integer projectId, String name) {
   File file = fileDao.findByName(projectId, name);
   if (file == null) {
     file = predefinedFilesDao.findByName(name);
     if (file != null) {
       file.setProject(loadProject(projectId));
     }
   }
   return file;
 }
示例#2
0
 protected File loadFile(Integer id) {
   return fileDao.load(id);
 }