java.lang.Object
de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.search.backend.impl.SearchBackendERP
All Implemented Interfaces:
BackendBusinessObject, BackendBusinessObjectJCo, SearchBackend

public class SearchBackendERP extends BackendBusinessObjectBaseJCo implements SearchBackend
  • Field Details

    • ERP_ISA_GEN_DOCUMENT_SEL

      public static final String ERP_ISA_GEN_DOCUMENT_SEL
      Name of search function module
      See Also:
  • Constructor Details

    • SearchBackendERP

      public SearchBackendERP()
  • Method Details

    • getDateRangeInDays

      public int getDateRangeInDays()
      Description copied from interface: SearchBackend
      Retrieves date range
      Specified by:
      getDateRangeInDays in interface SearchBackend
      Returns:
      Date range in days
    • getSearchResult

      public SearchResultList getSearchResult(SearchFilter searchFilter) throws BackendException
      Description copied from interface: SearchBackend
      Performs a search in backend, according to the filter settings
      Specified by:
      getSearchResult in interface SearchBackend
      Parameters:
      searchFilter - Filter settings
      Returns:
      Search result list
      Throws:
      BackendException
    • processResults

      protected SearchResultList processResults(com.sap.conn.jco.JCoTable table)
      Processes search result and converts it into the BOL search result representation
      Parameters:
      table - JCO table of type ISALES_DOCLIST_ROW
      Returns:
      Search Result List
    • performLogging

      protected void performLogging(SearchResultList resultList, int maxHits)
      Parameters:
      resultList -
      maxHits -
    • createSearchResultList

      protected SearchResultList createSearchResultList()
    • createSearchResult

      protected SearchResult createSearchResult()
      Creates a SearchResult instance
      Returns:
      SearchResult instance
    • fillResultFields

      protected void fillResultFields(com.sap.conn.jco.JCoTable table)
      Fills search result attributes for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
      Parameters:
      table - JCO Table of type ISALES_SEL_FIELD
    • fillSelectionOptions

      protected void fillSelectionOptions(com.sap.conn.jco.JCoTable table, SearchFilter searchFilter)
      Fills selection options for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
      Parameters:
      table - JCO Table of type ISALES_SELOPT
      searchFilter - Filter attributes
    • fillCounterOptions

      protected void fillCounterOptions(com.sap.conn.jco.JCoTable table)
      Fills counter options for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
      Parameters:
      table - JCO Table of type ISALES_CTROPT
    • getMaxHits

      protected int getMaxHits()
      Returns:
      the maxHits
    • setMaxHits

      protected void setMaxHits(int maxHits)
      This can be used for testing
      Parameters:
      maxHits - the maxHits to set
    • setDateRangeInDays

      protected void setDateRangeInDays(int dateRange)
    • setToday

      public void setToday(Date date)
      Only for testing
      Parameters:
      date -
    • getToday

      public Date getToday()
      Returns:
      the today
    • isWarningStatus

      protected boolean isWarningStatus(SearchResultList results, int maxHits)
    • isErrorStatus

      protected boolean isErrorStatus(SearchResultList results, int maxHits)