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
|
java.lang.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, toStringpublic CachedSearchContext(DBFileInfo finfo)
finfo - DBFileInfopublic int getResumeId()
getResumeId in class SearchContextpublic boolean hasMoreFiles()
hasMoreFiles in class SearchContextpublic boolean nextFileInfo(FileInfo info)
nextFileInfo in class SearchContextinfo - FileInfopublic java.lang.String nextFileName()
nextFileName in class SearchContextpublic boolean restartAt(int resumeId)
restartAt in class SearchContextresumeId - Resume point id.public boolean restartAt(FileInfo info)
restartAt in class SearchContextinfo - File to restart the search at.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.