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
public class CacheLookupSearchContext extends DotDotContentSearchContext
Cache Lookup Search Context ClassUse 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
Constructors Modifier Constructor Description protectedCacheLookupSearchContext(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleannextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info)Return file information for the next file in the active search.java.lang.StringtoString()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
getRelativePath, getResultsSize, getResumeId, hasMoreFiles, nextFileName, restartAt, restartAt, setInFlightCorrector
-
-
-
-
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 classresults- List of file/folder nodes that match the search patternsearchStr- Search pathrelPath- Relative path being searchedstateCache- 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:
nextFileInfoin classContentSearchContext- 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:
toStringin classDotDotContentSearchContext- Returns:
- String
-
-