public class PromotionProductRestriction extends GeneratedPromotionProductRestriction
AbstractPromotionRestriction.RestrictionResultGenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_INITIAL_ATTRIBUTES, PRODUCTSDESCRIPTIONPATTERN, PROMOTION, RENDEREDDESCRIPTION, RESTRICTIONTYPELANGUAGE_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 |
|---|
PromotionProductRestriction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildDataUniqueKey(SessionContext ctx,
StringBuilder builder)
Build a unique data driven key.
|
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.
|
AbstractPromotionRestriction.RestrictionResult |
evaluate(SessionContext ctx,
Collection<Product> products,
Date date,
AbstractOrder order)
Evaluate this restriction.
|
protected Object[] |
getDescriptionPatternArguments(SessionContext ctx) |
String |
getProductNames(SessionContext ctx) |
protected boolean |
isRestrictedProduct(Collection<Product> restrictedProducts,
Product testProduct)
Test if a product is in the collection of restricted products.
|
getDefaultAttributeModes, getProducts, getProducts, setProducts, setProductsdeepClone, evaluate, getAllRestrictionType, getRenderedDescription, getRestrictionType, toStringgetAllDescriptionPattern, getAllDescriptionPattern, getAllRestrictionType, getDescriptionPattern, getDescriptionPattern, getPromotion, getPromotion, getRenderedDescription, getRestrictionType, setAllDescriptionPattern, setAllDescriptionPattern, setDescriptionPattern, setDescriptionPattern, setPromotion, setPromotioncreateItem, getInitialProperties, 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, useTA, writeReplacegetImplementation, setTenantpublic AbstractPromotionRestriction.RestrictionResult evaluate(SessionContext ctx, Collection<Product> products, Date date, AbstractOrder order)
AbstractPromotionRestrictionAbstractPromotionRestriction.RestrictionResult.ADJUSTED_PRODUCTS.evaluate in class AbstractPromotionRestrictionctx - The hybris contextproducts - The collection of Product instancesdate - The date to use in any evaluationsorder - The order (optional)AbstractPromotionRestriction.RestrictionResult indicating the result of the evaluationprotected boolean isRestrictedProduct(Collection<Product> restrictedProducts, Product testProduct)
protected void buildDataUniqueKey(SessionContext ctx, StringBuilder builder)
AbstractPromotionRestrictionbuildDataUniqueKey in class AbstractPromotionRestrictionctx - The hybris contextbuilder - A StringBuilder used to build up the immutable keyprotected Object[] getDescriptionPatternArguments(SessionContext ctx)
getDescriptionPatternArguments in class AbstractPromotionRestrictionpublic String getProductNames(SessionContext ctx)
protected void deepCloneAttributes(SessionContext ctx, Map values)
deepCloneAttributes in class AbstractPromotionRestrictionctx - The hybris contextvalues - The map to write intoCopyright © 2017 SAP SE. All Rights Reserved.