org.alfresco.filesys.repo
Class CacheLookupSearchContext
java.lang.Object
org.alfresco.jlan.server.filesys.SearchContext
org.alfresco.filesys.repo.ContentSearchContext
org.alfresco.filesys.repo.DotDotContentSearchContext
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.
|
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.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 |
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 classresults - List of file/folder nodes that match the search patternsearchStr - Search pathpseudoList - List of pseudo files to be blended into the returned list of filesrelPath - Relative path being searchedstateCache - File state cache
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.