public class ChangeInventoryAvailabilityBasePartCmdImpl extends AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl implements ChangeInventoryAvailabilityPartCmd
Constructor and Description |
---|
ChangeInventoryAvailabilityBasePartCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | change(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List alistControlParameters)
Overrides AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl.change(Object, Object, List) and does the following: Calls parseInventoryAvailabilityIdentifier(Object) to resolve the catalog entry ID, online store ID and physical store ID of the InventoryAvailability noun. Calls readInventoryConfiguration() to retrieve the inventory configuration corresponding to the catalog entry ID, online store ID and physical store ID. Calls updateMemoryCache(InventoryAvailabilityMemoryCacheKey, List, Invcnf) to update the in-memory cache if in-memory caching is enabled as per the inventory configuration. Calls AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl.change(Object, Object, List) to update the database cache if database caching is enabled as per the inventory configuration.
|
protected java.lang.String | getCatalogEntryId()
Returns the catalog entry ID resolved by parseInventoryAvailabilityIdentifier(Object).
|
protected java.lang.String | getOnlineStoreId()
Returns the online store ID resolved by parseInventoryAvailabilityIdentifier(Object).
|
protected java.lang.String | getPhysicalStoreId()
Returns the physical store ID resolved by parseInventoryAvailabilityIdentifier(Object).
|
protected void | parseInventoryAvailabilityIdentifier(java.lang.Object aNoun)
Resolves the catalog entry ID, online store ID and physical store ID of the InventoryAvailability noun.
|
protected Invcnf | readInventoryConfiguration()
Returns the inventory configuration corresponding to the catalog entry ID, online store ID and physical store ID resolved by parseInventoryAvailabilityIdentifier(Object).
|
protected void | updateMemoryCache(InventoryAvailabilityMemoryCacheKey aCacheKey, java.util.List alistNouns, Invcnf aInventoryConfiguration)
Updates the in-memory cache by calling MemoryCacheHelper.updateMemoryCache(InventoryAvailabilityMemoryCacheKey, List, Invcnf) .
|
void | validate()
Validate the noun parts based on the actions requested on the noun part Check if the corresponding physical entities exist in the physical store with the help of the configured mediators
|
public ChangeInventoryAvailabilityBasePartCmdImpl()
public void validate() throws AbstractApplicationException
protected java.lang.String getCatalogEntryId()
protected java.lang.String getOnlineStoreId()
protected java.lang.String getPhysicalStoreId()
protected void change(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List alistControlParameters) throws AbstractApplicationException
protected void parseInventoryAvailabilityIdentifier(java.lang.Object aNoun) throws AbstractApplicationException
protected Invcnf readInventoryConfiguration() throws DataMediatorException
protected void updateMemoryCache(InventoryAvailabilityMemoryCacheKey aCacheKey, java.util.List alistNouns, Invcnf aInventoryConfiguration)