Class DataHubPageable<T>

java.lang.Object
de.hybris.platform.datahubbackoffice.dataaccess.DataHubPageable<T>
Type Parameters:
T - . The default page size is 10 if not specified differently through cockpitNG widget configuration
All Implemented Interfaces:
com.hybris.cockpitng.search.data.IdentifiableSearchQuery, com.hybris.cockpitng.search.data.pageable.Pageable<T>

public abstract class DataHubPageable<T> extends Object implements com.hybris.cockpitng.search.data.pageable.Pageable<T>
Base class for any Pageable type returned for a FieldSearchFacadeStrategy implementation
  • Constructor Details

    • DataHubPageable

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

    • getCurrentPage

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

      public List<T> nextPage()
      Specified by:
      nextPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<T>
    • previousPage

      public List<T> previousPage()
      Specified by:
      previousPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<T>
    • hasNextPage

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

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

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

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

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

      public List<T> setPageSize(int pageSize)
      Specified by:
      setPageSize in interface com.hybris.cockpitng.search.data.pageable.Pageable<T>
    • getPageNumber

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

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

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

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

      public List<T> getAllResults()
      Specified by:
      getAllResults in interface com.hybris.cockpitng.search.data.pageable.Pageable<T>
    • getTypeCode

      public String getTypeCode()
      Specified by:
      getTypeCode in interface com.hybris.cockpitng.search.data.pageable.Pageable<T>
    • getPagedData

      protected abstract com.hybris.datahub.PagedDataHubResponse<T> getPagedData(int pageNumber, int pageSize)