java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.search.impl.SearchImpl
All Implemented Interfaces:
BackendAware, BusinessObject, MessageListHolder, Search, Serializable, Cloneable

public class SearchImpl extends BusinessObjectBase implements Search
See Also:
  • Constructor Details

    • SearchImpl

      public SearchImpl()
  • Method Details

    • getSortOptions

      public List<SortData> getSortOptions()
      Description copied from interface: Search
      Sort options which are stored in the session. The UI might not always send the sort options, so we need a session storage
      Specified by:
      getSortOptions in interface Search
      Returns:
      Current sort options
    • isDirty

      public boolean isDirty()
      Description copied from interface: Search
      Is state dirty, i.e. do we need to access the back end for the next search call?
      Specified by:
      isDirty in interface Search
      Returns:
      Dirty state
    • getSearchBackend

      public SearchBackend getSearchBackend() throws BackendException
      Returns:
      the searchBackend
      Throws:
      BackendException
    • setSearchBackend

      public void setSearchBackend(SearchBackend searchBackend)
      Can be used for testing. If not called, the backend object will be derived via anotations.
      Parameters:
      searchBackend - the searchBackend to set
    • getSearchResult

      public List<SearchResult> getSearchResult(SearchFilter searchFilter, PageableData pageableData)
      Description copied from interface: Search
      Triggers a search. In case the search is not dirty, no back end call will be made but paging will be done in the BOL layer
      Specified by:
      getSearchResult in interface Search
      Parameters:
      searchFilter - Filter settings
      pageableData - Paging settings
      Returns:
      List of search result entries according to filter and paging settings
    • setDirty

      public void setDirty(boolean b)
      Description copied from interface: Search
      Sets state to dirty, i.e. the next search call needs to access the back end
      Specified by:
      setDirty in interface Search
      Parameters:
      b - State is dirty?
    • getSearchResultsTotalNumber

      public int getSearchResultsTotalNumber()
      Specified by:
      getSearchResultsTotalNumber in interface Search
      Returns:
      Total number of search results, taking no paging into account
    • getDateRange

      public int getDateRange()
      Description copied from interface: Search
      Retrieves the date range (i.e. the number of days the system will search for in the past) from customizing
      Specified by:
      getDateRange in interface Search
      Returns:
      Date range in days
    • setSortOptions

      protected void setSortOptions(List<SortData> sortData)
      Parameters:
      sortData -