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,
List<org.alfresco.service.cmr.repository.NodeRef> results,
String searchStr,
org.alfresco.jlan.server.filesys.pseudo.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(org.alfresco.jlan.server.filesys.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(org.alfresco.jlan.server.filesys.FileInfo info)
Restart a search at the specified resume point.
|
boolean |
restartAt(int resumeIdParameter)
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
|
public static final int LinkFileSize
protected ContentSearchContext(CifsHelper cifsHelper, List<org.alfresco.service.cmr.repository.NodeRef> results, String searchStr, org.alfresco.jlan.server.filesys.pseudo.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 InFlightCorrectable
public String toString()
toString
in class org.alfresco.jlan.server.filesys.SearchContext
public int getResumeId()
getResumeId
in class org.alfresco.jlan.server.filesys.SearchContext
public boolean hasMoreFiles()
hasMoreFiles
in class org.alfresco.jlan.server.filesys.SearchContext
public boolean nextFileInfo(org.alfresco.jlan.server.filesys.FileInfo info)
nextFileInfo
in class org.alfresco.jlan.server.filesys.SearchContext
info
- FileInfo to return the file information.public String nextFileName()
nextFileName
in class org.alfresco.jlan.server.filesys.SearchContext
public boolean restartAt(org.alfresco.jlan.server.filesys.FileInfo info)
restartAt
in class org.alfresco.jlan.server.filesys.SearchContext
info
- File to restart the search at.public boolean restartAt(int resumeIdParameter)
restartAt
in class org.alfresco.jlan.server.filesys.SearchContext
resumeId
- Resume point id.protected boolean returningPseudoFiles()
protected String getRelativePath()
protected int getResultsSize()
protected int getPseudoListSize()
Copyright © 2005–2017 Alfresco Software. All rights reserved.