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 java.lang.Object implements com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<P>currentPageCacheprotected intcurrentStartprotected com.hybris.cockpitng.search.data.FullTextSearchDatafullTextSearchDataprotected booleaninitializedprotected intpageSizeprotected com.hybris.cockpitng.search.data.SearchQueryDatasearchQueryDataprotected inttotalCountprotected java.lang.StringtypeCode
-
Constructor Summary
Constructors Constructor Description AbstractBackofficeSearchPageable(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<P>getAllResults()protected java.util.Optional<java.util.List<P>>getCurrentNotEmptyPage()java.util.List<P>getCurrentPage()com.hybris.cockpitng.search.data.FullTextSearchDatagetFullTextSearchData()intgetPageNumber()intgetPageSize()protected abstract java.util.List<P>getResults(int pageSize, int offset)com.hybris.cockpitng.search.data.SortDatagetSortData()intgetTotalCount()java.lang.StringgetTypeCode()booleanhasNextPage()booleanhasPreviousPage()protected voidinitialize()protected voidinvalidateCurrentPageCache()java.util.List<P>nextPage()java.util.List<P>previousPage()voidrefresh()voidsetPageNumber(int pageNo)java.util.List<P>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
-
Methods inherited from interface com.hybris.cockpitng.search.data.pageable.FullTextSearchPageable
onPageLoaded
-
-
-
-
Field Detail
-
searchQueryData
protected final com.hybris.cockpitng.search.data.SearchQueryData searchQueryData
-
currentPageCache
protected java.util.List<P> currentPageCache
-
pageSize
protected int pageSize
-
totalCount
protected int totalCount
-
currentStart
protected int currentStart
-
initialized
protected boolean initialized
-
typeCode
protected java.lang.String typeCode
-
fullTextSearchData
protected com.hybris.cockpitng.search.data.FullTextSearchData fullTextSearchData
-
-
Method Detail
-
initialize
protected void initialize()
-
getCurrentPage
public java.util.List<P> getCurrentPage()
- Specified by:
getCurrentPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getCurrentNotEmptyPage
protected java.util.Optional<java.util.List<P>> getCurrentNotEmptyPage()
-
getResults
protected abstract java.util.List<P> getResults(int pageSize, int offset)
-
refresh
public void refresh()
- Specified by:
refreshin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
invalidateCurrentPageCache
protected void invalidateCurrentPageCache()
-
getPageSize
public int getPageSize()
- Specified by:
getPageSizein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getTypeCode
public java.lang.String getTypeCode()
- Specified by:
getTypeCodein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
hasNextPage
public boolean hasNextPage()
- Specified by:
hasNextPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
nextPage
public java.util.List<P> nextPage()
- Specified by:
nextPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
hasPreviousPage
public boolean hasPreviousPage()
- Specified by:
hasPreviousPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
previousPage
public java.util.List<P> previousPage()
- Specified by:
previousPagein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
setPageSize
public java.util.List<P> setPageSize(int pageSize)
- Specified by:
setPageSizein interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getTotalCount
public int getTotalCount()
- Specified by:
getTotalCountin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getPageNumber
public int getPageNumber()
- Specified by:
getPageNumberin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
setPageNumber
public void setPageNumber(int pageNo)
- Specified by:
setPageNumberin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getSortData
public com.hybris.cockpitng.search.data.SortData getSortData()
- Specified by:
getSortDatain interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
setSortData
public void setSortData(com.hybris.cockpitng.search.data.SortData sortData)
- Specified by:
setSortDatain interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getAllResults
public java.util.List<P> getAllResults()
- Specified by:
getAllResultsin interfacecom.hybris.cockpitng.search.data.pageable.Pageable<P>
-
getFullTextSearchData
public com.hybris.cockpitng.search.data.FullTextSearchData getFullTextSearchData()
- Specified by:
getFullTextSearchDatain interfacecom.hybris.cockpitng.search.data.pageable.FullTextSearchPageable<P>
-
-