Class CacheLookupSearchContext

  • 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 Detail

      • CacheLookupSearchContext

        protected CacheLookupSearchContext​(CifsHelper cifsHelper,
                                           java.util.List<org.alfresco.service.cmr.repository.NodeRef> results,
                                           java.lang.String searchStr,
                                           java.lang.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 Detail

      • 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