public class AVMSearchContext
extends org.alfresco.jlan.server.filesys.SearchContext
Contains the details of a wildcard folder search.
| Constructor and Description |
|---|
AVMSearchContext(AVMNodeDescriptor[] fileList,
int attrib,
org.alfresco.jlan.util.WildCard filter,
java.lang.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(org.alfresco.jlan.server.filesys.FileInfo info)
Return file information for the next file in the active search.
|
java.lang.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(org.alfresco.jlan.server.filesys.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
|
public AVMSearchContext(AVMNodeDescriptor[] fileList, int attrib, org.alfresco.jlan.util.WildCard filter, java.lang.String parentPath, boolean readOnly)
fileList - SortedMapattrib - intfilter - WildCardparentPath - StringreadOnly - booleanpublic boolean hasMoreFiles()
hasMoreFiles in class org.alfresco.jlan.server.filesys.SearchContextpublic boolean nextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info)
nextFileInfo in class org.alfresco.jlan.server.filesys.SearchContextinfo - FileInfo to return the file information.public java.lang.String nextFileName()
nextFileName in class org.alfresco.jlan.server.filesys.SearchContextpublic int numberOfEntries()
numberOfEntries in class org.alfresco.jlan.server.filesys.SearchContextpublic int getResumeId()
getResumeId in class org.alfresco.jlan.server.filesys.SearchContextpublic boolean restartAt(int resumeId)
restartAt in class org.alfresco.jlan.server.filesys.SearchContextresumeId - Resume point id.public boolean restartAt(org.alfresco.jlan.server.filesys.FileInfo info)
restartAt in class org.alfresco.jlan.server.filesys.SearchContextinfo - File to restart the search at.public final boolean isReadOnly()
public final void setReadOnly(boolean readOnly)
readOnly - booleanCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.