コード例 #1
0
 private void extractPaths(ResourceQuery query) {
   ResourcePathFileTraversal traverser =
       new ResourcePathFileTraversal(new File(query.constructBasePath()));
   traverser.addDatasourceFilters(query.getFilters());
   m_paths = traverser.traverseDirectory();
   Collections.sort(m_paths);
   System.err.println("paths: " + m_paths);
 }
コード例 #2
0
 public ResourceDataSource(ResourceQuery query) {
   extractPaths(query);
   m_filterFields = new ResourceFilterFields(query.getFilters(), query.getStringProperties());
 }