Class ProductReferencesComponentModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.cms2.model.contents.CMSItemModel
-
- de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel
-
- de.hybris.platform.cms2.model.contents.components.SimpleCMSComponentModel
-
- de.hybris.platform.acceleratorcms.model.components.ProductReferencesComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SimpleSuggestionComponentModel
public class ProductReferencesComponentModel extends SimpleCMSComponentModel
Generated model class for type ProductReferencesComponent first defined at extension acceleratorcms.It represents product references component, that is the component that displays configured references to the specified product.
- 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.StringDISPLAYPRODUCTPRICESGenerated constant - Attribute key ofProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.static java.lang.StringDISPLAYPRODUCTTITLESGenerated constant - Attribute key ofProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.static java.lang.StringMAXIMUMNUMBERPRODUCTSGenerated constant - Attribute key ofProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.static java.lang.StringPRODUCTREFERENCETYPESGenerated constant - Attribute key ofProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms.static java.lang.StringTITLEGenerated constant - Attribute key ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.-
Fields inherited from class de.hybris.platform.cms2.model.contents.components.SimpleCMSComponentModel
_ELEMENTSFORCONTAINER, CONTAINERS
-
Fields inherited from class de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel
_ELEMENTSFORSLOT, ACTIONS, CONTAINER, ONLYONERESTRICTIONMUSTAPPLY, RESTRICTED, RESTRICTIONS, SLOTS, TYPE, TYPECODE, VISIBLE
-
Fields inherited from class de.hybris.platform.cms2.model.contents.CMSItemModel
CATALOGVERSION, NAME, UID
-
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 ProductReferencesComponentModel()Generated constructor - Default constructor for generic creation.ProductReferencesComponentModel(CatalogVersionModel _catalogVersion, ItemModel _owner, java.lang.String _uid)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductReferencesComponentModel(CatalogVersionModel _catalogVersion, java.lang.String _uid)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductReferencesComponentModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetMaximumNumberProducts()Generated method - Getter of theProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.java.util.List<ProductReferenceTypeEnum>getProductReferenceTypes()Generated method - Getter of theProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms.java.lang.StringgetTitle()Generated method - Getter of theProductReferencesComponent.titleattribute defined at extensionacceleratorcms.java.lang.StringgetTitle(java.util.Locale loc)Generated method - Getter of theProductReferencesComponent.titleattribute defined at extensionacceleratorcms.booleanisDisplayProductPrices()Generated method - Getter of theProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.booleanisDisplayProductTitles()Generated method - Getter of theProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.voidsetDisplayProductPrices(boolean value)Generated method - Setter ofProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.voidsetDisplayProductTitles(boolean value)Generated method - Setter ofProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.voidsetMaximumNumberProducts(java.lang.Integer value)Generated method - Setter ofProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.voidsetProductReferenceTypes(java.util.List<ProductReferenceTypeEnum> value)Generated method - Setter ofProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value)Generated method - Setter ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.-
Methods inherited from class de.hybris.platform.cms2.model.contents.components.SimpleCMSComponentModel
getContainers, setContainers
-
Methods inherited from class de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel
getActions, getRestrictions, getSlots, getType, getType, getTypeCode, getVisible, isContainer, isOnlyOneRestrictionMustApply, isRestricted, setActions, setOnlyOneRestrictionMustApply, setRestrictions, setSlots, setVisible
-
Methods inherited from class de.hybris.platform.cms2.model.contents.CMSItemModel
getCatalogVersion, getName, getUid, setCatalogVersion, setName, setUid
-
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
-
TITLE
public static final java.lang.String TITLE
Generated constant - Attribute key ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
PRODUCTREFERENCETYPES
public static final java.lang.String PRODUCTREFERENCETYPES
Generated constant - Attribute key ofProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
MAXIMUMNUMBERPRODUCTS
public static final java.lang.String MAXIMUMNUMBERPRODUCTS
Generated constant - Attribute key ofProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
DISPLAYPRODUCTTITLES
public static final java.lang.String DISPLAYPRODUCTTITLES
Generated constant - Attribute key ofProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
DISPLAYPRODUCTPRICES
public static final java.lang.String DISPLAYPRODUCTPRICES
Generated constant - Attribute key ofProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductReferencesComponentModel
public ProductReferencesComponentModel()
Generated constructor - Default constructor for generic creation.
-
ProductReferencesComponentModel
public ProductReferencesComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ProductReferencesComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductReferencesComponentModel(CatalogVersionModel _catalogVersion, java.lang.String _uid)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 typeCMSItemat extensioncms2_uid- initial attribute declared by typeCMSItemat extensioncms2
-
ProductReferencesComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductReferencesComponentModel(CatalogVersionModel _catalogVersion, ItemModel _owner, java.lang.String _uid)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 typeCMSItemat extensioncms2_owner- initial attribute declared by typeItemat extensioncore_uid- initial attribute declared by typeCMSItemat extensioncms2
-
-
Method Detail
-
getMaximumNumberProducts
@Accessor(qualifier="maximumNumberProducts", type=GETTER) public java.lang.Integer getMaximumNumberProducts()
Generated method - Getter of theProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.- Returns:
- the maximumNumberProducts - Maximum number of the product references that are displayed in the component.
-
getProductReferenceTypes
@Accessor(qualifier="productReferenceTypes", type=GETTER) public java.util.List<ProductReferenceTypeEnum> getProductReferenceTypes()
Generated method - Getter of theProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productReferenceTypes - Product reference type that is displayed in this component.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()
Generated method - Getter of theProductReferencesComponent.titleattribute defined at extensionacceleratorcms.- Returns:
- the title - Title of the component.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle(java.util.Locale loc)
Generated method - Getter of theProductReferencesComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
loc- the value localization key- Returns:
- the title - Title of the component.
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
isDisplayProductPrices
@Accessor(qualifier="displayProductPrices", type=GETTER) public boolean isDisplayProductPrices()
Generated method - Getter of theProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.- Returns:
- the displayProductPrices - Determines if product prices are shown.
-
isDisplayProductTitles
@Accessor(qualifier="displayProductTitles", type=GETTER) public boolean isDisplayProductTitles()
Generated method - Getter of theProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.- Returns:
- the displayProductTitles - Determines if product titles are shown.
-
setDisplayProductPrices
@Accessor(qualifier="displayProductPrices", type=SETTER) public void setDisplayProductPrices(boolean value)
Generated method - Setter ofProductReferencesComponent.displayProductPricesattribute defined at extensionacceleratorcms.- Parameters:
value- the displayProductPrices - Determines if product prices are shown.
-
setDisplayProductTitles
@Accessor(qualifier="displayProductTitles", type=SETTER) public void setDisplayProductTitles(boolean value)
Generated method - Setter ofProductReferencesComponent.displayProductTitlesattribute defined at extensionacceleratorcms.- Parameters:
value- the displayProductTitles - Determines if product titles are shown.
-
setMaximumNumberProducts
@Accessor(qualifier="maximumNumberProducts", type=SETTER) public void setMaximumNumberProducts(java.lang.Integer value)
Generated method - Setter ofProductReferencesComponent.maximumNumberProductsattribute defined at extensionacceleratorcms.- Parameters:
value- the maximumNumberProducts - Maximum number of the product references that are displayed in the component.
-
setProductReferenceTypes
@Accessor(qualifier="productReferenceTypes", type=SETTER) public void setProductReferenceTypes(java.util.List<ProductReferenceTypeEnum> value)
Generated method - Setter ofProductReferencesComponent.productReferenceTypesattribute defined at extensionacceleratorcms.- Parameters:
value- the productReferenceTypes - Product reference type that is displayed in this component.
-
setTitle
@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value)
Generated method - Setter ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - Title of the component.
-
setTitle
@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofProductReferencesComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - Title of the component.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-