Interface HippoFolderBean

    • Method Detail

      • getFolders

        List<HippoFolderBean> getFolders()
        Returns:
        the list of HippoFolderBean below this HippoFolderBean and an empty list of no folders present
      • getFolders

        List<HippoFolderBean> getFolders​(boolean sorted)
        Parameters:
        sorted - if true, the list of folder will be returned sorted by their default Comparable.compareTo(Object)
        Returns:
        the sorted list of HippoFolderBean below this HippoFolderBean and an empty list if no folders present
      • getDocumentSize

        int getDocumentSize()
        Returns:
        the number of documents in this folder
      • getDocuments

        List<HippoDocumentBean> getDocuments​(int from,
                                             int to)
        Returns a view of the portion of the list of HippoDocumentBean between the specified from, inclusive, and to, exclusive. (If from and to are equal, the returned list is empty.) note when only a subset of the documents is needed, and the total number is large, better use getDocumentIterator(Class) as this is a lazy proxied iterator
        Parameters:
        from - (inclusive)
        to - (exclusive)
        Returns:
        the sublist of HippoDocumentBean below this HippoFolderBean and an empty list when original list is empty or invalid range
      • getDocuments

        List<HippoDocumentBean> getDocuments​(int from,
                                             int to,
                                             boolean sorted)
        Returns a view of the portion of the list of HippoDocumentBean between the specified from, inclusive, and to, exclusive. (If from and to are equal, the returned list is empty.) note when only a subset of unsorted documents is needed, and the total number is large, better use getDocumentIterator(Class) as this is a lazy proxied iterator
        Parameters:
        from - (inclusive)
        to - (exclusive)
        sorted - boolean whether list to get sublist from needs to be sorted
        Returns:
        the sublist of possibly sorted of HippoDocumentBean below this HippoFolderBean and an empty list when original list is empty or invalid range
      • getDocuments

        <T> List<T> getDocuments​(Class<T> beanMappingClass)
        Facility method to get all documents directly below this folder that result in a HippoBean of class or subclass clazz. note when only a subset of the documents is needed, and the total number is large, better use getDocumentIterator(Class) as this is a lazy proxied iterator
        Type Parameters:
        T - Any Object that implements a HippoDocumentBean
        Parameters:
        beanMappingClass - a class implementing HippoDocumentBean. This functions as a filter
        Returns:
        the list documents in this folder of type
      • getDocumentIterator

        <T> HippoDocumentIterator<T> getDocumentIterator​(Class<T> beanMappingClass)
        Lazy loading iterator that fetches Documents only when asked for it. This is much more efficient then all thegetDocuments() methods (also with arguments) as they fetch all HippoDocumentBeans directly.
        Type Parameters:
        T - Any Object that implements a HippoDocumentBean
        Parameters:
        beanMappingClass - a class implementing HippoDocumentBean. This functions as a filter
        Returns:
        A lazy loading iterator returning documents in this folder of type