Class CacheLookupSearchContext

java.lang.Object
org.alfresco.jlan.server.filesys.SearchContext
All Implemented Interfaces:
InFlightCorrectable

public class CacheLookupSearchContext extends DotDotContentSearchContext
Cache Lookup Search Context Class

Use the file state cache to check for current timestamp values for file information being returned in the current search.

Author:
gkspencer
  • Constructor Details

    • CacheLookupSearchContext

      protected CacheLookupSearchContext(CifsHelper cifsHelper, List<NodeRef> results, String searchStr, String relPath, org.alfresco.jlan.server.filesys.cache.FileStateCache stateCache, boolean lockedFilesAsOffline)
      Class constructor
      Parameters:
      cifsHelper - Filesystem helper class
      results - List of file/folder nodes that match the search pattern
      searchStr - Search path
      relPath - Relative path being searched
      stateCache - File state cache
  • Method Details

    • nextFileInfo

      public boolean nextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info)
      Return file information for the next file in the active search. Returns false if the search is complete.
      Overrides:
      nextFileInfo in class ContentSearchContext
      Parameters:
      info - FileInfo to return the file information.
      Returns:
      true if the file information is valid, else false
    • toString

      public String toString()
      Return the search as a string
      Overrides:
      toString in class DotDotContentSearchContext
      Returns:
      String