Class TransactionConfigurationImpl
java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapordermgmtbol.transaction.misc.businessobject.impl.TransactionConfigurationImpl
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,SalesDocumentConfiguration,TransactionConfiguration,Serializable,Cloneable
public class TransactionConfigurationImpl
extends BusinessObjectBase
implements TransactionConfiguration
The Shop object contains all kind of settings for the application.
The shop object use ShopBackend to comunicate with the backend.
For further details see the interface ShopData
- See Also:
-
Field Summary
FieldsFields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALIDFields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.businessobject.interf.TransactionConfiguration
DESCRIPTION, ID, SUBTOTAL1, SUBTOTAL2, SUBTOTAL3, SUBTOTAL4, SUBTOTAL5, SUBTOTAL6 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllowedDeliveryTypes(boolean consideringWECCustomizing) Delivery Types CRM table crmc_ship_cond, valuehelp crm_ship_cond ERP table tvsb, valuehelp h_tvsbprotected TransactionConfigurationBackendGets language dependent short ID of customer purchase order type.Gets delivery block ID.Returns the ISO 639 language Code (2 chars) in lower case.Deprecated, for removal: This API element is subject to removal in a future version.Provides information which source is used to determine the freight value (e.g.Provides information which source is used to determine the net value without freight (e.g.booleanReturns the property mergeIdenticalProducts, which is a WCB setting.voidsetCustomerPurchOrderType(String customerPurchOrderType) Sets language dependent short ID of customer purchase order type.voidsetDeliveryBlock(String deliveryBlock) Sets delivery block ID which is sent to ERP when creating an order.voidsetHeaderTextID(String arg) voidsetItemTextID(String arg) voidsetMergeIdenticalProducts(boolean mergeIdenticalProducts) Sets the mergeIdenticalProducts, which is a WCB setting.Methods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, clone, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValid, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Field Details
-
DEFAULT_TEXTID_HEADER
- See Also:
-
DEFAULT_TEXTID_ITEM
- See Also:
-
-
Constructor Details
-
TransactionConfigurationImpl
public TransactionConfigurationImpl()
-
-
Method Details
-
getCustomerPurchOrderType
Description copied from interface:TransactionConfigurationGets language dependent short ID of customer purchase order type. Also seeTransactionConfiguration.setCustomerPurchOrderType(String)- Specified by:
getCustomerPurchOrderTypein interfaceTransactionConfiguration- Returns:
- ID of purchase order type
-
setCustomerPurchOrderType
Description copied from interface:TransactionConfigurationSets language dependent short ID of customer purchase order type. This is sent to ERP when creating an order. See header->Purchase Order Data
Currently not used in CRM- Specified by:
setCustomerPurchOrderTypein interfaceTransactionConfiguration- Parameters:
customerPurchOrderType- customerPurchOrderType short ID
-
getDeliveryBlock
Description copied from interface:TransactionConfigurationGets delivery block ID. Also seeTransactionConfiguration.setDeliveryBlock(String)- Specified by:
getDeliveryBlockin interfaceTransactionConfiguration- Returns:
- delivery block ID
-
setDeliveryBlock
Description copied from interface:TransactionConfigurationSets delivery block ID which is sent to ERP when creating an order. Currently not used in CRM.
If a non-initial delivery block is maintained, orders need to be released in ERP before follow-up processes can start.- Specified by:
setDeliveryBlockin interfaceTransactionConfiguration- Parameters:
deliveryBlock- delivery block ID
-
getHeaderTextID
- Specified by:
getHeaderTextIDin interfaceTransactionConfiguration- Returns:
- the text ID under which header texts are stored in the backend
-
getItemTextID
- Specified by:
getItemTextIDin interfaceTransactionConfiguration- Returns:
- the text ID under which item texts are stored in the backend
-
setHeaderTextID
- Specified by:
setHeaderTextIDin interfaceTransactionConfiguration- Parameters:
arg- the text ID under which header texts are stored in the backend
-
setItemTextID
- Specified by:
setItemTextIDin interfaceTransactionConfiguration- Parameters:
arg- the text ID under which item texts are stored in the backend
-
getProcessType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProcessTypein interfaceSalesDocumentConfiguration- Returns:
- processType
-
getBackendService
- Throws:
BackendException
-
getLanguageIso
Description copied from interface:TransactionConfigurationReturns the ISO 639 language Code (2 chars) in lower case.- Specified by:
getLanguageIsoin interfaceTransactionConfiguration- Returns:
- isoLanguage
-
isMergeIdenticalProducts
public boolean isMergeIdenticalProducts()Description copied from interface:TransactionConfigurationReturns the property mergeIdenticalProducts, which is a WCB setting. True if identical products (e.g. same product-id, same GUID, same unit) shall be merged. This only applies to the Basket, but not to the Order.- Specified by:
isMergeIdenticalProductsin interfaceTransactionConfiguration- Returns:
- mergeIdenticalProducts
-
setMergeIdenticalProducts
public void setMergeIdenticalProducts(boolean mergeIdenticalProducts) Description copied from interface:TransactionConfigurationSets the mergeIdenticalProducts, which is a WCB setting. True if identical products (e.g. same product-id, same GUID, same unit) shall be merged- Specified by:
setMergeIdenticalProductsin interfaceTransactionConfiguration- Parameters:
mergeIdenticalProducts- iftrueproducts will be merged in basket
-
getSourceForNetValueWithoutFreight
Description copied from interface:TransactionConfigurationProvides information which source is used to determine the net value without freight (e.g. any subtotal)- Specified by:
getSourceForNetValueWithoutFreightin interfaceTransactionConfiguration- Returns:
- sourceForNetValueWithoutFreight source for net value without freight
-
getSourceForFreightItem
Description copied from interface:TransactionConfigurationProvides information which source is used to determine the freight value (e.g. any subtotal)- Specified by:
getSourceForFreightItemin interfaceTransactionConfiguration- Returns:
- sourceForFreightItem
-
getAllowedDeliveryTypes
public Map<String,String> getAllowedDeliveryTypes(boolean consideringWECCustomizing) throws CommunicationException Description copied from interface:TransactionConfigurationDelivery Types- CRM table crmc_ship_cond, valuehelp crm_ship_cond
- ERP table tvsb, valuehelp h_tvsb
- Specified by:
getAllowedDeliveryTypesin interfaceTransactionConfiguration- Parameters:
consideringWECCustomizing-- false = return all values from the corresponding backend customizing table
- true = restrict the values from the backend, to those which are explicitly allowed in the Webchannel Customizing
- Returns:
- a new Map with the allowed DeliverTypes and description
- Throws:
CommunicationException- in case backend-error
-