public abstract class AbstractPromotionRestriction extends GeneratedAbstractPromotionRestriction
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractPromotionRestriction.RestrictionResult
Result values from the evaluate methods.
|
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_INITIAL_ATTRIBUTES, DESCRIPTIONPATTERN, 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 |
|---|
AbstractPromotionRestriction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildDataUniqueKey(SessionContext ctx,
java.lang.StringBuilder builder)
Build a unique data driven key.
|
protected AbstractPromotionRestriction |
deepClone(SessionContext ctx)
Deep clone this restriction instance.
|
protected void |
deepCloneAttributes(SessionContext ctx,
java.util.Map values)
Called to deep clone attributes of this instance
The values map contains all the attributes defined on this instance.
|
abstract AbstractPromotionRestriction.RestrictionResult |
evaluate(SessionContext ctx,
java.util.Collection<Product> products,
java.util.Date date,
AbstractOrder order)
Evaluate this restriction.
|
AbstractPromotionRestriction.RestrictionResult |
evaluate(SessionContext ctx,
Product product,
java.util.Date date,
AbstractOrder order)
Evaluate this restriction.
|
java.util.Map |
getAllRestrictionType(SessionContext ctx)
Get restrictionType for all supported languages.
|
protected java.lang.Object[] |
getDescriptionPatternArguments(SessionContext ctx) |
java.lang.String |
getRenderedDescription(SessionContext ctx)
Generated method - Getter of the
AbstractPromotionRestriction.renderedDescription attribute. |
java.lang.String |
getRestrictionType(SessionContext ctx)
Return the type name for this restriction instance.
|
java.lang.String |
toString()
Returns the
String representation of this item. |
getAllDescriptionPattern, getAllDescriptionPattern, getAllRestrictionType, getDefaultAttributeModes, 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, getImplementation, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic abstract AbstractPromotionRestriction.RestrictionResult evaluate(SessionContext ctx, java.util.Collection<Product> products, java.util.Date date, AbstractOrder order)
AbstractPromotionRestriction.RestrictionResult.ADJUSTED_PRODUCTS.ctx - 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 evaluationpublic final AbstractPromotionRestriction.RestrictionResult evaluate(SessionContext ctx, Product product, java.util.Date date, AbstractOrder order)
AbstractPromotionRestriction.RestrictionResult.ADJUSTED_PRODUCTS.ctx - The hybris contextproduct - The Product instance to test against.date - The date to use in any evaluationsorder - The order (optional)AbstractPromotionRestriction.RestrictionResult indicating the result of the evaluationpublic java.lang.String toString()
ItemString representation of this item. This is by default the representation of the primary
key of this item.public java.lang.String getRestrictionType(SessionContext ctx)
getRestrictionType in class GeneratedAbstractPromotionRestrictionctx - The hybris contextpublic java.util.Map getAllRestrictionType(SessionContext ctx)
getAllRestrictionType in class GeneratedAbstractPromotionRestrictionctx - The hybris contextpublic java.lang.String getRenderedDescription(SessionContext ctx)
GeneratedAbstractPromotionRestrictionAbstractPromotionRestriction.renderedDescription attribute.getRenderedDescription in class GeneratedAbstractPromotionRestrictionprotected java.lang.Object[] getDescriptionPatternArguments(SessionContext ctx)
protected void buildDataUniqueKey(SessionContext ctx, java.lang.StringBuilder builder)
ctx - The hybris contextbuilder - A StringBuilder used to build up the immutable keyprotected AbstractPromotionRestriction deepClone(SessionContext ctx)
ctx - The hybris contextprotected void deepCloneAttributes(SessionContext ctx, java.util.Map values)
ctx - The hybris contextvalues - The map to write intoCopyright © 2018 SAP SE. All Rights Reserved.