public class AVMSearchContext extends SearchContext
Contains the details of a wildcard folder search.
| Constructor and Description |
|---|
AVMSearchContext(AVMNodeDescriptor[] fileList,
int attrib,
WildCard filter,
String parentPath,
boolean readOnly)
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 |
isReadOnly()
Check if all files/folders returned by the search should be marked as read-only
|
boolean |
nextFileInfo(FileInfo info)
Return file information for the next file in the active search.
|
String |
nextFileName()
Return the file name of the next file in the active search.
|
int |
numberOfEntries()
Return the total number of file entries for this search if known, else return -1
|
boolean |
restartAt(FileInfo info)
Restart the current search at the specified file.
|
boolean |
restartAt(int resumeId)
Restart a search at the specified resume point.
|
void |
setReadOnly(boolean readOnly)
Set all files/folders returned by the search as read-only
|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, setFlags, setMaximumFiles, setSearchString, setTreeId, toStringpublic AVMSearchContext(AVMNodeDescriptor[] fileList, int attrib, WildCard filter, String parentPath, boolean readOnly)
fileList - SortedMapattrib - intfilter - WildCardparentPath - StringreadOnly - booleanpublic boolean hasMoreFiles()
hasMoreFiles in class SearchContextpublic boolean nextFileInfo(FileInfo info)
nextFileInfo in class SearchContextinfo - FileInfo to return the file information.public String nextFileName()
nextFileName in class SearchContextpublic int numberOfEntries()
numberOfEntries in class SearchContextpublic int getResumeId()
getResumeId 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.public final boolean isReadOnly()
public final void setReadOnly(boolean readOnly)
readOnly - booleanCopyright © 2005–2014 Alfresco Software. All rights reserved.