|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.jlan.server.filesys.SearchContext
org.alfresco.filesys.avm.AVMSearchContext
public class AVMSearchContext
AVM Filesystem Search Context Class
Contains the details of a wildcard folder search.
| Constructor Summary | |
|---|---|
AVMSearchContext(AVMNodeDescriptor[] fileList,
int attrib,
org.alfresco.jlan.util.WildCard filter,
java.lang.String parentPath,
boolean readOnly)
Class constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.alfresco.jlan.server.filesys.SearchContext |
|---|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, setFlags, setMaximumFiles, setSearchString, setTreeId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AVMSearchContext(AVMNodeDescriptor[] fileList,
int attrib,
org.alfresco.jlan.util.WildCard filter,
java.lang.String parentPath,
boolean readOnly)
fileList - SortedMapattrib - intfilter - WildCardparentPath - StringreadOnly - boolean| Method Detail |
|---|
public 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 - boolean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||