Package 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
- All Implemented Interfaces:
InFlightCorrectable
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
-
Field Summary
Fields inherited from class org.alfresco.filesys.repo.ContentSearchContext
LinkFileSize -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCacheLookupSearchContext(CifsHelper cifsHelper, List<NodeRef> results, String searchStr, String relPath, org.alfresco.jlan.server.filesys.cache.FileStateCache stateCache, boolean lockedFilesAsOffline) Class constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleannextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info) Return file information for the next file in the active search.toString()Return the search as a stringMethods inherited from class org.alfresco.filesys.repo.DotDotContentSearchContext
getDotDotInfo, getDotInfo, hasDotFiles, setDotDotInfo, setDotInfoMethods inherited from class org.alfresco.filesys.repo.ContentSearchContext
getRelativePath, getResultsSize, getResumeId, hasMoreFiles, nextFileName, restartAt, restartAt, setInFlightCorrectorMethods inherited from class org.alfresco.jlan.server.filesys.SearchContext
closeSearch, getFlags, getMaximumFiles, getSearchString, getTreeId, numberOfEntries, setFlags, setMaximumFiles, setSearchString, setTreeId
-
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 classresults- List of file/folder nodes that match the search patternsearchStr- Search pathrelPath- Relative path being searchedstateCache- 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:
nextFileInfoin classContentSearchContext- Parameters:
info- FileInfo to return the file information.- Returns:
- true if the file information is valid, else false
-
toString
Return the search as a string- Overrides:
toStringin classDotDotContentSearchContext- Returns:
- String
-