public class ProductReferencesComponentModel extends SimpleCMSComponentModel
It represents product references component, that is the component that displays configured references to the specified product.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
DISPLAYPRODUCTPRICES
Generated constant - Attribute key of
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms. |
static String |
DISPLAYPRODUCTTITLES
Generated constant - Attribute key of
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms. |
static String |
MAXIMUMNUMBERPRODUCTS
Generated constant - Attribute key of
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms. |
static String |
PRODUCTREFERENCETYPES
Generated constant - Attribute key of
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms. |
static String |
TITLE
Generated constant - Attribute key of
ProductReferencesComponent.title attribute defined at extension acceleratorcms. |
_ELEMENTSFORCONTAINER, CONTAINERS_ELEMENTSFORSLOT, ACTIONS, CONTAINER, ONLYONERESTRICTIONMUSTAPPLY, RESTRICTED, RESTRICTIONS, SLOTS, TYPE, TYPECODE, VISIBLECATALOGVERSION, NAME, UID_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
ProductReferencesComponentModel()
Generated constructor - Default constructor for generic creation.
|
ProductReferencesComponentModel(CatalogVersionModel _catalogVersion,
ItemModel _owner,
String _uid)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ProductReferencesComponentModel(CatalogVersionModel _catalogVersion,
String _uid)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ProductReferencesComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getMaximumNumberProducts()
Generated method - Getter of the
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms. |
List<ProductReferenceTypeEnum> |
getProductReferenceTypes()
Generated method - Getter of the
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms. |
String |
getTitle()
Generated method - Getter of the
ProductReferencesComponent.title attribute defined at extension acceleratorcms. |
String |
getTitle(Locale loc)
Generated method - Getter of the
ProductReferencesComponent.title attribute defined at extension acceleratorcms. |
boolean |
isDisplayProductPrices()
Generated method - Getter of the
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms. |
boolean |
isDisplayProductTitles()
Generated method - Getter of the
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms. |
void |
setDisplayProductPrices(boolean value)
Generated method - Setter of
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms. |
void |
setDisplayProductTitles(boolean value)
Generated method - Setter of
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms. |
void |
setMaximumNumberProducts(Integer value)
Generated method - Setter of
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms. |
void |
setProductReferenceTypes(List<ProductReferenceTypeEnum> value)
Generated method - Setter of
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms. |
void |
setTitle(String value)
Generated method - Setter of
ProductReferencesComponent.title attribute defined at extension acceleratorcms. |
void |
setTitle(String value,
Locale loc)
Generated method - Setter of
ProductReferencesComponent.title attribute defined at extension acceleratorcms. |
getContainers, setContainersgetActions, getRestrictions, getSlots, getType, getType, getTypeCode, getVisible, isContainer, isOnlyOneRestrictionMustApply, isRestricted, setActions, setOnlyOneRestrictionMustApply, setRestrictions, setSlots, setVisiblegetCatalogVersion, getName, getUid, setCatalogVersion, setName, setUidgetComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final String _TYPECODE
public static final String TITLE
ProductReferencesComponent.title attribute defined at extension acceleratorcms.public static final String PRODUCTREFERENCETYPES
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms.public static final String MAXIMUMNUMBERPRODUCTS
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms.public static final String DISPLAYPRODUCTTITLES
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms.public static final String DISPLAYPRODUCTPRICES
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms.public ProductReferencesComponentModel()
public ProductReferencesComponentModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ProductReferencesComponentModel(CatalogVersionModel _catalogVersion, String _uid)
_catalogVersion - initial attribute declared by type CMSItem at extension cms2_uid - initial attribute declared by type CMSItem at extension cms2@Deprecated public ProductReferencesComponentModel(CatalogVersionModel _catalogVersion, ItemModel _owner, String _uid)
_catalogVersion - initial attribute declared by type CMSItem at extension cms2_owner - initial attribute declared by type Item at extension core_uid - initial attribute declared by type CMSItem at extension cms2@Accessor(qualifier="maximumNumberProducts", type=GETTER) public Integer getMaximumNumberProducts()
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms.@Accessor(qualifier="productReferenceTypes", type=GETTER) public List<ProductReferenceTypeEnum> getProductReferenceTypes()
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="title", type=GETTER) public String getTitle()
ProductReferencesComponent.title attribute defined at extension acceleratorcms.@Accessor(qualifier="title", type=GETTER) public String getTitle(Locale loc)
ProductReferencesComponent.title attribute defined at extension acceleratorcms.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="displayProductPrices", type=GETTER) public boolean isDisplayProductPrices()
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms.@Accessor(qualifier="displayProductTitles", type=GETTER) public boolean isDisplayProductTitles()
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms.@Accessor(qualifier="displayProductPrices", type=SETTER) public void setDisplayProductPrices(boolean value)
ProductReferencesComponent.displayProductPrices attribute defined at extension acceleratorcms.value - the displayProductPrices - Determines if product prices are shown.@Accessor(qualifier="displayProductTitles", type=SETTER) public void setDisplayProductTitles(boolean value)
ProductReferencesComponent.displayProductTitles attribute defined at extension acceleratorcms.value - the displayProductTitles - Determines if product titles are shown.@Accessor(qualifier="maximumNumberProducts", type=SETTER) public void setMaximumNumberProducts(Integer value)
ProductReferencesComponent.maximumNumberProducts attribute defined at extension acceleratorcms.value - the maximumNumberProducts - Maximum number of the product references that are displayed in the component.@Accessor(qualifier="productReferenceTypes", type=SETTER) public void setProductReferenceTypes(List<ProductReferenceTypeEnum> value)
ProductReferencesComponent.productReferenceTypes attribute defined at extension acceleratorcms.value - the productReferenceTypes - Product reference type that is displayed in this component.@Accessor(qualifier="title", type=SETTER) public void setTitle(String value)
ProductReferencesComponent.title attribute defined at extension acceleratorcms.value - the title - Title of the component.@Accessor(qualifier="title", type=SETTER) public void setTitle(String value, Locale loc)
ProductReferencesComponent.title attribute defined at extension acceleratorcms.value - the title - Title of the component.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data languageCopyright © 2017 SAP SE. All Rights Reserved.