public class PromotionOrderEntryAdjustAction extends GeneratedPromotionOrderEntryAdjustAction
GeneratedPromotionOrderEntryAdjustAction.getOrderEntryQuantity(de.hybris.platform.jalo.SessionContext) quantity of product
GeneratedPromotionOrderEntryAdjustAction.getOrderEntryProduct(de.hybris.platform.jalo.SessionContext) then this action will fail to apply. This can happen if the product quantity is split
across multiple order entries.| Modifier and Type | Class and Description |
|---|---|
protected static class |
PromotionOrderEntryAdjustAction.OrderEntryAndDiscountValue |
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionAMOUNT, DEFAULT_INITIAL_ATTRIBUTES, ORDERENTRYNUMBER, ORDERENTRYPRODUCT, ORDERENTRYQUANTITYGUID, 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 |
|---|
PromotionOrderEntryAdjustAction() |
| 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 AbstractOrderEntry |
findOrderEntry(AbstractOrder order,
SessionContext ctx,
Integer orderEntryNumber) |
protected static DiscountValue |
findOrderEntryDiscountValue(SessionContext ctx,
AbstractOrderEntry orderEntry,
String discountValueCode) |
protected static PromotionOrderEntryAdjustAction.OrderEntryAndDiscountValue |
findOrderEntryDiscountValue(SessionContext ctx,
AbstractOrder order,
String discountValueCode) |
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.
|
getAmount, getAmount, getAmountAsPrimitive, getAmountAsPrimitive, getDefaultAttributeModes, getOrderEntryNumber, getOrderEntryNumber, getOrderEntryNumberAsPrimitive, getOrderEntryNumberAsPrimitive, getOrderEntryProduct, getOrderEntryProduct, getOrderEntryQuantity, getOrderEntryQuantity, getOrderEntryQuantityAsPrimitive, getOrderEntryQuantityAsPrimitive, setAmount, setAmount, setAmount, setAmount, setOrderEntryNumber, setOrderEntryNumber, setOrderEntryNumber, setOrderEntryNumber, setOrderEntryProduct, setOrderEntryProduct, setOrderEntryQuantity, setOrderEntryQuantity, setOrderEntryQuantity, setOrderEntryQuantityapply, 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 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 contextprotected AbstractOrderEntry findOrderEntry(AbstractOrder order, SessionContext ctx, Integer orderEntryNumber)
public boolean undo(SessionContext ctx)
AbstractPromotionActionundo in class AbstractPromotionActionctx - The hybris contextpublic boolean isAppliedToOrder(SessionContext ctx)
AbstractPromotionActionisAppliedToOrder in class AbstractPromotionActionctx - The hybris contextpublic double getValue(SessionContext ctx)
AbstractPromotionActiongetValue in class AbstractPromotionActionctx - The hybris contextprotected void deepCloneAttributes(SessionContext ctx, Map values)
deepCloneAttributes in class AbstractPromotionActionctx - The hybris contextvalues - The map to write intoprotected static PromotionOrderEntryAdjustAction.OrderEntryAndDiscountValue findOrderEntryDiscountValue(SessionContext ctx, AbstractOrder order, String discountValueCode)
protected static DiscountValue findOrderEntryDiscountValue(SessionContext ctx, AbstractOrderEntry orderEntry, String discountValueCode)
Copyright © 2017 SAP SE. All Rights Reserved.