public class AVMSingleFileSearchContext
extends org.alfresco.jlan.server.filesys.SearchContext
Contains the details of a non-wildcard file/folder search, where there is only one result to return.
| Constructor and Description |
|---|
AVMSingleFileSearchContext(AVMNodeDescriptor fileDetails,
java.lang.String relPath,
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 |
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.
|
public AVMSingleFileSearchContext(AVMNodeDescriptor fileDetails, java.lang.String relPath, boolean readOnly)
fileDetails - AVMNodeDescriptorrelPath - 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.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.