Class WorkflowSearchPageable

  • All Implemented Interfaces:
    com.hybris.cockpitng.search.data.IdentifiableSearchQuery, com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>

    public class WorkflowSearchPageable
    extends java.lang.Object
    implements com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
    Pageable object which allows to search workflows using WorkflowSearchData
    • Constructor Detail

      • WorkflowSearchPageable

        protected WorkflowSearchPageable​(WorkflowSearchData searchData)
    • Method Detail

      • getCurrentPage

        public java.util.List<WorkflowModel> getCurrentPage()
        Specified by:
        getCurrentPage in interface com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
      • fetchRegularWorkflows

        protected java.util.List<WorkflowModel> fetchRegularWorkflows()
      • fetchAdHocWorkflows

        protected java.util.List<WorkflowModel> fetchAdHocWorkflows​(int adHocWorkflowsToFetch)
      • refresh

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

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

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

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

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

        public void setPageNumber​(int i)
        Specified by:
        setPageNumber in interface com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
      • getPageSize

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

        public java.lang.String getTypeCode()
        Specified by:
        getTypeCode in interface com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
      • setPageSize

        public java.util.List<WorkflowModel> setPageSize​(int i)
        Specified by:
        setPageSize in interface com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
      • getTotalCount

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

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

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

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

        public java.util.List<WorkflowModel> getAllResults()
        Specified by:
        getAllResults in interface com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel>
      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)