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
-
Field Summary
FieldsFields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchResultCreates a SearchResult instanceprotected SearchResultListprotected 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_SELintRetrieves date rangeprotected intgetSearchResult(SearchFilter searchFilter) Performs a search in backend, according to the filter settingsgetToday()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 testingvoidOnly for testingMethods inherited from class de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
getDefaultConnectionName, getDefaultDestinationName, getDefaultJCoConnection, getJCoConnection, getJCoConnection, getModuleId, setDefaultConnectionName, setDefaultDestinationName, setManagedConnectionContainer, toStringMethods inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
destroyBackendObject, getModuleConfigurationAccess, initBackendObject, setGenericFactory, setModuleConfigurationAccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
Field Details
-
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:SearchBackendRetrieves date range- Specified by:
getDateRangeInDaysin interfaceSearchBackend- Returns:
- Date range in days
-
getSearchResult
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
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
- Parameters:
resultList-maxHits-
-
createSearchResultList
-
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
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
Only for testing- Parameters:
date-
-
getToday
- Returns:
- the today
-
isWarningStatus
-
isErrorStatus
-