public abstract class PseudoSearchContext extends SearchContext
Search context implementation that blends a list of pseudo files/folders into a folder search.
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_index |
| Constructor and Description |
|---|
PseudoSearchContext(java.lang.String relPath)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getResumeId()
Return the resume id for the current file/directory in the search.
|
boolean |
hasMorePseudoFiles()
Determine if there are more files for the active search.
|
boolean |
hasPseudoFiles()
Check if there are pseudo files to be blended into the search results
|
boolean |
nextPseudoFileInfo(FileInfo info)
Return file information for the next pseudo file in the active search.
|
java.lang.String |
nextPseudoFileName()
Return the file name of the next pseudo file in the active search.
|
boolean |
restartAtPseudoFile(FileInfo info)
Restart a search at the specified pseudo file resume point.
|
boolean |
restartAtPseudoFile(int resumeId)
Restart the current search at the specified pseudo file.
|
void |
setPseudoFileList(PseudoFileList pseudoList)
Set the pseudo file list for the search
|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, hasMoreFiles, nextFileInfo, nextFileName, numberOfEntries, restartAt, restartAt, setFlags, setMaximumFiles, setSearchString, setTreeId, toStringpublic PseudoSearchContext(java.lang.String relPath)
relPath - Stringpublic final boolean hasPseudoFiles()
public final void setPseudoFileList(PseudoFileList pseudoList)
pseudoList - PseudoFileListpublic int getResumeId()
getResumeId in class SearchContextpublic boolean hasMorePseudoFiles()
public boolean nextPseudoFileInfo(FileInfo info)
info - FileInfo to return the file information.public java.lang.String nextPseudoFileName()
public boolean restartAtPseudoFile(FileInfo info)
info - FileInfopublic boolean restartAtPseudoFile(int resumeId)
resumeId - intCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.