Class SearchBackendERP
- 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 Summary
Fields Modifier and Type Field Description static java.lang.StringERP_ISA_GEN_DOCUMENT_SELName of search function module-
Fields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccess
-
-
Constructor Summary
Constructors Constructor Description SearchBackendERP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SearchResultcreateSearchResult()Creates a SearchResult instanceprotected SearchResultListcreateSearchResultList()protected voidfillCounterOptions(com.sap.conn.jco.JCoTable table)Fills counter options for the call of function moduleERP_ISA_GEN_DOCUMENT_SELprotected voidfillResultFields(com.sap.conn.jco.JCoTable table)Fills search result attributes for the call of function moduleERP_ISA_GEN_DOCUMENT_SELprotected voidfillSelectionOptions(com.sap.conn.jco.JCoTable table, SearchFilter searchFilter)Fills selection options for the call of function moduleERP_ISA_GEN_DOCUMENT_SELintgetDateRangeInDays()Retrieves date rangeprotected intgetMaxHits()SearchResultListgetSearchResult(SearchFilter searchFilter)Performs a search in backend, according to the filter settingsjava.util.DategetToday()protected booleanisErrorStatus(SearchResultList results, int maxHits)protected booleanisWarningStatus(SearchResultList results, int maxHits)protected voidperformLogging(SearchResultList resultList, int maxHits)protected SearchResultListprocessResults(com.sap.conn.jco.JCoTable table)Processes search result and converts it into the BOL search result representationprotected voidsetDateRangeInDays(int dateRange)protected voidsetMaxHits(int maxHits)This can be used for testingvoidsetToday(java.util.Date date)Only for testing-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
getDefaultConnectionName, getDefaultDestinationName, getDefaultJCoConnection, getJCoConnection, getJCoConnection, getModuleId, setDefaultConnectionName, setDefaultDestinationName, setManagedConnectionContainer, toString
-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
destroyBackendObject, getModuleConfigurationAccess, initBackendObject, setGenericFactory, setModuleConfigurationAccess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
-
-
-
Field Detail
-
ERP_ISA_GEN_DOCUMENT_SEL
public static final java.lang.String ERP_ISA_GEN_DOCUMENT_SEL
Name of search function module- See Also:
- Constant Field Values
-
-
Method Detail
-
getDateRangeInDays
public int getDateRangeInDays()
Description copied from interface:SearchBackendRetrieves date range- Specified by:
getDateRangeInDaysin interfaceSearchBackend- Returns:
- Date range in days
-
getSearchResult
public SearchResultList getSearchResult(SearchFilter searchFilter) throws BackendException
Description copied from interface:SearchBackendPerforms a search in backend, according to the filter settings- Specified by:
getSearchResultin interfaceSearchBackend- 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 moduleERP_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 moduleERP_ISA_GEN_DOCUMENT_SEL- Parameters:
table- JCO Table of type ISALES_SELOPTsearchFilter- Filter attributes
-
fillCounterOptions
protected void fillCounterOptions(com.sap.conn.jco.JCoTable table)
Fills counter options for the call of function moduleERP_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(java.util.Date date)
Only for testing- Parameters:
date-
-
getToday
public java.util.Date getToday()
- Returns:
- the today
-
isWarningStatus
protected boolean isWarningStatus(SearchResultList results, int maxHits)
-
isErrorStatus
protected boolean isErrorStatus(SearchResultList results, int maxHits)
-
-