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 java.lang.Object implements com.hybris.cockpitng.search.data.pageable.Pageable<T>Base class for any Pageable type returned for a FieldSearchFacadeStrategy implementation
-
-
Constructor Summary
Constructors Constructor Description DataHubPageable(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<T>getAllResults()java.util.List<T>getCurrentPage()protected abstract com.hybris.datahub.PagedDataHubResponse<T>getPagedData(int pageNumber, int pageSize)intgetPageNumber()intgetPageSize()com.hybris.cockpitng.search.data.SortDatagetSortData()intgetTotalCount()java.lang.StringgetTypeCode()booleanhasNextPage()booleanhasPreviousPage()java.util.List<T>nextPage()java.util.List<T>previousPage()voidrefresh()voidsetPageNumber(int pageNo)java.util.List<T>setPageSize(int pageSize)voidsetSortData(com.hybris.cockpitng.search.data.SortData sortData)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getCurrentPage
public java.util.List<T> getCurrentPage()
- Specified by:
getCurrentPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
nextPage
public java.util.List<T> nextPage()
- Specified by:
nextPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
previousPage
public java.util.List<T> previousPage()
- Specified by:
previousPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
hasNextPage
public boolean hasNextPage()
- Specified by:
hasNextPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
hasPreviousPage
public boolean hasPreviousPage()
- Specified by:
hasPreviousPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getTotalCount
public int getTotalCount()
- Specified by:
getTotalCountin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
refresh
public void refresh()
- Specified by:
refreshin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getPageSize
public int getPageSize()
- Specified by:
getPageSizein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
setPageSize
public java.util.List<T> setPageSize(int pageSize)
- Specified by:
setPageSizein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getPageNumber
public int getPageNumber()
- Specified by:
getPageNumberin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
setPageNumber
public void setPageNumber(int pageNo)
- Specified by:
setPageNumberin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getSortData
public com.hybris.cockpitng.search.data.SortData getSortData()
- Specified by:
getSortDatain interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
setSortData
public void setSortData(com.hybris.cockpitng.search.data.SortData sortData)
- Specified by:
setSortDatain interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getAllResults
public java.util.List<T> getAllResults()
- Specified by:
getAllResultsin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getTypeCode
public java.lang.String getTypeCode()
- Specified by:
getTypeCodein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
getPagedData
protected abstract com.hybris.datahub.PagedDataHubResponse<T> getPagedData(int pageNumber, int pageSize)
-
-