Class GeneratedAbstractPromotion
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.promotions.jalo.GeneratedAbstractPromotion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
AbstractPromotion
public abstract class GeneratedAbstractPromotion extends GenericItem
Generated class for typeAbstractPromotion
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CODE
Qualifier of theAbstractPromotion.code
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
DESCRIPTION
Qualifier of theAbstractPromotion.description
attributestatic java.lang.String
DETAILSURL
Qualifier of theAbstractPromotion.detailsURL
attributestatic java.lang.String
ENABLED
Qualifier of theAbstractPromotion.enabled
attributestatic java.lang.String
ENDDATE
Qualifier of theAbstractPromotion.endDate
attributestatic java.lang.String
IMMUTABLEKEY
Qualifier of theAbstractPromotion.immutableKey
attributestatic java.lang.String
IMMUTABLEKEYHASH
Qualifier of theAbstractPromotion.immutableKeyHash
attributestatic java.lang.String
PRIORITY
Qualifier of theAbstractPromotion.priority
attributestatic java.lang.String
PROMOTIONGROUP
Qualifier of theAbstractPromotion.PromotionGroup
attributeprotected static BidirectionalOneToManyHandler<GeneratedAbstractPromotion>
PROMOTIONGROUPHANDLER
BidirectionalOneToManyHandler
for handling 1:n PROMOTIONGROUP's relation attributes from 'one' side.static java.lang.String
PROMOTIONTYPE
Qualifier of theAbstractPromotion.promotionType
attributestatic java.lang.String
RESTRICTIONS
Qualifier of theAbstractPromotion.restrictions
attributestatic java.lang.String
STARTDATE
Qualifier of theAbstractPromotion.startDate
attributestatic java.lang.String
TITLE
Qualifier of theAbstractPromotion.title
attribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedAbstractPromotion()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.java.util.Map<Language,java.lang.String>
getAllPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute.abstract java.util.Map<Language,java.lang.String>
getAllPromotionType(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.promotionType
attribute.java.lang.String
getCode()
Generated method - Getter of theAbstractPromotion.code
attribute.java.lang.String
getCode(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.code
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
java.lang.String
getDescription()
Generated method - Getter of theAbstractPromotion.description
attribute.java.lang.String
getDescription(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.description
attribute.java.lang.String
getDetailsURL()
Generated method - Getter of theAbstractPromotion.detailsURL
attribute.java.lang.String
getDetailsURL(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.detailsURL
attribute.java.util.Date
getEndDate()
Generated method - Getter of theAbstractPromotion.endDate
attribute.java.util.Date
getEndDate(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.endDate
attribute.java.lang.String
getImmutableKey()
Generated method - Getter of theAbstractPromotion.immutableKey
attribute.java.lang.String
getImmutableKey(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.immutableKey
attribute.java.lang.String
getImmutableKeyHash()
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute.java.lang.String
getImmutableKeyHash(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute.java.lang.Integer
getPriority()
Generated method - Getter of theAbstractPromotion.priority
attribute.java.lang.Integer
getPriority(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.priority
attribute.int
getPriorityAsPrimitive()
Generated method - Getter of theAbstractPromotion.priority
attribute.int
getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.priority
attribute.PromotionGroup
getPromotionGroup()
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute.PromotionGroup
getPromotionGroup(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute.java.lang.String
getPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute.abstract java.lang.String
getPromotionType(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.promotionType
attribute.java.util.Collection<AbstractPromotionRestriction>
getRestrictions()
Generated method - Getter of theAbstractPromotion.restrictions
attribute.abstract java.util.Collection<AbstractPromotionRestriction>
getRestrictions(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.restrictions
attribute.java.util.Date
getStartDate()
Generated method - Getter of theAbstractPromotion.startDate
attribute.java.util.Date
getStartDate(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.startDate
attribute.java.lang.String
getTitle()
Generated method - Getter of theAbstractPromotion.title
attribute.java.lang.String
getTitle(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.title
attribute.java.lang.Boolean
isEnabled()
Generated method - Getter of theAbstractPromotion.enabled
attribute.java.lang.Boolean
isEnabled(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.enabled
attribute.boolean
isEnabledAsPrimitive()
Generated method - Getter of theAbstractPromotion.enabled
attribute.boolean
isEnabledAsPrimitive(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.enabled
attribute.void
setCode(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.code
attribute.void
setCode(java.lang.String value)
Generated method - Setter of theAbstractPromotion.code
attribute.void
setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.description
attribute.void
setDescription(java.lang.String value)
Generated method - Setter of theAbstractPromotion.description
attribute.void
setDetailsURL(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.detailsURL
attribute.void
setDetailsURL(java.lang.String value)
Generated method - Setter of theAbstractPromotion.detailsURL
attribute.void
setEnabled(boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.void
setEnabled(SessionContext ctx, boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.void
setEnabled(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.void
setEnabled(java.lang.Boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.void
setEndDate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAbstractPromotion.endDate
attribute.void
setEndDate(java.util.Date value)
Generated method - Setter of theAbstractPromotion.endDate
attribute.void
setImmutableKey(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKey
attribute.void
setImmutableKey(java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKey
attribute.void
setImmutableKeyHash(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKeyHash
attribute.void
setImmutableKeyHash(java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKeyHash
attribute.void
setPriority(int value)
Generated method - Setter of theAbstractPromotion.priority
attribute.void
setPriority(SessionContext ctx, int value)
Generated method - Setter of theAbstractPromotion.priority
attribute.void
setPriority(SessionContext ctx, java.lang.Integer value)
Generated method - Setter of theAbstractPromotion.priority
attribute.void
setPriority(java.lang.Integer value)
Generated method - Setter of theAbstractPromotion.priority
attribute.void
setPromotionGroup(SessionContext ctx, PromotionGroup value)
Generated method - Setter of theAbstractPromotion.PromotionGroup
attribute.void
setPromotionGroup(PromotionGroup value)
Generated method - Setter of theAbstractPromotion.PromotionGroup
attribute.abstract void
setRestrictions(SessionContext ctx, java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of theAbstractPromotion.restrictions
attribute.void
setRestrictions(java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of theAbstractPromotion.restrictions
attribute.void
setStartDate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAbstractPromotion.startDate
attribute.void
setStartDate(java.util.Date value)
Generated method - Setter of theAbstractPromotion.startDate
attribute.void
setTitle(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.title
attribute.void
setTitle(java.lang.String value)
Generated method - Setter of theAbstractPromotion.title
attribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
PROMOTIONTYPE
public static final java.lang.String PROMOTIONTYPE
Qualifier of theAbstractPromotion.promotionType
attribute- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Qualifier of theAbstractPromotion.code
attribute- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
Qualifier of theAbstractPromotion.title
attribute- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Qualifier of theAbstractPromotion.description
attribute- See Also:
- Constant Field Values
-
STARTDATE
public static final java.lang.String STARTDATE
Qualifier of theAbstractPromotion.startDate
attribute- See Also:
- Constant Field Values
-
ENDDATE
public static final java.lang.String ENDDATE
Qualifier of theAbstractPromotion.endDate
attribute- See Also:
- Constant Field Values
-
DETAILSURL
public static final java.lang.String DETAILSURL
Qualifier of theAbstractPromotion.detailsURL
attribute- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Qualifier of theAbstractPromotion.restrictions
attribute- See Also:
- Constant Field Values
-
ENABLED
public static final java.lang.String ENABLED
Qualifier of theAbstractPromotion.enabled
attribute- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
Qualifier of theAbstractPromotion.priority
attribute- See Also:
- Constant Field Values
-
IMMUTABLEKEYHASH
public static final java.lang.String IMMUTABLEKEYHASH
Qualifier of theAbstractPromotion.immutableKeyHash
attribute- See Also:
- Constant Field Values
-
IMMUTABLEKEY
public static final java.lang.String IMMUTABLEKEY
Qualifier of theAbstractPromotion.immutableKey
attribute- See Also:
- Constant Field Values
-
PROMOTIONGROUP
public static final java.lang.String PROMOTIONGROUP
Qualifier of theAbstractPromotion.PromotionGroup
attribute- See Also:
- Constant Field Values
-
PROMOTIONGROUPHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedAbstractPromotion> PROMOTIONGROUPHANDLER
BidirectionalOneToManyHandler
for handling 1:n PROMOTIONGROUP's relation attributes from 'one' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classItem
-
getCode
public java.lang.String getCode(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.code
attribute.- Returns:
- the code - Identifier for this promotion
-
getCode
public java.lang.String getCode()
Generated method - Getter of theAbstractPromotion.code
attribute.- Returns:
- the code - Identifier for this promotion
-
setCode
public void setCode(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.code
attribute.- Parameters:
value
- the code - Identifier for this promotion
-
setCode
public void setCode(java.lang.String value)
Generated method - Setter of theAbstractPromotion.code
attribute.- Parameters:
value
- the code - Identifier for this promotion
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:Item
Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.newInstance(Map)
.In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap)
too.
Sn example:public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) ); // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes( SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret = super.getNonInitialAttributes( ctx, allAttributes ); // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
- Overrides:
createItem
in classGenericItem
- Parameters:
ctx
- the current session context which this item is created withintype
- the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )- Returns:
- the new item instance
- Throws:
JaloBusinessException
- indicates an error during creation - any changes will be rollbacked
-
getDescription
public java.lang.String getDescription(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.description
attribute.- Returns:
- the description - Description of this promotion
-
getDescription
public java.lang.String getDescription()
Generated method - Getter of theAbstractPromotion.description
attribute.- Returns:
- the description - Description of this promotion
-
setDescription
public void setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.description
attribute.- Parameters:
value
- the description - Description of this promotion
-
setDescription
public void setDescription(java.lang.String value)
Generated method - Setter of theAbstractPromotion.description
attribute.- Parameters:
value
- the description - Description of this promotion
-
getDetailsURL
public java.lang.String getDetailsURL(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.detailsURL
attribute.- Returns:
- the detailsURL - URL to a content page with further details of this promotion
-
getDetailsURL
public java.lang.String getDetailsURL()
Generated method - Getter of theAbstractPromotion.detailsURL
attribute.- Returns:
- the detailsURL - URL to a content page with further details of this promotion
-
setDetailsURL
public void setDetailsURL(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.detailsURL
attribute.- Parameters:
value
- the detailsURL - URL to a content page with further details of this promotion
-
setDetailsURL
public void setDetailsURL(java.lang.String value)
Generated method - Setter of theAbstractPromotion.detailsURL
attribute.- Parameters:
value
- the detailsURL - URL to a content page with further details of this promotion
-
isEnabled
public java.lang.Boolean isEnabled(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.enabled
attribute.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
isEnabled
public java.lang.Boolean isEnabled()
Generated method - Getter of theAbstractPromotion.enabled
attribute.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
isEnabledAsPrimitive
public boolean isEnabledAsPrimitive(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.enabled
attribute.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
isEnabledAsPrimitive
public boolean isEnabledAsPrimitive()
Generated method - Getter of theAbstractPromotion.enabled
attribute.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
setEnabled
public void setEnabled(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.- Parameters:
value
- the enabled - Flag to indicate if this promotion is enabled.
-
setEnabled
public void setEnabled(java.lang.Boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.- Parameters:
value
- the enabled - Flag to indicate if this promotion is enabled.
-
setEnabled
public void setEnabled(SessionContext ctx, boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.- Parameters:
value
- the enabled - Flag to indicate if this promotion is enabled.
-
setEnabled
public void setEnabled(boolean value)
Generated method - Setter of theAbstractPromotion.enabled
attribute.- Parameters:
value
- the enabled - Flag to indicate if this promotion is enabled.
-
getEndDate
public java.util.Date getEndDate(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.endDate
attribute.- Returns:
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
getEndDate
public java.util.Date getEndDate()
Generated method - Getter of theAbstractPromotion.endDate
attribute.- Returns:
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
setEndDate
public void setEndDate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAbstractPromotion.endDate
attribute.- Parameters:
value
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
setEndDate
public void setEndDate(java.util.Date value)
Generated method - Setter of theAbstractPromotion.endDate
attribute.- Parameters:
value
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
getImmutableKey
public java.lang.String getImmutableKey(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.immutableKey
attribute.- Returns:
- the immutableKey - The full immutable identifier for this promotion
-
getImmutableKey
public java.lang.String getImmutableKey()
Generated method - Getter of theAbstractPromotion.immutableKey
attribute.- Returns:
- the immutableKey - The full immutable identifier for this promotion
-
setImmutableKey
public void setImmutableKey(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKey
attribute.- Parameters:
value
- the immutableKey - The full immutable identifier for this promotion
-
setImmutableKey
public void setImmutableKey(java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKey
attribute.- Parameters:
value
- the immutableKey - The full immutable identifier for this promotion
-
getImmutableKeyHash
public java.lang.String getImmutableKeyHash(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute.- Returns:
- the immutableKeyHash - The HASH of the immutableKey
-
getImmutableKeyHash
public java.lang.String getImmutableKeyHash()
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute.- Returns:
- the immutableKeyHash - The HASH of the immutableKey
-
setImmutableKeyHash
public void setImmutableKeyHash(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKeyHash
attribute.- Parameters:
value
- the immutableKeyHash - The HASH of the immutableKey
-
setImmutableKeyHash
public void setImmutableKeyHash(java.lang.String value)
Generated method - Setter of theAbstractPromotion.immutableKeyHash
attribute.- Parameters:
value
- the immutableKeyHash - The HASH of the immutableKey
-
getPriority
public java.lang.Integer getPriority(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.priority
attribute.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPriority
public java.lang.Integer getPriority()
Generated method - Getter of theAbstractPromotion.priority
attribute.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPriorityAsPrimitive
public int getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.priority
attribute.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPriorityAsPrimitive
public int getPriorityAsPrimitive()
Generated method - Getter of theAbstractPromotion.priority
attribute.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
setPriority
public void setPriority(SessionContext ctx, java.lang.Integer value)
Generated method - Setter of theAbstractPromotion.priority
attribute.- Parameters:
value
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
setPriority
public void setPriority(java.lang.Integer value)
Generated method - Setter of theAbstractPromotion.priority
attribute.- Parameters:
value
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
setPriority
public void setPriority(SessionContext ctx, int value)
Generated method - Setter of theAbstractPromotion.priority
attribute.- Parameters:
value
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
setPriority
public void setPriority(int value)
Generated method - Setter of theAbstractPromotion.priority
attribute.- Parameters:
value
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPromotionGroup
public PromotionGroup getPromotionGroup(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute.- Returns:
- the PromotionGroup
-
getPromotionGroup
public PromotionGroup getPromotionGroup()
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute.- Returns:
- the PromotionGroup
-
setPromotionGroup
public void setPromotionGroup(SessionContext ctx, PromotionGroup value)
Generated method - Setter of theAbstractPromotion.PromotionGroup
attribute.- Parameters:
value
- the PromotionGroup
-
setPromotionGroup
public void setPromotionGroup(PromotionGroup value)
Generated method - Setter of theAbstractPromotion.PromotionGroup
attribute.- Parameters:
value
- the PromotionGroup
-
getPromotionType
public abstract java.lang.String getPromotionType(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.promotionType
attribute.- Returns:
- the promotionType - The type of this promotion.
-
getPromotionType
public java.lang.String getPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute.- Returns:
- the promotionType - The type of this promotion.
-
getAllPromotionType
public abstract java.util.Map<Language,java.lang.String> getAllPromotionType(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.promotionType
attribute.- Returns:
- the localized promotionType - The type of this promotion.
-
getAllPromotionType
public java.util.Map<Language,java.lang.String> getAllPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute.- Returns:
- the localized promotionType - The type of this promotion.
-
getRestrictions
public abstract java.util.Collection<AbstractPromotionRestriction> getRestrictions(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.restrictions
attribute.- Returns:
- the restrictions - Collection of restrictions that are applied to this promotion
-
getRestrictions
public java.util.Collection<AbstractPromotionRestriction> getRestrictions()
Generated method - Getter of theAbstractPromotion.restrictions
attribute.- Returns:
- the restrictions - Collection of restrictions that are applied to this promotion
-
setRestrictions
public abstract void setRestrictions(SessionContext ctx, java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of theAbstractPromotion.restrictions
attribute.- Parameters:
value
- the restrictions - Collection of restrictions that are applied to this promotion
-
setRestrictions
public void setRestrictions(java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of theAbstractPromotion.restrictions
attribute.- Parameters:
value
- the restrictions - Collection of restrictions that are applied to this promotion
-
getStartDate
public java.util.Date getStartDate(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.startDate
attribute.- Returns:
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
getStartDate
public java.util.Date getStartDate()
Generated method - Getter of theAbstractPromotion.startDate
attribute.- Returns:
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
setStartDate
public void setStartDate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAbstractPromotion.startDate
attribute.- Parameters:
value
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
setStartDate
public void setStartDate(java.util.Date value)
Generated method - Setter of theAbstractPromotion.startDate
attribute.- Parameters:
value
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
getTitle
public java.lang.String getTitle(SessionContext ctx)
Generated method - Getter of theAbstractPromotion.title
attribute.- Returns:
- the title - Title for this promotion
-
getTitle
public java.lang.String getTitle()
Generated method - Getter of theAbstractPromotion.title
attribute.- Returns:
- the title - Title for this promotion
-
setTitle
public void setTitle(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractPromotion.title
attribute.- Parameters:
value
- the title - Title for this promotion
-
setTitle
public void setTitle(java.lang.String value)
Generated method - Setter of theAbstractPromotion.title
attribute.- Parameters:
value
- the title - Title for this promotion
-
-