Class IsaBackendBusinessObjectBaseSalesERP
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.backend.impl.erp.IsaBackendBusinessObjectBaseSalesERP
- All Implemented Interfaces:
BackendBusinessObject,BackendBusinessObjectJCo,BackendState
- Direct Known Subclasses:
SalesDocumentERP
public abstract class IsaBackendBusinessObjectBaseSalesERP
extends BackendBusinessObjectBaseJCo
implements BackendState
Superclass of R3Lrd documents, containing common functionality
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDue to performance reasons the docflow of header and items should only be read once.protected com.sap.conn.jco.JCoTableJCO table: headerMap of price attributes for the headerMap of price properties for the headerstore configuration changeable info for configurable itemSalesDocsprotected com.sap.conn.jco.JCoTableJCO table: item document flowMap of price attribute maps for itemsMap of price properties for itemsprotected LoadOperationprotected Map<String,MessageList> Map of messages.List of saved items of the order.protected booleanflag if price attributes are needed, to show IPC prices for configurable productsstore shipTo info for itemSalesDocsFields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanadjustFreeGoods(SalesDocument posd, TransactionConfiguration transConf) Adjusts the free good related sub items.com.sap.conn.jco.JCoTableReturns the docflow of the headerReturns the Header price attribute map If not yet present, creates the mapReturns the header property map If not yet present, creates the mapcom.sap.conn.jco.JCoTableReturns the docflow of the itemsReturns the item price attribute map If not yet present, creates the mapReturns the item property map If not yet present, creates the mapReturns the map, to store item variant informationgetMessageList(TechKey key) Returns the MessageList for the given key, if one exits, null elseReturns the MessageList for the given key, if one exits, if not create oneReturns the map, which stores the header resp.voidThis method is called by the SessionObjectManager to initialize object after all properties have been injected.booleanFor performance reasons DocFlow should only be read when necessary.voidremoveMessageFromMessageList(TechKey key, String resourceKey) Removes the given message from the MessageList in the MessageBufferMap for the given key, if presentvoidsetDocflowRead(boolean docflowread) Sets the flag dowflowReadvoidsetHeaderDocFlow(com.sap.conn.jco.JCoTable table) Sets the header docflow in the table buffervoidsetItemDocFlow(com.sap.conn.jco.JCoTable table) Sets the items docflow in the table buffervoidsetShipToMap(Map<String, ShipTo> map) sets the map, which stores the header resp.Methods 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, 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
destroyBackendObjectMethods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.interf.erp.BackendState
addErroneousItem, clearErroneousItems, getErroneousHeader, getErroneousItems, getPayerHandle, getShippingCondition, getSoldToHandle, isCreateProcess, isDocumentInitial, removeErroneousItems, setDocumentInitial, setErroneous, setErroneousHeader, setPayerHandle, setShippingCondition, setSoldToHandle
-
Field Details
-
itemsPriceAttribMap
Map of price attribute maps for items -
headerPriceAttribs
Map of price attributes for the header -
itemsPropMap
Map of price properties for items -
headerPropMap
Map of price properties for the header -
itemConfigChangeableMap
store configuration changeable info for configurable itemSalesDocs -
setIpcPriceAttributes
protected boolean setIpcPriceAttributesflag if price attributes are needed, to show IPC prices for configurable products -
shipToMap
store shipTo info for itemSalesDocs -
predecessorShipTo
-
loadState
-
savedItemsMap
List of saved items of the order. In order to be able to distinguish between saved items and new items in case of order change, the handles of the saved items are added to this list when the order is read the first time from the backend * * -
docflowRead
protected boolean docflowReadDue to performance reasons the docflow of header and items should only be read once. Therefore the docflow data are cached after the first call or ERP_LORD_GETALL. -
itemDocFlow
protected com.sap.conn.jco.JCoTable itemDocFlowJCO table: item document flow -
headerDocFlow
protected com.sap.conn.jco.JCoTable headerDocFlowJCO table: header -
messageBufferMap
Map of messages.
-
-
Constructor Details
-
IsaBackendBusinessObjectBaseSalesERP
public IsaBackendBusinessObjectBaseSalesERP()
-
-
Method Details
-
getSavedItemsMap
- Specified by:
getSavedItemsMapin interfaceBackendState- Returns:
- List of saved (already existing) items of the order
-
initBackendObject
Description copied from interface:BackendBusinessObjectThis method is called by the SessionObjectManager to initialize object after all properties have been injected.- Specified by:
initBackendObjectin interfaceBackendBusinessObject- Overrides:
initBackendObjectin classBackendBusinessObjectBase- Throws:
BackendException-BackendException
-
getHeaderPriceAttribs
Description copied from interface:BackendStateReturns the Header price attribute map If not yet present, creates the map- Specified by:
getHeaderPriceAttribsin interfaceBackendState- Returns:
- HashMap, map for the header price attributes
-
getItemsPriceAttribMap
Description copied from interface:BackendStateReturns the item price attribute map If not yet present, creates the map- Specified by:
getItemsPriceAttribMapin interfaceBackendState- Returns:
- HashMap, map for the item price attributes
-
getHeaderPropMap
Description copied from interface:BackendStateReturns the header property map If not yet present, creates the map- Specified by:
getHeaderPropMapin interfaceBackendState- Returns:
- HashMap, map for the header properties
-
getItemsPropMap
Description copied from interface:BackendStateReturns the item property map If not yet present, creates the map- Specified by:
getItemsPropMapin interfaceBackendState- Returns:
- HashMap, map for the item properties
-
getItemVariantMap
Description copied from interface:BackendStateReturns the map, to store item variant information- Specified by:
getItemVariantMapin interfaceBackendState- Returns:
- HashMap, map of item variants
-
getShipToMap
Description copied from interface:BackendStateReturns the map, which stores the header resp. item vs. shipToKey relation- Specified by:
getShipToMapin interfaceBackendState- Returns:
- Map
-
setShipToMap
sets the map, which stores the header resp. item vs. shipToKey relation- Parameters:
map- shipTo map
-
adjustFreeGoods
protected boolean adjustFreeGoods(SalesDocument posd, TransactionConfiguration transConf) throws BackendException Adjusts the free good related sub items. Forwards toFreeGoodSupportBackend.- Parameters:
posd- the sales documenttransConf- Configuration for SAP synchronous order management- Returns:
- was there an inclusive FG item?
- Throws:
BackendException- exception from parsing etc.
-
isDocflowRead
public boolean isDocflowRead()Description copied from interface:BackendStateFor performance reasons DocFlow should only be read when necessary. Typically + DocFlow will not change when one changes or displays an order within one session. So it is sufficient to read it once.- Specified by:
isDocflowReadin interfaceBackendState- Returns:
- true, if docflow has been read
-
setDocflowRead
public void setDocflowRead(boolean docflowread) Description copied from interface:BackendStateSets the flag dowflowRead- Specified by:
setDocflowReadin interfaceBackendState- Parameters:
docflowread- docflowread
-
getHeaderDocFlow
public com.sap.conn.jco.JCoTable getHeaderDocFlow()Description copied from interface:BackendStateReturns the docflow of the header- Specified by:
getHeaderDocFlowin interfaceBackendState- Returns:
- JCoTable docflow of the header
-
getItemDocFlow
public com.sap.conn.jco.JCoTable getItemDocFlow()Description copied from interface:BackendStateReturns the docflow of the items- Specified by:
getItemDocFlowin interfaceBackendState- Returns:
- HashMap doc flow of the items
-
setHeaderDocFlow
public void setHeaderDocFlow(com.sap.conn.jco.JCoTable table) Description copied from interface:BackendStateSets the header docflow in the table buffer- Specified by:
setHeaderDocFlowin interfaceBackendState- Parameters:
table- header docflow table
-
setItemDocFlow
public void setItemDocFlow(com.sap.conn.jco.JCoTable table) Description copied from interface:BackendStateSets the items docflow in the table buffer- Specified by:
setItemDocFlowin interfaceBackendState- Parameters:
table- JCoTable item docflow
-
getMessageList
Description copied from interface:BackendStateReturns the MessageList for the given key, if one exits, null else- Specified by:
getMessageListin interfaceBackendState- Parameters:
key- Technical key identifying head or item object- Returns:
- the MessageList for the given TechKey or a default MessageList, if the key is null or initial, if existing else null
-
getOrCreateMessageList
Description copied from interface:BackendStateReturns the MessageList for the given key, if one exits, if not create one- Specified by:
getOrCreateMessageListin interfaceBackendState- Parameters:
key- technical key identifying head or item object- Returns:
- the MessageList for the given TechKey or a default MessageList, if the key is null or initial
-
removeMessageFromMessageList
Description copied from interface:BackendStateRemoves the given message from the MessageList in the MessageBufferMap for the given key, if present- Specified by:
removeMessageFromMessageListin interfaceBackendState- Parameters:
key- technical of the business object the message belongs toresourceKey- resource key of the message
-
getLoadState
- Specified by:
getLoadStatein interfaceBackendState- Returns:
- Current Load state of the document
-