Class AbstractPromotionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.promotions.model.AbstractPromotionModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OrderPromotionModel
,ProductPromotionModel
,RuleBasedPromotionModel
public class AbstractPromotionModel extends ItemModel
Generated model class for type AbstractPromotion first defined at extension promotions.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_PROMOTIONGROUPPROMOTIONSRELATION
Generated relation code constant for relationPromotionGroupPromotionsRelation
defining source attributePromotionGroup
in extensionpromotions
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
CODE
Generated constant - Attribute key ofAbstractPromotion.code
attribute defined at extensionpromotions
.static java.lang.String
DESCRIPTION
Generated constant - Attribute key ofAbstractPromotion.description
attribute defined at extensionpromotions
.static java.lang.String
DETAILSURL
Generated constant - Attribute key ofAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.static java.lang.String
ENABLED
Generated constant - Attribute key ofAbstractPromotion.enabled
attribute defined at extensionpromotions
.static java.lang.String
ENDDATE
Generated constant - Attribute key ofAbstractPromotion.endDate
attribute defined at extensionpromotions
.static java.lang.String
IMMUTABLEKEY
Generated constant - Attribute key ofAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.static java.lang.String
IMMUTABLEKEYHASH
Generated constant - Attribute key ofAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.static java.lang.String
NAME
Generated constant - Attribute key ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.static java.lang.String
PRIORITY
Generated constant - Attribute key ofAbstractPromotion.priority
attribute defined at extensionpromotions
.static java.lang.String
PROMOTIONGROUP
Generated constant - Attribute key ofAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.static java.lang.String
PROMOTIONTYPE
Generated constant - Attribute key ofAbstractPromotion.promotionType
attribute defined at extensionpromotions
.static java.lang.String
RESTRICTIONS
Generated constant - Attribute key ofAbstractPromotion.restrictions
attribute defined at extensionpromotions
.static java.lang.String
STARTDATE
Generated constant - Attribute key ofAbstractPromotion.startDate
attribute defined at extensionpromotions
.static java.lang.String
TITLE
Generated constant - Attribute key ofAbstractPromotion.title
attribute defined at extensionpromotions
.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description AbstractPromotionModel()
Generated constructor - Default constructor for generic creation.AbstractPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextAbstractPromotionModel(java.lang.String _code)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersAbstractPromotionModel(java.lang.String _code, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCode()
Generated method - Getter of theAbstractPromotion.code
attribute defined at extensionpromotions
.java.lang.String
getDescription()
Generated method - Getter of theAbstractPromotion.description
attribute defined at extensionpromotions
.java.lang.String
getDetailsURL()
Generated method - Getter of theAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.java.lang.Boolean
getEnabled()
Generated method - Getter of theAbstractPromotion.enabled
attribute defined at extensionpromotions
.java.util.Date
getEndDate()
Generated method - Getter of theAbstractPromotion.endDate
attribute defined at extensionpromotions
.java.lang.String
getImmutableKey()
Generated method - Getter of theAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.java.lang.String
getImmutableKeyHash()
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.java.lang.String
getName()
Generated method - Getter of theAbstractPromotion.name
attribute defined at extensionacceleratorservices
.java.lang.String
getName(java.util.Locale loc)
Generated method - Getter of theAbstractPromotion.name
attribute defined at extensionacceleratorservices
.java.lang.Integer
getPriority()
Generated method - Getter of theAbstractPromotion.priority
attribute defined at extensionpromotions
.PromotionGroupModel
getPromotionGroup()
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.java.lang.String
getPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute defined at extensionpromotions
.java.lang.String
getPromotionType(java.util.Locale loc)
Generated method - Getter of theAbstractPromotion.promotionType
attribute defined at extensionpromotions
.java.util.Collection<AbstractPromotionRestrictionModel>
getRestrictions()
Generated method - Getter of theAbstractPromotion.restrictions
attribute defined at extensionpromotions
.java.util.Date
getStartDate()
Generated method - Getter of theAbstractPromotion.startDate
attribute defined at extensionpromotions
.java.lang.String
getTitle()
Generated method - Getter of theAbstractPromotion.title
attribute defined at extensionpromotions
.void
setCode(java.lang.String value)
Generated method - Setter ofAbstractPromotion.code
attribute defined at extensionpromotions
.void
setDescription(java.lang.String value)
Generated method - Setter ofAbstractPromotion.description
attribute defined at extensionpromotions
.void
setDetailsURL(java.lang.String value)
Generated method - Setter ofAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.void
setEnabled(java.lang.Boolean value)
Generated method - Setter ofAbstractPromotion.enabled
attribute defined at extensionpromotions
.void
setEndDate(java.util.Date value)
Generated method - Setter ofAbstractPromotion.endDate
attribute defined at extensionpromotions
.void
setImmutableKey(java.lang.String value)
Generated method - Setter ofAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.void
setImmutableKeyHash(java.lang.String value)
Generated method - Setter ofAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.void
setName(java.lang.String value)
Generated method - Setter ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.void
setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.void
setPriority(java.lang.Integer value)
Generated method - Setter ofAbstractPromotion.priority
attribute defined at extensionpromotions
.void
setPromotionGroup(PromotionGroupModel value)
Generated method - Setter ofAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.void
setRestrictions(java.util.Collection<AbstractPromotionRestrictionModel> value)
Generated method - Setter ofAbstractPromotion.restrictions
attribute defined at extensionpromotions
.void
setStartDate(java.util.Date value)
Generated method - Setter ofAbstractPromotion.startDate
attribute defined at extensionpromotions
.void
setTitle(java.lang.String value)
Generated method - Setter ofAbstractPromotion.title
attribute defined at extensionpromotions
.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_PROMOTIONGROUPPROMOTIONSRELATION
public static final java.lang.String _PROMOTIONGROUPPROMOTIONSRELATION
Generated relation code constant for relationPromotionGroupPromotionsRelation
defining source attributePromotionGroup
in extensionpromotions
.- See Also:
- Constant Field Values
-
PROMOTIONTYPE
public static final java.lang.String PROMOTIONTYPE
Generated constant - Attribute key ofAbstractPromotion.promotionType
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofAbstractPromotion.code
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
Generated constant - Attribute key ofAbstractPromotion.title
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofAbstractPromotion.description
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
STARTDATE
public static final java.lang.String STARTDATE
Generated constant - Attribute key ofAbstractPromotion.startDate
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
ENDDATE
public static final java.lang.String ENDDATE
Generated constant - Attribute key ofAbstractPromotion.endDate
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
DETAILSURL
public static final java.lang.String DETAILSURL
Generated constant - Attribute key ofAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Generated constant - Attribute key ofAbstractPromotion.restrictions
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
ENABLED
public static final java.lang.String ENABLED
Generated constant - Attribute key ofAbstractPromotion.enabled
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
Generated constant - Attribute key ofAbstractPromotion.priority
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
IMMUTABLEKEYHASH
public static final java.lang.String IMMUTABLEKEYHASH
Generated constant - Attribute key ofAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
IMMUTABLEKEY
public static final java.lang.String IMMUTABLEKEY
Generated constant - Attribute key ofAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
PROMOTIONGROUP
public static final java.lang.String PROMOTIONGROUP
Generated constant - Attribute key ofAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractPromotionModel
public AbstractPromotionModel()
Generated constructor - Default constructor for generic creation.
-
AbstractPromotionModel
public AbstractPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
AbstractPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractPromotionModel(java.lang.String _code)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code
- initial attribute declared by typeAbstractPromotion
at extensionpromotions
-
AbstractPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractPromotionModel(java.lang.String _code, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code
- initial attribute declared by typeAbstractPromotion
at extensionpromotions
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theAbstractPromotion.code
attribute defined at extensionpromotions
.- Returns:
- the code - Identifier for this promotion
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theAbstractPromotion.description
attribute defined at extensionpromotions
.- Returns:
- the description - Description of this promotion
-
getDetailsURL
@Accessor(qualifier="detailsURL", type=GETTER) public java.lang.String getDetailsURL()
Generated method - Getter of theAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.- Returns:
- the detailsURL - URL to a content page with further details of this promotion
-
getEnabled
@Accessor(qualifier="enabled", type=GETTER) public java.lang.Boolean getEnabled()
Generated method - Getter of theAbstractPromotion.enabled
attribute defined at extensionpromotions
.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
getEndDate
@Accessor(qualifier="endDate", type=GETTER) public java.util.Date getEndDate()
Generated method - Getter of theAbstractPromotion.endDate
attribute defined at extensionpromotions
.- Returns:
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
getImmutableKey
@Accessor(qualifier="immutableKey", type=GETTER) public java.lang.String getImmutableKey()
Generated method - Getter of theAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.- Returns:
- the immutableKey - The full immutable identifier for this promotion
-
getImmutableKeyHash
@Accessor(qualifier="immutableKeyHash", type=GETTER) public java.lang.String getImmutableKeyHash()
Generated method - Getter of theAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.- Returns:
- the immutableKeyHash - The HASH of the immutableKey
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theAbstractPromotion.name
attribute defined at extensionacceleratorservices
.- Returns:
- the name - Displayable name for this promotion
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theAbstractPromotion.name
attribute defined at extensionacceleratorservices
.- Parameters:
loc
- the value localization key- Returns:
- the name - Displayable name for this promotion
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getPriority
@Accessor(qualifier="priority", type=GETTER) public java.lang.Integer getPriority()
Generated method - Getter of theAbstractPromotion.priority
attribute defined at extensionpromotions
.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPromotionGroup
@Accessor(qualifier="PromotionGroup", type=GETTER) public PromotionGroupModel getPromotionGroup()
Generated method - Getter of theAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.- Returns:
- the PromotionGroup
-
getPromotionType
@Accessor(qualifier="promotionType", type=GETTER) public java.lang.String getPromotionType()
Generated method - Getter of theAbstractPromotion.promotionType
attribute defined at extensionpromotions
.- Returns:
- the promotionType - The type of this promotion.
-
getPromotionType
@Accessor(qualifier="promotionType", type=GETTER) public java.lang.String getPromotionType(java.util.Locale loc)
Generated method - Getter of theAbstractPromotion.promotionType
attribute defined at extensionpromotions
.- Parameters:
loc
- the value localization key- Returns:
- the promotionType - The type of this promotion.
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getRestrictions
@Accessor(qualifier="restrictions", type=GETTER) public java.util.Collection<AbstractPromotionRestrictionModel> getRestrictions()
Generated method - Getter of theAbstractPromotion.restrictions
attribute defined at extensionpromotions
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the restrictions - Collection of restrictions that are applied to this promotion
-
getStartDate
@Accessor(qualifier="startDate", type=GETTER) public java.util.Date getStartDate()
Generated method - Getter of theAbstractPromotion.startDate
attribute defined at extensionpromotions
.- Returns:
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()
Generated method - Getter of theAbstractPromotion.title
attribute defined at extensionpromotions
.- Returns:
- the title - Title for this promotion
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofAbstractPromotion.code
attribute defined at extensionpromotions
.- Parameters:
value
- the code - Identifier for this promotion
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofAbstractPromotion.description
attribute defined at extensionpromotions
.- Parameters:
value
- the description - Description of this promotion
-
setDetailsURL
@Accessor(qualifier="detailsURL", type=SETTER) public void setDetailsURL(java.lang.String value)
Generated method - Setter ofAbstractPromotion.detailsURL
attribute defined at extensionpromotions
.- Parameters:
value
- the detailsURL - URL to a content page with further details of this promotion
-
setEnabled
@Accessor(qualifier="enabled", type=SETTER) public void setEnabled(java.lang.Boolean value)
Generated method - Setter ofAbstractPromotion.enabled
attribute defined at extensionpromotions
.- Parameters:
value
- the enabled - Flag to indicate if this promotion is enabled.
-
setEndDate
@Accessor(qualifier="endDate", type=SETTER) public void setEndDate(java.util.Date value)
Generated method - Setter ofAbstractPromotion.endDate
attribute defined at extensionpromotions
.- Parameters:
value
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
setImmutableKey
@Accessor(qualifier="immutableKey", type=SETTER) public void setImmutableKey(java.lang.String value)
Generated method - Setter ofAbstractPromotion.immutableKey
attribute defined at extensionpromotions
.- Parameters:
value
- the immutableKey - The full immutable identifier for this promotion
-
setImmutableKeyHash
@Accessor(qualifier="immutableKeyHash", type=SETTER) public void setImmutableKeyHash(java.lang.String value)
Generated method - Setter ofAbstractPromotion.immutableKeyHash
attribute defined at extensionpromotions
.- Parameters:
value
- the immutableKeyHash - The HASH of the immutableKey
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the name - Displayable name for this promotion
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofAbstractPromotion.name
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the name - Displayable name for this promotionloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setPriority
@Accessor(qualifier="priority", type=SETTER) public void setPriority(java.lang.Integer value)
Generated method - Setter ofAbstractPromotion.priority
attribute defined at extensionpromotions
.- Parameters:
value
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
setPromotionGroup
@Accessor(qualifier="PromotionGroup", type=SETTER) public void setPromotionGroup(PromotionGroupModel value)
Generated method - Setter ofAbstractPromotion.PromotionGroup
attribute defined at extensionpromotions
.- Parameters:
value
- the PromotionGroup
-
setRestrictions
@Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(java.util.Collection<AbstractPromotionRestrictionModel> value)
Generated method - Setter ofAbstractPromotion.restrictions
attribute defined at extensionpromotions
.- Parameters:
value
- the restrictions - Collection of restrictions that are applied to this promotion
-
setStartDate
@Accessor(qualifier="startDate", type=SETTER) public void setStartDate(java.util.Date value)
Generated method - Setter ofAbstractPromotion.startDate
attribute defined at extensionpromotions
.- Parameters:
value
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
-