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,java.io.Serializable,java.lang.Cloneable
public class TransactionConfigurationImpl extends BusinessObjectBase implements TransactionConfiguration
The Shop object contains all kind of settings for the application.The shop object use
ShopBackendto comunicate with the backend.
For further details see the interfaceShopData- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_TEXTID_HEADERprotected static java.lang.StringDEFAULT_TEXTID_ITEM-
Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKey
-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
Fields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.businessobject.interf.TransactionConfiguration
DESCRIPTION, ID, SUBTOTAL1, SUBTOTAL2, SUBTOTAL3, SUBTOTAL4, SUBTOTAL5, SUBTOTAL6
-
-
Constructor Summary
Constructors Constructor Description TransactionConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getAllowedDeliveryTypes(boolean consideringWECCustomizing)Delivery Types CRM table crmc_ship_cond, valuehelp crm_ship_cond ERP table tvsb, valuehelp h_tvsbprotected TransactionConfigurationBackendgetBackendService()java.lang.StringgetCustomerPurchOrderType()Gets language dependent short ID of customer purchase order type.java.lang.StringgetDeliveryBlock()Gets delivery block ID.java.lang.StringgetHeaderTextID()java.lang.StringgetItemTextID()java.lang.StringgetLanguageIso()Returns the ISO 639 language Code (2 chars) in lower case.java.lang.StringgetProcessType()Deprecated.java.lang.StringgetSourceForFreightItem()Provides information which source is used to determine the freight value (e.g.java.lang.StringgetSourceForNetValueWithoutFreight()Provides information which source is used to determine the net value without freight (e.g.booleanisMergeIdenticalProducts()Returns the property mergeIdenticalProducts, which is a WCB setting.voidsetCustomerPurchOrderType(java.lang.String customerPurchOrderType)Sets language dependent short ID of customer purchase order type.voidsetDeliveryBlock(java.lang.String deliveryBlock)Sets delivery block ID which is sent to ERP when creating an order.voidsetHeaderTextID(java.lang.String arg)voidsetItemTextID(java.lang.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, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods 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, setValid
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
-
-
-
Field Detail
-
DEFAULT_TEXTID_HEADER
protected static final java.lang.String DEFAULT_TEXTID_HEADER
- See Also:
- Constant Field Values
-
DEFAULT_TEXTID_ITEM
protected static final java.lang.String DEFAULT_TEXTID_ITEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCustomerPurchOrderType
public java.lang.String 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
public void setCustomerPurchOrderType(java.lang.String customerPurchOrderType)
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
public java.lang.String getDeliveryBlock()
Description copied from interface:TransactionConfigurationGets delivery block ID. Also seeTransactionConfiguration.setDeliveryBlock(String)- Specified by:
getDeliveryBlockin interfaceTransactionConfiguration- Returns:
- delivery block ID
-
setDeliveryBlock
public void setDeliveryBlock(java.lang.String deliveryBlock)
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
public java.lang.String getHeaderTextID()
- Specified by:
getHeaderTextIDin interfaceTransactionConfiguration- Returns:
- the text ID under which header texts are stored in the backend
-
getItemTextID
public java.lang.String getItemTextID()
- Specified by:
getItemTextIDin interfaceTransactionConfiguration- Returns:
- the text ID under which item texts are stored in the backend
-
setHeaderTextID
public void setHeaderTextID(java.lang.String arg)
- Specified by:
setHeaderTextIDin interfaceTransactionConfiguration- Parameters:
arg- the text ID under which header texts are stored in the backend
-
setItemTextID
public void setItemTextID(java.lang.String arg)
- Specified by:
setItemTextIDin interfaceTransactionConfiguration- Parameters:
arg- the text ID under which item texts are stored in the backend
-
getProcessType
@Deprecated public java.lang.String getProcessType()
Deprecated.- Specified by:
getProcessTypein interfaceSalesDocumentConfiguration- Returns:
- processType
-
getBackendService
protected TransactionConfigurationBackend getBackendService() throws BackendException
- Throws:
BackendException
-
getLanguageIso
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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 java.util.Map<java.lang.String,java.lang.String> getAllowedDeliveryTypes(boolean consideringWECCustomizing) throws CommunicationExceptionDescription 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
-
-