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:
Serializable
- Direct Known Subclasses:
OrderPromotionModel,ProductPromotionModel,RuleBasedPromotionModel
Generated model class for type AbstractPromotion first defined at extension promotions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationPromotionGroupPromotionsRelationdefining source attributePromotionGroupin extensionpromotions.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractPromotion.codeattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.descriptionattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.detailsURLattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.enabledattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.endDateattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.immutableKeyattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.nameattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.priorityattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.PromotionGroupattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.promotionTypeattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.restrictionsattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.startDateattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotion.titleattribute defined at extensionpromotions.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.AbstractPromotionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextAbstractPromotionModel(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(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
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theAbstractPromotion.codeattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.descriptionattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.detailsURLattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.enabledattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.endDateattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.immutableKeyattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.getName()Generated method - Getter of theAbstractPromotion.nameattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.nameattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.priorityattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.PromotionGroupattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.promotionTypeattribute defined at extensionpromotions.getPromotionType(Locale loc) Generated method - Getter of theAbstractPromotion.promotionTypeattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.restrictionsattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotion.startDateattribute defined at extensionpromotions.getTitle()Generated method - Getter of theAbstractPromotion.titleattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.codeattribute defined at extensionpromotions.voidsetDescription(String value) Generated method - Setter ofAbstractPromotion.descriptionattribute defined at extensionpromotions.voidsetDetailsURL(String value) Generated method - Setter ofAbstractPromotion.detailsURLattribute defined at extensionpromotions.voidsetEnabled(Boolean value) Generated method - Setter ofAbstractPromotion.enabledattribute defined at extensionpromotions.voidsetEndDate(Date value) Generated method - Setter ofAbstractPromotion.endDateattribute defined at extensionpromotions.voidsetImmutableKey(String value) Generated method - Setter ofAbstractPromotion.immutableKeyattribute defined at extensionpromotions.voidsetImmutableKeyHash(String value) Generated method - Setter ofAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.nameattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.nameattribute defined at extensionpromotions.voidsetPriority(Integer value) Generated method - Setter ofAbstractPromotion.priorityattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.PromotionGroupattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.restrictionsattribute defined at extensionpromotions.voidsetStartDate(Date value) Generated method - Setter ofAbstractPromotion.startDateattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotion.titleattribute defined at extensionpromotions.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_PROMOTIONGROUPPROMOTIONSRELATION
Generated relation code constant for relationPromotionGroupPromotionsRelationdefining source attributePromotionGroupin extensionpromotions.- See Also:
-
PROMOTIONTYPE
Generated constant - Attribute key ofAbstractPromotion.promotionTypeattribute defined at extensionpromotions.- See Also:
-
CODE
Generated constant - Attribute key ofAbstractPromotion.codeattribute defined at extensionpromotions.- See Also:
-
TITLE
Generated constant - Attribute key ofAbstractPromotion.titleattribute defined at extensionpromotions.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofAbstractPromotion.descriptionattribute defined at extensionpromotions.- See Also:
-
STARTDATE
Generated constant - Attribute key ofAbstractPromotion.startDateattribute defined at extensionpromotions.- See Also:
-
ENDDATE
Generated constant - Attribute key ofAbstractPromotion.endDateattribute defined at extensionpromotions.- See Also:
-
DETAILSURL
Generated constant - Attribute key ofAbstractPromotion.detailsURLattribute defined at extensionpromotions.- See Also:
-
RESTRICTIONS
Generated constant - Attribute key ofAbstractPromotion.restrictionsattribute defined at extensionpromotions.- See Also:
-
ENABLED
Generated constant - Attribute key ofAbstractPromotion.enabledattribute defined at extensionpromotions.- See Also:
-
PRIORITY
Generated constant - Attribute key ofAbstractPromotion.priorityattribute defined at extensionpromotions.- See Also:
-
IMMUTABLEKEYHASH
Generated constant - Attribute key ofAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.- See Also:
-
IMMUTABLEKEY
Generated constant - Attribute key ofAbstractPromotion.immutableKeyattribute defined at extensionpromotions.- See Also:
-
NAME
Generated constant - Attribute key ofAbstractPromotion.nameattribute defined at extensionpromotions.- See Also:
-
PROMOTIONGROUP
Generated constant - Attribute key ofAbstractPromotion.PromotionGroupattribute defined at extensionpromotions.- See Also:
-
-
Constructor Details
-
AbstractPromotionModel
public AbstractPromotionModel()Generated constructor - Default constructor for generic creation. -
AbstractPromotionModel
public AbstractPromotionModel(de.hybris.platform.servicelayer.model.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, 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 typeAbstractPromotionat extensionpromotions
-
AbstractPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractPromotionModel(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 typeAbstractPromotionat extensionpromotions_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCode
Generated method - Getter of theAbstractPromotion.codeattribute defined at extensionpromotions.- Returns:
- the code - Identifier for this promotion
-
getDescription
Generated method - Getter of theAbstractPromotion.descriptionattribute defined at extensionpromotions.- Returns:
- the description - Description of this promotion
-
getDetailsURL
Generated method - Getter of theAbstractPromotion.detailsURLattribute defined at extensionpromotions.- Returns:
- the detailsURL - URL to a content page with further details of this promotion
-
getEnabled
Generated method - Getter of theAbstractPromotion.enabledattribute defined at extensionpromotions.- Returns:
- the enabled - Flag to indicate if this promotion is enabled.
-
getEndDate
Generated method - Getter of theAbstractPromotion.endDateattribute defined at extensionpromotions.- Returns:
- the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
-
getImmutableKey
Generated method - Getter of theAbstractPromotion.immutableKeyattribute defined at extensionpromotions.- Returns:
- the immutableKey - The full immutable identifier for this promotion
-
getImmutableKeyHash
Generated method - Getter of theAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.- Returns:
- the immutableKeyHash - The HASH of the immutableKey
-
getName
Generated method - Getter of theAbstractPromotion.nameattribute defined at extensionpromotions.- Returns:
- the name - Displayable name for this promotion
-
getName
Generated method - Getter of theAbstractPromotion.nameattribute defined at extensionpromotions.- Parameters:
loc- the value localization key- Returns:
- the name - Displayable name for this promotion
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getPriority
Generated method - Getter of theAbstractPromotion.priorityattribute defined at extensionpromotions.- Returns:
- the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
-
getPromotionGroup
Generated method - Getter of theAbstractPromotion.PromotionGroupattribute defined at extensionpromotions.- Returns:
- the PromotionGroup
-
getPromotionType
Generated method - Getter of theAbstractPromotion.promotionTypeattribute defined at extensionpromotions.- Returns:
- the promotionType - The type of this promotion.
-
getPromotionType
Generated method - Getter of theAbstractPromotion.promotionTypeattribute defined at extensionpromotions.- Parameters:
loc- the value localization key- Returns:
- the promotionType - The type of this promotion.
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getRestrictions
@Accessor(qualifier="restrictions", type=GETTER) public Collection<AbstractPromotionRestrictionModel> getRestrictions()Generated method - Getter of theAbstractPromotion.restrictionsattribute 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
Generated method - Getter of theAbstractPromotion.startDateattribute defined at extensionpromotions.- Returns:
- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
getTitle
Generated method - Getter of theAbstractPromotion.titleattribute defined at extensionpromotions.- Returns:
- the title - Title for this promotion
-
setCode
Generated method - Setter ofAbstractPromotion.codeattribute defined at extensionpromotions.- Parameters:
value- the code - Identifier for this promotion
-
setDescription
Generated method - Setter ofAbstractPromotion.descriptionattribute defined at extensionpromotions.- Parameters:
value- the description - Description of this promotion
-
setDetailsURL
Generated method - Setter ofAbstractPromotion.detailsURLattribute defined at extensionpromotions.- Parameters:
value- the detailsURL - URL to a content page with further details of this promotion
-
setEnabled
Generated method - Setter ofAbstractPromotion.enabledattribute defined at extensionpromotions.- Parameters:
value- the enabled - Flag to indicate if this promotion is enabled.
-
setEndDate
Generated method - Setter ofAbstractPromotion.endDateattribute 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
Generated method - Setter ofAbstractPromotion.immutableKeyattribute defined at extensionpromotions.- Parameters:
value- the immutableKey - The full immutable identifier for this promotion
-
setImmutableKeyHash
Generated method - Setter ofAbstractPromotion.immutableKeyHashattribute defined at extensionpromotions.- Parameters:
value- the immutableKeyHash - The HASH of the immutableKey
-
setName
Generated method - Setter ofAbstractPromotion.nameattribute defined at extensionpromotions.- Parameters:
value- the name - Displayable name for this promotion
-
setName
Generated method - Setter ofAbstractPromotion.nameattribute defined at extensionpromotions.- Parameters:
value- the name - Displayable name for this promotionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setPriority
Generated method - Setter ofAbstractPromotion.priorityattribute 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.PromotionGroupattribute defined at extensionpromotions.- Parameters:
value- the PromotionGroup
-
setRestrictions
@Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(Collection<AbstractPromotionRestrictionModel> value) Generated method - Setter ofAbstractPromotion.restrictionsattribute defined at extensionpromotions.- Parameters:
value- the restrictions - Collection of restrictions that are applied to this promotion
-
setStartDate
Generated method - Setter ofAbstractPromotion.startDateattribute defined at extensionpromotions.- Parameters:
value- the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
-
setTitle
Generated method - Setter ofAbstractPromotion.titleattribute defined at extensionpromotions.- Parameters:
value- the title - Title for this promotion
-