Class AbstractBundleRuleModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.configurablebundleservices.model.AbstractBundleRuleModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ChangeProductPriceBundleRuleModel,DisableProductBundleRuleModel
public class AbstractBundleRuleModel extends ItemModel
Generated model class for type AbstractBundleRule first defined at extension configurablebundleservices.- 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_TYPECODEGenerated model type code constant.static java.lang.StringCATALOGVERSIONGenerated constant - Attribute key ofAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices.static java.lang.StringCONDITIONALPRODUCTSGenerated constant - Attribute key ofAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices.static java.lang.StringIDGenerated constant - Attribute key ofAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices.static java.lang.StringNAMEGenerated constant - Attribute key ofAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.static java.lang.StringRULETYPEGenerated constant - Attribute key ofAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.static java.lang.StringTARGETPRODUCTSGenerated constant - Attribute key ofAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices.-
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 AbstractBundleRuleModel()Generated constructor - Default constructor for generic creation.AbstractBundleRuleModel(CatalogVersionModel _catalogVersion)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersAbstractBundleRuleModel(CatalogVersionModel _catalogVersion, java.lang.String _id, 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 parametersAbstractBundleRuleModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogVersionModelgetCatalogVersion()Generated method - Getter of theAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices.java.util.Collection<ProductModel>getConditionalProducts()Generated method - Getter of theAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices.java.lang.StringgetId()Generated method - Getter of theAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices.java.lang.StringgetName()Generated method - Getter of theAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.BundleRuleTypeEnumgetRuleType()Generated method - Getter of theAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.java.util.Collection<ProductModel>getTargetProducts()Generated method - Getter of theAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices.voidsetCatalogVersion(CatalogVersionModel value)Generated method - Initial setter ofAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices.voidsetConditionalProducts(java.util.Collection<ProductModel> value)Generated method - Setter ofAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices.voidsetId(java.lang.String value)Generated method - Initial setter ofAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices.voidsetName(java.lang.String value)Generated method - Setter ofAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.voidsetRuleType(BundleRuleTypeEnum value)Generated method - Setter ofAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.voidsetTargetProducts(java.util.Collection<ProductModel> value)Generated method - Setter ofAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices.-
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
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Generated constant - Attribute key ofAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
RULETYPE
public static final java.lang.String RULETYPE
Generated constant - Attribute key ofAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
CONDITIONALPRODUCTS
public static final java.lang.String CONDITIONALPRODUCTS
Generated constant - Attribute key ofAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
TARGETPRODUCTS
public static final java.lang.String TARGETPRODUCTS
Generated constant - Attribute key ofAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBundleRuleModel
public AbstractBundleRuleModel()
Generated constructor - Default constructor for generic creation.
-
AbstractBundleRuleModel
public AbstractBundleRuleModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
AbstractBundleRuleModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractBundleRuleModel(CatalogVersionModel _catalogVersion)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:
_catalogVersion- initial attribute declared by typeAbstractBundleRuleat extensionconfigurablebundleservices
-
AbstractBundleRuleModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractBundleRuleModel(CatalogVersionModel _catalogVersion, java.lang.String _id, 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:
_catalogVersion- initial attribute declared by typeAbstractBundleRuleat extensionconfigurablebundleservices_id- initial attribute declared by typeAbstractBundleRuleat extensionconfigurablebundleservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCatalogVersion
@Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
Generated method - Getter of theAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices.- Returns:
- the catalogVersion - Catalog Version
-
getConditionalProducts
@Accessor(qualifier="conditionalProducts", type=GETTER) public java.util.Collection<ProductModel> getConditionalProducts()
Generated method - Getter of theAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the conditionalProducts
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices.- Returns:
- the id - Identifier
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.- Returns:
- the name - Name of the bundle rule
-
getRuleType
@Accessor(qualifier="ruleType", type=GETTER) public BundleRuleTypeEnum getRuleType()
Generated method - Getter of theAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.- Returns:
- the ruleType
-
getTargetProducts
@Accessor(qualifier="targetProducts", type=GETTER) public java.util.Collection<ProductModel> getTargetProducts()
Generated method - Getter of theAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the targetProducts
-
setCatalogVersion
@Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
Generated method - Initial setter ofAbstractBundleRule.catalogVersionattribute defined at extensionconfigurablebundleservices. Can only be used at creation of model - before first save.- Parameters:
value- the catalogVersion - Catalog Version
-
setConditionalProducts
@Accessor(qualifier="conditionalProducts", type=SETTER) public void setConditionalProducts(java.util.Collection<ProductModel> value)
Generated method - Setter ofAbstractBundleRule.conditionalProductsattribute defined at extensionconfigurablebundleservices.- Parameters:
value- the conditionalProducts
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
Generated method - Initial setter ofAbstractBundleRule.idattribute defined at extensionconfigurablebundleservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofAbstractBundleRule.nameattribute defined at extensionconfigurablebundleservices.- Parameters:
value- the name - Name of the bundle rule
-
setRuleType
@Accessor(qualifier="ruleType", type=SETTER) public void setRuleType(BundleRuleTypeEnum value)
Generated method - Setter ofAbstractBundleRule.ruleTypeattribute defined at extensionconfigurablebundleservices.- Parameters:
value- the ruleType
-
setTargetProducts
@Accessor(qualifier="targetProducts", type=SETTER) public void setTargetProducts(java.util.Collection<ProductModel> value)
Generated method - Setter ofAbstractBundleRule.targetProductsattribute defined at extensionconfigurablebundleservices.- Parameters:
value- the targetProducts
-
-