public class CachedSearchContext extends SearchContext
Contains the details of a single file search using file information cached by the file state.
Constructor and Description |
---|
CachedSearchContext(DBFileInfo finfo)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getResumeId()
Return the resume id for the current file/directory in the search.
|
boolean |
hasMoreFiles()
Determine if there are more files for the active search.
|
boolean |
nextFileInfo(FileInfo info)
Return the next file from the search, or return false if there are no more files
|
String |
nextFileName()
Return the file name of the next file in the active search.
|
boolean |
restartAt(FileInfo info)
Restart the current search at the specified file.
|
boolean |
restartAt(int resumeId)
Restart a search at the specified resume point.
|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, numberOfEntries, setFlags, setMaximumFiles, setSearchString, setTreeId, toString
public CachedSearchContext(DBFileInfo finfo)
finfo
- DBFileInfopublic int getResumeId()
getResumeId
in class SearchContext
public boolean hasMoreFiles()
hasMoreFiles
in class SearchContext
public boolean nextFileInfo(FileInfo info)
nextFileInfo
in class SearchContext
info
- FileInfopublic String nextFileName()
nextFileName
in class SearchContext
public boolean restartAt(int resumeId)
restartAt
in class SearchContext
resumeId
- Resume point id.public boolean restartAt(FileInfo info)
restartAt
in class SearchContext
info
- File to restart the search at.Copyright © 2005–2018 Alfresco Software. All rights reserved.