public class ShippingGroupEditHandler extends ListEditHandler
ListEditHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
protected ShippingGroupManager |
mShippingGroupManager |
mCollectionPropertyName, mSortPropertyName, mSubPropertyHandlers, mThrowExceptionsForCollectionChanges, STATE_CLONETOORIGINAL_MAP, STATE_ORIGINALTOCLONE_MAPmFulfillmentMessageSender, mKeyPropertyName, mOrderFulfillmentTools, mPropertiesToCopyOnUpdate, STATE_ADD_ITEMS, STATE_DELETE_ITEMS, STATE_UPDATE_ITEMSSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
ShippingGroupEditHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItem(CloneEditState pCloneEditState,
AddItem pAddItem)
Overrides the base impl to use the shipping group container interfaces to add the
new shipping group.
|
protected void |
copyShippingGroupPricingModels(CloneEditState pCloneEditState)
Copies the pricing models from the original to clone shipping groups.
|
Modification |
createShippingGroupAddedModification(ShippingGroup pShippingGroup,
Order pOrder)
Creates a Modification object that represents a shipping group add.
|
Modification |
createShippingGroupUpdateModification(java.lang.String pShippingGroupId)
Creates a Modification object that represents a shipping group update.
|
protected void |
deleteItem(CloneEditState pCloneEditState,
DeleteItem pDeleteItem)
Overrides the base impl to use the shipping group container interfaces to remove the shipping group
|
java.util.List |
generateModifications(CloneEditState pCloneEditState)
Generates the list of Modification objects for shipping groups using the
AddItem and
UpdateItem objects. |
ShippingGroupManager |
getShippingGroupManager()
Return the ShippingGroupManager
|
void |
initializeCloneEditState(CloneEditState pCloneEditState)
Extends base behavior to copy the pricing models from the original to clone
shipping groups.
|
void |
setShippingGroupManager(ShippingGroupManager pShippingGroupManager) |
protected void |
updateItem(CloneEditState pCloneEditState,
UpdateItem pUpdateItem)
Extends updateItem to detect changes in the amountinfo object
|
applyChanges, detectChanges, detectChangesToCollection, detectDeletes, executeSubPropertyHandlerInitialization, executeSubPropertyHandlerUpdates, executeSubPropertyHandlerValidation, findCounterpartObject, getCloneToOriginalMap, getCollection, getCollectionPropertyName, getMatchingCloneKey, getMatchingOriginalKey, getOriginalToCloneMap, getSortedCollection, getSortPropertyName, getSubPropertyHandlers, handleMissingOriginalObject, isSubPropertyHandlers, isThrowExceptionsForCollectionChanges, mapOriginalToClone, mapOriginalToCloneCollection, saveOriginalToCloneObjectMappings, setCollectionPropertyName, setSortPropertyName, setSubPropertyHandlers, setThrowExceptionsForCollectionChanges, sortCollection, validateCloneOrder, validateCollection, validateCollection, validateCollectionSizeaddAddItem, addDeleteItem, addStateData, addUpdateItem, adjustCloneCommerceIdReferences, adjustOriginalCommerceIdReferences, cloneOrder, copyPricingModels, createAddItem, createDeleteItem, createUpdateItem, getAddItems, getCloneEditManager, getDeleteItems, getFulfillmentMessageSender, getKeyForObject, getKeyPropertyName, getObjectType, getOrderFulfillmentTools, getPropertiesToCopy, getPropertiesToCopyOnUpdate, getStateData, getStateMap, getUpdateItems, initializeReconciliationProcess, isAddedItem, parseConfigString, processAddItems, processDeleteItems, processUpdateItems, reconcileObjectProperties, sendFulfillmentNotifications, sendMessage, setCloneEditManager, setFulfillmentMessageSender, setKeyPropertyName, setOrderFulfillmentTools, setPropertiesToCopyOnUpdateaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
protected ShippingGroupManager mShippingGroupManager
public ShippingGroupManager getShippingGroupManager()
public void setShippingGroupManager(ShippingGroupManager pShippingGroupManager)
protected void addItem(CloneEditState pCloneEditState, AddItem pAddItem) throws CommerceException
addItem in class ListEditHandlerpCloneEditState - pAddItem - CommerceExceptionShippingGroupContainer.addShippingGroup(ShippingGroup, int)protected void deleteItem(CloneEditState pCloneEditState, DeleteItem pDeleteItem) throws CommerceException
deleteItem in class CollectionEditHandlerpCloneEditState - pDeleteItem - the DeleteItem objectCommerceExceptionShippingGroupManager.removeShippingGroupFromOrder(Order, String),
ShippingGroupContainer.removeShippingGroup(String)protected void updateItem(CloneEditState pCloneEditState, UpdateItem pUpdateItem) throws CommerceException
updateItem in class CloneEditHandlerCommerceExceptionCloneEditManager.detectUpdatesInFinalAmountInfo(Object, Object, String)public java.util.List generateModifications(CloneEditState pCloneEditState)
AddItem and
UpdateItem objects.
One Modification is created for each newly added payment group and each updated payment group. No Modification is sent for an updated payment group if priceInfo was the only property updated.
generateModifications in class CloneEditHandlerpCloneEditState - public Modification createShippingGroupAddedModification(ShippingGroup pShippingGroup, Order pOrder)
pShippingGroup - pOrder - public Modification createShippingGroupUpdateModification(java.lang.String pShippingGroupId)
pShippingGroupId - public void initializeCloneEditState(CloneEditState pCloneEditState) throws CommerceException
initializeCloneEditState in class CollectionEditHandlerCommerceExceptioncopyShippingGroupPricingModels(CloneEditState)protected void copyShippingGroupPricingModels(CloneEditState pCloneEditState) throws CommerceException
pCloneEditState - CommerceExceptionCloneEditHandler.copyPricingModels(Object, Object, String)