Class CmsJlanSearch

  • public class CmsJlanSearch
    extends org.alfresco.jlan.server.filesys.SearchContext
    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

      Constructor Description
      CmsJlanSearch​(java.util.List<CmsJlanNetworkFile> files)
      Creates a new instance based on a given result list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getResumeId()  
      boolean hasMoreFiles()  
      protected CmsJlanNetworkFile nextFile()
      Returns the next file object in the search result.
      boolean nextFileInfo​(org.alfresco.jlan.server.filesys.FileInfo info)  
      java.lang.String nextFileName()  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmsJlanSearch

        public CmsJlanSearch​(java.util.List<CmsJlanNetworkFile> files)
        Creates a new instance based on a given result list.

        files - the result list
    • Method Detail

      • getResumeId

        public int getResumeId()
        Specified by:
        getResumeId in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • hasMoreFiles

        public boolean hasMoreFiles()
        Specified by:
        hasMoreFiles in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • nextFileInfo

        public boolean nextFileInfo​(org.alfresco.jlan.server.filesys.FileInfo info)
        Specified by:
        nextFileInfo in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • nextFileName

        public java.lang.String nextFileName()
        Specified by:
        nextFileName in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • restartAt

        public boolean restartAt​(org.alfresco.jlan.server.filesys.FileInfo info)
        Specified by:
        restartAt in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • restartAt

        public boolean restartAt​(int resumeId)
        Specified by:
        restartAt in class org.alfresco.jlan.server.filesys.SearchContext
        See Also:
      • nextFile

        protected CmsJlanNetworkFile nextFile()
        Returns the next file object in the search result.

        the next file object