org.alfresco.filesys.repo
Class CacheLookupSearchContext

java.lang.Object
  extended by org.alfresco.jlan.server.filesys.SearchContext
      extended by org.alfresco.filesys.repo.ContentSearchContext
          extended by org.alfresco.filesys.repo.DotDotContentSearchContext
              extended by org.alfresco.filesys.repo.CacheLookupSearchContext

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.


Field Summary
 
Fields inherited from class org.alfresco.filesys.repo.ContentSearchContext
LinkFileSize
 
Constructor Summary
protected CacheLookupSearchContext(CifsHelper cifsHelper, java.util.List results, java.lang.String searchStr, org.alfresco.jlan.server.filesys.pseudo.PseudoFileList pseudoList, java.lang.String relPath, org.alfresco.jlan.server.filesys.cache.FileStateCache stateCache)
          Class constructor
 
Method Summary
 boolean nextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info)
          Return file information for the next file in the active search.
 java.lang.String toString()
          Return the search as a string
 
Methods inherited from class org.alfresco.filesys.repo.DotDotContentSearchContext
getDotDotInfo, getDotInfo, hasDotFiles, setDotDotInfo, setDotInfo
 
Methods inherited from class org.alfresco.filesys.repo.ContentSearchContext
getPseudoListSize, getRelativePath, getResultsSize, getResumeId, hasMoreFiles, nextFileName, restartAt, restartAt, returningPseudoFiles
 
Methods inherited from class org.alfresco.jlan.server.filesys.SearchContext
closeSearch, getFlags, getMaximumFiles, getSearchString, getTreeId, numberOfEntries, setFlags, setMaximumFiles, setSearchString, setTreeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheLookupSearchContext

protected CacheLookupSearchContext(CifsHelper cifsHelper,
                                   java.util.List results,
                                   java.lang.String searchStr,
                                   org.alfresco.jlan.server.filesys.pseudo.PseudoFileList pseudoList,
                                   java.lang.String relPath,
                                   org.alfresco.jlan.server.filesys.cache.FileStateCache stateCache)
Class constructor

Parameters:
cifsHelper - Filesystem helper class
results - List of file/folder nodes that match the search pattern
searchStr - Search path
pseudoList - List of pseudo files to be blended into the returned list of files
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

toString

public java.lang.String toString()
Return the search as a string

Overrides:
toString in class DotDotContentSearchContext
Returns:
String


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.