Class AbstractBackofficeSearchPageable<P>

  • All Implemented Interfaces:
    com.hybris.cockpitng.search.data.IdentifiableSearchQuery, com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>, com.hybris.cockpitng.search.data.pageable.Pageable<P>

    public abstract class AbstractBackofficeSearchPageable<P>
    extends java.lang.Object
    implements com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>
    • Field Detail

      • searchQueryData

        protected final com.hybris.cockpitng.search.data.SearchQueryData searchQueryData
      • currentPageCache

        protected java.util.List<P> currentPageCache
      • pageSize

        protected int pageSize
      • totalCount

        protected int totalCount
      • currentStart

        protected int currentStart
      • initialized

        protected boolean initialized
      • typeCode

        protected java.lang.String typeCode
      • fullTextSearchData

        protected com.hybris.cockpitng.search.data.FullTextSearchData fullTextSearchData
    • Constructor Detail

      • AbstractBackofficeSearchPageable

        public AbstractBackofficeSearchPageable​(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData)
    • Method Detail

      • initialize

        protected void initialize()
      • getCurrentPage

        public java.util.List<P> getCurrentPage()
        Specified by:
        getCurrentPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getCurrentNotEmptyPage

        protected java.util.Optional<java.util.List<P>> getCurrentNotEmptyPage()
      • getResults

        protected abstract java.util.List<P> getResults​(int pageSize,
                                                        int offset)
      • refresh

        public void refresh()
        Specified by:
        refresh in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • invalidateCurrentPageCache

        protected void invalidateCurrentPageCache()
      • getPageSize

        public int getPageSize()
        Specified by:
        getPageSize in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getTypeCode

        public java.lang.String getTypeCode()
        Specified by:
        getTypeCode in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • hasNextPage

        public boolean hasNextPage()
        Specified by:
        hasNextPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • nextPage

        public java.util.List<P> nextPage()
        Specified by:
        nextPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • hasPreviousPage

        public boolean hasPreviousPage()
        Specified by:
        hasPreviousPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • previousPage

        public java.util.List<P> previousPage()
        Specified by:
        previousPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • setPageSize

        public java.util.List<P> setPageSize​(int pageSize)
        Specified by:
        setPageSize in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getTotalCount

        public int getTotalCount()
        Specified by:
        getTotalCount in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getPageNumber

        public int getPageNumber()
        Specified by:
        getPageNumber in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • setPageNumber

        public void setPageNumber​(int pageNo)
        Specified by:
        setPageNumber in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getSortData

        public com.hybris.cockpitng.search.data.SortData getSortData()
        Specified by:
        getSortData in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • setSortData

        public void setSortData​(com.hybris.cockpitng.search.data.SortData sortData)
        Specified by:
        setSortData in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getAllResults

        public java.util.List<P> getAllResults()
        Specified by:
        getAllResults in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
      • getFullTextSearchData

        public com.hybris.cockpitng.search.data.FullTextSearchData getFullTextSearchData()
        Specified by:
        getFullTextSearchData in interface com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>