Class PageableWithFullTextDataCallback
- java.lang.Object
-
- com.hybris.backoffice.widgets.advancedsearch.engine.PageableWithFullTextDataCallback
-
- All Implemented Interfaces:
IdentifiableSearchQuery,FullTextSearchPageable,Pageable
public abstract class PageableWithFullTextDataCallback extends java.lang.Object implements FullTextSearchPageable
Pageable wrapper which calls#onFullTextSearchData(FullTextSearchData)after current page is fetched and full text search data is available.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ListgetAllResults()Returns all results on all pages.java.util.ListgetCurrentPage()Gets the entries of the current record.FullTextSearchDatagetFullTextSearchData()Gets full text search data.PageablegetPageable()intgetPageNumber()Returns the active page number.intgetPageSize()Returns the page size.java.lang.StringgetQueryId()SortDatagetSortData()Returns sort related informationintgetTotalCount()Returns count of all items in the collection that is being paged.java.lang.StringgetTypeCode()Returns the "common" type code of all entries.booleanhasNextPage()Determines if there is a next page.booleanhasPreviousPage()Determines if there is a previous page.java.util.ListnextPage()Gets the entries of the next record page and updates the current page number (seePageable.getCurrentPage()).java.util.ListpreviousPage()Get the entries of the previous page and updates the current page number (seePageable.getCurrentPage()).voidrefresh()Refreshes current page.voidsetPageNumber(int pageNo)Sets the active page number.java.util.ListsetPageSize(int pageSize)Changes the page size and returns the current page with a new page size.voidsetQueryId(java.lang.String queryId)voidsetSortData(SortData sortData)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable
onPageLoaded
-
-
-
-
Method Detail
-
getCurrentPage
public java.util.List getCurrentPage()
Description copied from interface:PageableGets the entries of the current record.- Specified by:
getCurrentPagein interfacePageable- Returns:
- all entries of the current record page
-
getPageable
public Pageable getPageable()
-
refresh
public void refresh()
Description copied from interface:PageableRefreshes current page.
-
nextPage
public java.util.List nextPage()
Description copied from interface:PageableGets the entries of the next record page and updates the current page number (seePageable.getCurrentPage()).- Specified by:
nextPagein interfacePageable- Returns:
- all entries of the next record page or an empty list if
Pageable.hasNextPage()returns false
-
previousPage
public java.util.List previousPage()
Description copied from interface:PageableGet the entries of the previous page and updates the current page number (seePageable.getCurrentPage()).- Specified by:
previousPagein interfacePageable- Returns:
- List of
RESULTor empty list ifPageable.hasPreviousPage()returns false.
-
hasNextPage
public boolean hasNextPage()
Description copied from interface:PageableDetermines if there is a next page.- Specified by:
hasNextPagein interfacePageable- Returns:
- boolean
-
hasPreviousPage
public boolean hasPreviousPage()
Description copied from interface:PageableDetermines if there is a previous page.- Specified by:
hasPreviousPagein interfacePageable- Returns:
- boolean
-
getPageSize
public int getPageSize()
Description copied from interface:PageableReturns the page size.- Specified by:
getPageSizein interfacePageable- Returns:
- integer
-
getTypeCode
public java.lang.String getTypeCode()
Description copied from interface:PageableReturns the "common" type code of all entries.- Specified by:
getTypeCodein interfacePageable- Returns:
- the common type code or null if no common type code can be applied
-
setPageSize
public java.util.List setPageSize(int pageSize)
Description copied from interface:PageableChanges the page size and returns the current page with a new page size.- Specified by:
setPageSizein interfacePageable- Parameters:
pageSize- - new page size- Returns:
ListofRESULTor empty list.
-
getTotalCount
public int getTotalCount()
Description copied from interface:PageableReturns count of all items in the collection that is being paged.- Specified by:
getTotalCountin interfacePageable- Returns:
- total items count
-
getPageNumber
public int getPageNumber()
Description copied from interface:PageableReturns the active page number.- Specified by:
getPageNumberin interfacePageable- Returns:
- the active page number
-
setPageNumber
public void setPageNumber(int pageNo)
Description copied from interface:PageableSets the active page number.- Specified by:
setPageNumberin interfacePageable
-
getSortData
public SortData getSortData()
Description copied from interface:PageableReturns sort related information- Specified by:
getSortDatain interfacePageable- Returns:
- sort related information
-
setSortData
public void setSortData(SortData sortData)
- Specified by:
setSortDatain interfacePageable- Parameters:
sortData- sort related information
-
getAllResults
public java.util.List getAllResults()
Description copied from interface:PageableReturns all results on all pages. May be a long lasting operation for big data sets, therefore should be used carefully.- Specified by:
getAllResultsin interfacePageable- Returns:
-
getFullTextSearchData
public FullTextSearchData getFullTextSearchData()
Description copied from interface:FullTextSearchPageableGets full text search data.- Specified by:
getFullTextSearchDatain interfaceFullTextSearchPageable- Returns:
- full text search data.
-
getQueryId
public java.lang.String getQueryId()
- Specified by:
getQueryIdin interfaceIdentifiableSearchQuery- Returns:
- identifier of a query. Queries with same identifiers are assumed to perform same request to data source
-
setQueryId
public void setQueryId(java.lang.String queryId)
- Specified by:
setQueryIdin interfacePageable- Parameters:
queryId- Queries with same identifiers are assumed to perform same request to data source
-
-