Class MiniCartComponentModel
- 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.MiniCartComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class MiniCartComponentModel extends SimpleCMSComponentModel
Generated model class for type MiniCartComponent first defined at extension acceleratorcms.It represents mini cart component that can be configured to show some information about cart content.
- 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.StringLIGHTBOXBANNERCOMPONENTGenerated constant - Attribute key ofMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.static java.lang.StringSHOWNPRODUCTCOUNTGenerated constant - Attribute key ofMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.static java.lang.StringTITLEGenerated constant - Attribute key ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.static java.lang.StringTOTALDISPLAYGenerated constant - Attribute key ofMiniCartComponent.totalDisplayattribute 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 MiniCartComponentModel()Generated constructor - Default constructor for generic creation.MiniCartComponentModel(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 parametersMiniCartComponentModel(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 parametersMiniCartComponentModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBannerComponentModelgetLightboxBannerComponent()Generated method - Getter of theMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.intgetShownProductCount()Generated method - Getter of theMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.java.lang.StringgetTitle()Generated method - Getter of theMiniCartComponent.titleattribute defined at extensionacceleratorcms.java.lang.StringgetTitle(java.util.Locale loc)Generated method - Getter of theMiniCartComponent.titleattribute defined at extensionacceleratorcms.CartTotalDisplayTypegetTotalDisplay()Generated method - Getter of theMiniCartComponent.totalDisplayattribute defined at extensionacceleratorcms.voidsetLightboxBannerComponent(SimpleBannerComponentModel value)Generated method - Setter ofMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.voidsetShownProductCount(int value)Generated method - Setter ofMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value)Generated method - Setter ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.voidsetTitle(java.lang.String value, java.util.Locale loc)Generated method - Setter ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.voidsetTotalDisplay(CartTotalDisplayType value)Generated method - Setter ofMiniCartComponent.totalDisplayattribute 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 ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
TOTALDISPLAY
public static final java.lang.String TOTALDISPLAY
Generated constant - Attribute key ofMiniCartComponent.totalDisplayattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
SHOWNPRODUCTCOUNT
public static final java.lang.String SHOWNPRODUCTCOUNT
Generated constant - Attribute key ofMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
LIGHTBOXBANNERCOMPONENT
public static final java.lang.String LIGHTBOXBANNERCOMPONENT
Generated constant - Attribute key ofMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MiniCartComponentModel
public MiniCartComponentModel()
Generated constructor - Default constructor for generic creation.
-
MiniCartComponentModel
public MiniCartComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
MiniCartComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public MiniCartComponentModel(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
-
MiniCartComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public MiniCartComponentModel(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
-
getLightboxBannerComponent
@Accessor(qualifier="lightboxBannerComponent", type=GETTER) public SimpleBannerComponentModel getLightboxBannerComponent()
Generated method - Getter of theMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.- Returns:
- the lightboxBannerComponent - It is a banner component that can be displayed in the mini cart.
-
getShownProductCount
@Accessor(qualifier="shownProductCount", type=GETTER) public int getShownProductCount()
Generated method - Getter of theMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.- Returns:
- the shownProductCount - It controls the maximum number of products to display in the component.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()
Generated method - Getter of theMiniCartComponent.titleattribute defined at extensionacceleratorcms.- Returns:
- the title - It is localized title of the component.
-
getTitle
@Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle(java.util.Locale loc)
Generated method - Getter of theMiniCartComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
loc- the value localization key- Returns:
- the title - It is localized title of the component.
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getTotalDisplay
@Accessor(qualifier="totalDisplay", type=GETTER) public CartTotalDisplayType getTotalDisplay()
Generated method - Getter of theMiniCartComponent.totalDisplayattribute defined at extensionacceleratorcms.- Returns:
- the totalDisplay - This attribute determines the type of displayed total cart value.
-
setLightboxBannerComponent
@Accessor(qualifier="lightboxBannerComponent", type=SETTER) public void setLightboxBannerComponent(SimpleBannerComponentModel value)
Generated method - Setter ofMiniCartComponent.lightboxBannerComponentattribute defined at extensionacceleratorcms.- Parameters:
value- the lightboxBannerComponent - It is a banner component that can be displayed in the mini cart.
-
setShownProductCount
@Accessor(qualifier="shownProductCount", type=SETTER) public void setShownProductCount(int value)
Generated method - Setter ofMiniCartComponent.shownProductCountattribute defined at extensionacceleratorcms.- Parameters:
value- the shownProductCount - It controls the maximum number of products to display in the component.
-
setTitle
@Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value)
Generated method - Setter ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - It is 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 ofMiniCartComponent.titleattribute defined at extensionacceleratorcms.- Parameters:
value- the title - It is localized title of the component.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setTotalDisplay
@Accessor(qualifier="totalDisplay", type=SETTER) public void setTotalDisplay(CartTotalDisplayType value)
Generated method - Setter ofMiniCartComponent.totalDisplayattribute defined at extensionacceleratorcms.- Parameters:
value- the totalDisplay - This attribute determines the type of displayed total cart value.
-
-