Changeset 7190 for trunk


Ignore:
Timestamp:
2004-04-06T09:30:17+12:00 (20 years ago)
Author:
cs025
Message:

More file lookup searches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/DocumentList.java

    r6697 r7190  
    102102
    103103  /**
    104    *  Get a list of documents that match a
     104   *  Get a list of documents that match a given set of patterns,
     105   *  within a given URL node.
    105106   */
    106107  public List findDocumentIdsUsingFiles(List fileRefs, String withinNode)
     
    140141    // Get the simple list of file objects & their file group reference
    141142    String query = "SELECT FileGroupRef FROM files WHERE FileLocation REGEXP \"" + fileRef +"\";";
     143
     144    return this.findDocumentIdsUsingFileQuery(query);
     145  }
     146
     147  public List findDocumentIdsUsingFileExact(String fileRef)
     148  {
     149    // Get the simple list of file objects & their file group reference
     150    String query = "SELECT FileGroupRef FROM files WHERE FileLocation=\"" + fileRef +"\";";
    142151
    143152    return this.findDocumentIdsUsingFileQuery(query);
Note: See TracChangeset for help on using the changeset viewer.