Class SapProductAvailabilityBOImpl
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
-
- de.hybris.platform.sap.sapproductavailability.businessobject.impl.SapProductAvailabilityBOImpl
-
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,SapProductAvailabilityBO,java.io.Serializable,java.lang.Cloneable
public class SapProductAvailabilityBOImpl extends BusinessObjectBase implements SapProductAvailabilityBO
- See Also:
- Serialized Form
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description SapProductAvailabilityBOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SapProductAvailabilityBackendgetSapProductAvailabilityBackend()java.lang.StringreadPlant(ProductModel product, java.lang.String customerId)Returns the plant name given information about a product.java.lang.StringreadPlantForCustomerMaterial(java.lang.String material, java.lang.String customerId)Gets the plant from the customer material record.SapProductAvailabilityreadProductAvailability(ProductModel product, java.lang.String customerId, java.lang.String plant, java.lang.Long requestedQuantity)reads the current stock level for a product + future available quantities-
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
-
-
-
-
Method Detail
-
getSapProductAvailabilityBackend
public SapProductAvailabilityBackend getSapProductAvailabilityBackend() throws BackendException
- Returns:
- the sapProductAvailabilityBackend
- Throws:
BackendException
-
readProductAvailability
public SapProductAvailability readProductAvailability(ProductModel product, java.lang.String customerId, java.lang.String plant, java.lang.Long requestedQuantity)
Description copied from interface:SapProductAvailabilityBOreads the current stock level for a product + future available quantities- Specified by:
readProductAvailabilityin interfaceSapProductAvailabilityBO- Returns:
-
readPlantForCustomerMaterial
public java.lang.String readPlantForCustomerMaterial(java.lang.String material, java.lang.String customerId)Description copied from interface:SapProductAvailabilityBOGets the plant from the customer material record. Uses RFC BAPI_CUSTMATINFO_GETDETAILM.- Specified by:
readPlantForCustomerMaterialin interfaceSapProductAvailabilityBO- Returns:
- Plant
-
readPlant
public java.lang.String readPlant(ProductModel product, java.lang.String customerId)
Description copied from interface:SapProductAvailabilityBOReturns the plant name given information about a product.- Specified by:
readPlantin interfaceSapProductAvailabilityBO- Returns:
- String plant
-
-