public class ContentSearchContext extends SearchContext implements InFlightCorrectable
| Modifier and Type | Field and Description |
|---|---|
static int |
LinkFileSize |
| Modifier | Constructor and Description |
|---|---|
protected |
ContentSearchContext(CifsHelper cifsHelper,
List<org.alfresco.service.cmr.repository.NodeRef> results,
String searchStr,
PseudoFileList pseudoList,
String relPath,
boolean lockedFilesAsOffline)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getPseudoListSize()
Return the pseudo file list size
|
protected 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(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.
|
boolean |
restartAt(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) |
String |
toString()
Return the search as a string
|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, numberOfEntries, setFlags, setMaximumFiles, setSearchString, setTreeIdpublic static final int LinkFileSize
protected ContentSearchContext(CifsHelper cifsHelper, List<org.alfresco.service.cmr.repository.NodeRef> results, String searchStr, PseudoFileList pseudoList, 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 String toString()
toString in class SearchContextpublic int getResumeId()
getResumeId in class SearchContextpublic 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 boolean restartAt(FileInfo info)
restartAt in class SearchContextresumeId - Resume point id.public boolean restartAt(int resumeId)
restartAt in class SearchContextinfo - File to restart the search at.protected boolean returningPseudoFiles()
protected String getRelativePath()
protected int getResultsSize()
protected int getPseudoListSize()
Copyright © 2005–2014 Alfresco Software. All rights reserved.