Package org.opencms.jlan
Class CmsJlanSearch
java.lang.Object
org.alfresco.jlan.server.filesys.SearchContext
org.opencms.jlan.CmsJlanSearch
This class represents the state of a search operation in a JLAN repository. It just contains
the list of all search results and an index into that list which points to the next result
which hasn't been fetched yet.
-
Constructor Summary
ConstructorDescriptionCmsJlanSearch
(List<CmsJlanNetworkFile> files) Creates a new instance based on a given result list. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
protected CmsJlanNetworkFile
nextFile()
Returns the next file object in the search result.boolean
nextFileInfo
(org.alfresco.jlan.server.filesys.FileInfo info) boolean
restartAt
(int resumeId) boolean
restartAt
(org.alfresco.jlan.server.filesys.FileInfo info) Methods inherited from class org.alfresco.jlan.server.filesys.SearchContext
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, numberOfEntries, setFlags, setMaximumFiles, setSearchString, setTreeId, toString
-
Constructor Details
-
CmsJlanSearch
Creates a new instance based on a given result list.- Parameters:
files
- the result list
-
-
Method Details
-
getResumeId
- Specified by:
getResumeId
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.getResumeId()
-
hasMoreFiles
- Specified by:
hasMoreFiles
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.hasMoreFiles()
-
nextFileInfo
- Specified by:
nextFileInfo
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.nextFileInfo(org.alfresco.jlan.server.filesys.FileInfo)
-
nextFileName
- Specified by:
nextFileName
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.nextFileName()
-
restartAt
- Specified by:
restartAt
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.restartAt(org.alfresco.jlan.server.filesys.FileInfo)
-
restartAt
- Specified by:
restartAt
in classorg.alfresco.jlan.server.filesys.SearchContext
- See Also:
-
SearchContext.restartAt(int)
-
nextFile
Returns the next file object in the search result.- Returns:
- the next file object
-