Class ProductCarouselComponentModel
- 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.cms2lib.model.components.ProductCarouselComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductCarouselComponentModel extends SimpleCMSComponentModel
Generated model class for type ProductCarouselComponent first defined at extension cms2lib.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCATEGORIESGenerated constant - Attribute key ofProductCarouselComponent.categoriesattribute defined at extensioncms2lib.static java.lang.StringCATEGORYCODEGenerated constant - Attribute key ofProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.static java.lang.StringCATEGORYCODESGenerated constant - Attribute key ofProductCarouselComponent.categoryCodesattribute defined at extensioncms2lib.static java.lang.StringPOPUPGenerated constant - Attribute key ofProductCarouselComponent.popupattribute defined at extensionacceleratorcms.static java.lang.StringPRODUCTCODESGenerated constant - Attribute key ofProductCarouselComponent.productCodesattribute defined at extensioncms2lib.static java.lang.StringPRODUCTSGenerated constant - Attribute key ofProductCarouselComponent.productsattribute defined at extensioncms2lib.static java.lang.StringSCROLLGenerated constant - Attribute key ofProductCarouselComponent.scrollattribute defined at extensioncms2lib.static java.lang.StringSEARCHQUERYGenerated constant - Attribute key ofProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.static java.lang.StringTITLEGenerated constant - Attribute key ofProductCarouselComponent.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, STYLECLASSES, 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
-
-
Constructor Summary
Constructors Constructor Description ProductCarouselComponentModel()Generated constructor - Default constructor for generic creation.ProductCarouselComponentModel(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 parametersProductCarouselComponentModel(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 parametersProductCarouselComponentModel(de.hybris.platform.servicelayer.model.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.util.List<CategoryModel>getCategories()Generated method - Getter of theProductCarouselComponent.categoriesattribute defined at extensioncms2lib.java.lang.StringgetCategoryCode()Generated method - Getter of theProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.java.util.List<java.lang.String>getCategoryCodes()Generated method - Getter of theProductCarouselComponent.categoryCodesattribute defined at extensioncms2lib.java.util.List<java.lang.String>getProductCodes()Generated method - Getter of theProductCarouselComponent.productCodesattribute defined at extensioncms2lib.java.util.List<ProductModel>getProducts()Generated method - Getter of theProductCarouselComponent.productsattribute defined at extensioncms2lib.CarouselScrollgetScroll()Generated method - Getter of theProductCarouselComponent.scrollattribute defined at extensioncms2lib.java.lang.StringgetSearchQuery()Generated method - Getter of theProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.java.lang.StringgetTitle()Generated method - Getter of theProductCarouselComponent.titleattribute defined at extensionacceleratorcms.java.lang.StringgetTitle(java.util.Locale loc)Generated method - Getter of theProductCarouselComponent.titleattribute defined at extensionacceleratorcms.booleanisPopup()Generated method - Getter of theProductCarouselComponent.popupattribute defined at extensionacceleratorcms.voidsetCategories(java.util.List<CategoryModel> value)Generated method - Setter ofProductCarouselComponent.categoriesattribute defined at extensioncms2lib.voidsetCategoryCode(java.lang.String value)Generated method - Setter ofProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.voidsetPopup(boolean value)Generated method - Setter ofProductCarouselComponent.popupattribute defined at extensionacceleratorcms.voidsetProducts(java.util.List<ProductModel> value)Generated method - Setter ofProductCarouselComponent.productsattribute defined at extensioncms2lib.voidsetScroll(CarouselScroll value)Generated method - Setter ofProductCarouselComponent.scrollattribute defined at extensioncms2lib.voidsetSearchQuery(java.lang.String value)Generated method - Setter ofProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value)Generated method - Setter ofProductCarouselComponent.titleattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductCarouselComponent.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, getStyleClasses, getType, getType, getTypeCode, getVisible, isContainer, isOnlyOneRestrictionMustApply, isRestricted, setActions, setOnlyOneRestrictionMustApply, setRestrictions, setSlots, setStyleClasses, 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
-
SCROLL
public static final java.lang.String SCROLL
Generated constant - Attribute key ofProductCarouselComponent.scrollattribute defined at extensioncms2lib.- See Also:
- Constant Field Values
-
PRODUCTCODES
public static final java.lang.String PRODUCTCODES
Generated constant - Attribute key ofProductCarouselComponent.productCodesattribute defined at extensioncms2lib.- See Also:
- Constant Field Values
-
CATEGORYCODES
public static final java.lang.String CATEGORYCODES
Generated constant - Attribute key ofProductCarouselComponent.categoryCodesattribute defined at extensioncms2lib.- See Also:
- Constant Field Values
-
PRODUCTS
public static final java.lang.String PRODUCTS
Generated constant - Attribute key ofProductCarouselComponent.productsattribute defined at extensioncms2lib.- See Also:
- Constant Field Values
-
CATEGORIES
public static final java.lang.String CATEGORIES
Generated constant - Attribute key ofProductCarouselComponent.categoriesattribute defined at extensioncms2lib.- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
Generated constant - Attribute key ofProductCarouselComponent.titleattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
SEARCHQUERY
public static final java.lang.String SEARCHQUERY
Generated constant - Attribute key ofProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
CATEGORYCODE
public static final java.lang.String CATEGORYCODE
Generated constant - Attribute key ofProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
POPUP
public static final java.lang.String POPUP
Generated constant - Attribute key ofProductCarouselComponent.popupattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductCarouselComponentModel
public ProductCarouselComponentModel()
Generated constructor - Default constructor for generic creation.
-
ProductCarouselComponentModel
public ProductCarouselComponentModel(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
-
ProductCarouselComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductCarouselComponentModel(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
-
ProductCarouselComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductCarouselComponentModel(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
-
getCategories
@Accessor(qualifier="categories", type=GETTER) public java.util.List<CategoryModel> getCategories()Generated method - Getter of theProductCarouselComponent.categoriesattribute defined at extensioncms2lib. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the categories
-
getCategoryCode
@Accessor(qualifier="categoryCode", type=GETTER) public java.lang.String getCategoryCode()Generated method - Getter of theProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.- Returns:
- the categoryCode - A code for a category for a solr search
-
getCategoryCodes
@Accessor(qualifier="categoryCodes", type=GETTER) public java.util.List<java.lang.String> getCategoryCodes()Generated method - Getter of theProductCarouselComponent.categoryCodesattribute defined at extensioncms2lib. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the categoryCodes
-
getProductCodes
@Accessor(qualifier="productCodes", type=GETTER) public java.util.List<java.lang.String> getProductCodes()Generated method - Getter of theProductCarouselComponent.productCodesattribute defined at extensioncms2lib. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productCodes
-
getProducts
@Accessor(qualifier="products", type=GETTER) public java.util.List<ProductModel> getProducts()Generated method - Getter of theProductCarouselComponent.productsattribute defined at extensioncms2lib. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the products
-
getScroll
@Accessor(qualifier="scroll", type=GETTER) public CarouselScroll getScroll()Generated method - Getter of theProductCarouselComponent.scrollattribute defined at extensioncms2lib.- Returns:
- the scroll
-
getSearchQuery
@Accessor(qualifier="searchQuery", type=GETTER) public java.lang.String getSearchQuery()Generated method - Getter of theProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.- Returns:
- the searchQuery - A solr query string
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()Generated method - Getter of theProductCarouselComponent.titleattribute defined at extensionacceleratorcms.- Returns:
- the title - Localized title of the component.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle(java.util.Locale loc)Generated method - Getter of theProductCarouselComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
loc- the value localization key- Returns:
- the title - Localized title of the component.
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
isPopup
@Accessor(qualifier="popup", type=GETTER) public boolean isPopup()Generated method - Getter of theProductCarouselComponent.popupattribute defined at extensionacceleratorcms.- Returns:
- the popup - If true shows a popup else redirects to products page
-
setCategories
@Accessor(qualifier="categories", type=SETTER) public void setCategories(java.util.List<CategoryModel> value)Generated method - Setter ofProductCarouselComponent.categoriesattribute defined at extensioncms2lib.- Parameters:
value- the categories
-
setCategoryCode
@Accessor(qualifier="categoryCode", type=SETTER) public void setCategoryCode(java.lang.String value)Generated method - Setter ofProductCarouselComponent.categoryCodeattribute defined at extensionacceleratorcms.- Parameters:
value- the categoryCode - A code for a category for a solr search
-
setPopup
@Accessor(qualifier="popup", type=SETTER) public void setPopup(boolean value)Generated method - Setter ofProductCarouselComponent.popupattribute defined at extensionacceleratorcms.- Parameters:
value- the popup - If true shows a popup else redirects to products page
-
setProducts
@Accessor(qualifier="products", type=SETTER) public void setProducts(java.util.List<ProductModel> value)Generated method - Setter ofProductCarouselComponent.productsattribute defined at extensioncms2lib.- Parameters:
value- the products
-
setScroll
@Accessor(qualifier="scroll", type=SETTER) public void setScroll(CarouselScroll value)Generated method - Setter ofProductCarouselComponent.scrollattribute defined at extensioncms2lib.- Parameters:
value- the scroll
-
setSearchQuery
@Accessor(qualifier="searchQuery", type=SETTER) public void setSearchQuery(java.lang.String value)Generated method - Setter ofProductCarouselComponent.searchQueryattribute defined at extensionacceleratorcms.- Parameters:
value- the searchQuery - A solr query string
-
setTitle
@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value)Generated method - Setter ofProductCarouselComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - Localized title of the component.
-
setTitle
@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductCarouselComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - Localized title of the component.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-