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 Summary
ConstructorsConstructorDescriptionDataHubPageable(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.hybris.datahub.PagedDataHubResponse<T>getPagedData(int pageNumber, int pageSize) intintcom.hybris.cockpitng.search.data.SortDataintbooleanbooleannextPage()voidrefresh()voidsetPageNumber(int pageNo) 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, waitMethods inherited from interface com.hybris.cockpitng.search.data.IdentifiableSearchQuery
getQueryIdMethods inherited from interface com.hybris.cockpitng.search.data.pageable.Pageable
setCockpitEvent, setQueryId
-
Constructor Details
-
DataHubPageable
public DataHubPageable(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData)
-
-
Method Details
-
getCurrentPage
- Specified by:
getCurrentPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
nextPage
- Specified by:
nextPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<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
- 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
- Specified by:
getAllResultsin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<T>
-
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)
-