Class AbstractBackofficeSearchPageable<P>

java.lang.Object
com.hybris.backoffice.search.dataaccess.facades.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 Object implements com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>
  • Field Details

    • searchQueryData

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

      protected List<P> currentPageCache
    • pageSize

      protected int pageSize
    • totalCount

      protected int totalCount
    • currentStart

      protected int currentStart
    • initialized

      protected boolean initialized
    • typeCode

      protected String typeCode
    • fullTextSearchData

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

    • AbstractBackofficeSearchPageable

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

    • initialize

      protected void initialize()
    • getCurrentPage

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

      protected Optional<List<P>> getCurrentNotEmptyPage()
    • getResults

      protected abstract 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 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 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 List<P> previousPage()
      Specified by:
      previousPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<P>
    • setPageSize

      public 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 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>