public class PromotionOrderChangeDeliveryModeAction extends GeneratedPromotionOrderChangeDeliveryModeAction
true in the project.properties. This is valid for 4.4 or later versions.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_INITIAL_ATTRIBUTES, DELIVERYMODEGUID, MARKEDAPPLIED, PROMOTIONRESULT, PROMOTIONRESULTHANDLERLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
PromotionOrderChangeDeliveryModeAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(SessionContext ctx)
Apply the action to the order.
|
protected void |
deepCloneAttributes(SessionContext ctx,
Map values)
Called to deep clone attributes of this instance
The values map contains all the attributes defined on this instance.
|
protected String |
deliveryModeToString(SessionContext ctx,
DeliveryMode deliveryMode) |
double |
getValue(SessionContext ctx)
Get the total value of this action.
|
boolean |
isAppliedToOrder(SessionContext ctx)
Test if this action is applied to the order.
|
boolean |
undo(SessionContext ctx)
Unapply the action from the order.
|
protected void |
updateDeliveryCost(AbstractOrder order,
DeliveryMode deliveryMode) |
getDefaultAttributeModes, getDeliveryMode, getDeliveryMode, setDeliveryMode, setDeliveryModeapply, deepClone, getGuid, insertFirstGlobalDiscountValue, insertFirstOrderEntryDiscountValue, isAppliedToOrder, undocreateItem, getGuid, getPromotionResult, getPromotionResult, isMarkedApplied, isMarkedApplied, isMarkedAppliedAsPrimitive, isMarkedAppliedAsPrimitive, setGuid, setGuid, setMarkedApplied, setMarkedApplied, setMarkedApplied, setMarkedApplied, setPromotionResult, setPromotionResultgetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic PromotionOrderChangeDeliveryModeAction()
public boolean apply(SessionContext ctx)
AbstractPromotionActionAbstractOrder.recalculate() to update the totals as this disposes
of all applied discounts and the promotions engine is unable to intercept the recalculate call to reinstate these.apply in class AbstractPromotionActionctx - The hybris contextpublic boolean undo(SessionContext ctx)
AbstractPromotionActionundo in class AbstractPromotionActionctx - The hybris contextpublic double getValue(SessionContext ctx)
AbstractPromotionActiongetValue in class AbstractPromotionActionctx - The hybris contextpublic boolean isAppliedToOrder(SessionContext ctx)
AbstractPromotionActionisAppliedToOrder in class AbstractPromotionActionctx - The hybris contextprotected void deepCloneAttributes(SessionContext ctx, Map values)
deepCloneAttributes in class AbstractPromotionActionctx - The hybris contextvalues - The map to write intoprotected String deliveryModeToString(SessionContext ctx, DeliveryMode deliveryMode)
protected void updateDeliveryCost(AbstractOrder order, DeliveryMode deliveryMode)
Copyright © 2017 SAP SE. All Rights Reserved.