public class ContentSearchContext extends org.alfresco.jlan.server.filesys.SearchContext implements InFlightCorrectable
| Modifier and Type | Field and Description |
|---|---|
static int |
LinkFileSize |
| Modifier | Constructor and Description |
|---|---|
protected |
ContentSearchContext(CifsHelper cifsHelper,
java.util.List results,
java.lang.String searchStr,
org.alfresco.jlan.server.filesys.pseudo.PseudoFileList pseudoList,
java.lang.String relPath,
boolean lockedFilesAsOffline)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getPseudoListSize()
Return the pseudo file list size
|
protected java.lang.String |
getRelativePath()
Return the relative path that is being searched
|
protected int |
getResultsSize()
Return the results array size
|
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.
|
boolean |
restartAt(org.alfresco.jlan.server.filesys.FileInfo info)
Restart a search at the specified resume point.
|
boolean |
restartAt(int resumeId)
Restart the current search at the specified file.
|
protected boolean |
returningPseudoFiles()
Check if the search is returning pseudo files or real file entries
|
void |
setInFlightCorrector(InFlightCorrector corrector) |
java.lang.String |
toString()
Return the search as a string
|
public static final int LinkFileSize
protected ContentSearchContext(CifsHelper cifsHelper, java.util.List results, java.lang.String searchStr, org.alfresco.jlan.server.filesys.pseudo.PseudoFileList pseudoList, java.lang.String relPath, boolean lockedFilesAsOffline)
cifsHelper - Filesystem helper classresults - List of file/folder nodes that match the search patternsearchStr - Search pathpseudoList - List of pseudo files to be blended into the returned list of filesrelPath - Relative path being searchedpublic void setInFlightCorrector(InFlightCorrector corrector)
setInFlightCorrector in interface InFlightCorrectablepublic java.lang.String toString()
toString in class org.alfresco.jlan.server.filesys.SearchContextpublic int getResumeId()
getResumeId in class org.alfresco.jlan.server.filesys.SearchContextpublic 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 boolean restartAt(org.alfresco.jlan.server.filesys.FileInfo info)
restartAt in class org.alfresco.jlan.server.filesys.SearchContextresumeId - Resume point id.public boolean restartAt(int resumeId)
restartAt in class org.alfresco.jlan.server.filesys.SearchContextinfo - File to restart the search at.protected boolean returningPseudoFiles()
protected java.lang.String getRelativePath()
protected int getResultsSize()
protected int getPseudoListSize()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.