Class CMSLinkComponentModel
- 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.cms2.model.contents.components.CMSLinkComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class CMSLinkComponentModel extends SimpleCMSComponentModel
Generated model class for type CMSLinkComponent first defined at extension cms2.- 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
_CMSLINKCOMPONENTSFORCATEGORY
Generated relation code constant for relationCmsLinkComponentsForCategory
defining source attributecategory
in extensioncms2
.static java.lang.String
_CMSLINKCOMPONENTSFORCONTENTPAGE
Generated relation code constant for relationCmsLinkComponentsForContentPage
defining source attributecontentPage
in extensioncms2
.static java.lang.String
_CMSLINKCOMPONENTSFORPRODUCT
Generated relation code constant for relationCmsLinkComponentsForProduct
defining source attributeproduct
in extensioncms2
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
CATEGORY
Generated constant - Attribute key ofCMSLinkComponent.category
attribute defined at extensioncms2
.static java.lang.String
CATEGORYCODE
Generated constant - Attribute key ofCMSLinkComponent.categoryCode
attribute defined at extensioncms2
.static java.lang.String
CATEGORYPOS
Generated constant - Attribute key ofCMSLinkComponent.categoryPOS
attribute defined at extensioncms2
.static java.lang.String
CONTENTPAGE
Generated constant - Attribute key ofCMSLinkComponent.contentPage
attribute defined at extensioncms2
.static java.lang.String
CONTENTPAGELABELORID
Generated constant - Attribute key ofCMSLinkComponent.contentPageLabelOrId
attribute defined at extensioncms2
.static java.lang.String
CONTENTPAGEPOS
Generated constant - Attribute key ofCMSLinkComponent.contentPagePOS
attribute defined at extensioncms2
.static java.lang.String
EXTERNAL
Generated constant - Attribute key ofCMSLinkComponent.external
attribute defined at extensioncms2
.static java.lang.String
LINKNAME
Generated constant - Attribute key ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.static java.lang.String
NAVIGATIONNODES
Generated constant - Attribute key ofCMSLinkComponent.navigationNodes
attribute defined at extensioncms2
.static java.lang.String
PRODUCT
Generated constant - Attribute key ofCMSLinkComponent.product
attribute defined at extensioncms2
.static java.lang.String
PRODUCTCODE
Generated constant - Attribute key ofCMSLinkComponent.productCode
attribute defined at extensioncms2
.static java.lang.String
PRODUCTPOS
Generated constant - Attribute key ofCMSLinkComponent.productPOS
attribute defined at extensioncms2
.static java.lang.String
STYLEATTRIBUTES
Generated constant - Attribute key ofCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.static java.lang.String
TARGET
Generated constant - Attribute key ofCMSLinkComponent.target
attribute defined at extensioncms2
.static java.lang.String
THUMBNAIL
Generated constant - Attribute key ofCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.static java.lang.String
THUMBNAILONLY
Generated constant - Attribute key ofCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.static java.lang.String
URL
Generated constant - Attribute key ofCMSLinkComponent.url
attribute defined at extensioncms2
.-
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 CMSLinkComponentModel()
Generated constructor - Default constructor for generic creation.CMSLinkComponentModel(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 parametersCMSLinkComponentModel(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 parametersCMSLinkComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CategoryModel
getCategory()
Generated method - Getter of theCMSLinkComponent.category
attribute defined at extensioncms2
.java.lang.String
getCategoryCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3ContentPageModel
getContentPage()
Generated method - Getter of theCMSLinkComponent.contentPage
attribute defined at extensioncms2
.java.lang.String
getContentPageLabelOrId()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.String
getLinkName()
Generated method - Getter of theCMSLinkComponent.linkName
attribute defined at extensioncms2
.java.lang.String
getLinkName(java.util.Locale loc)
Generated method - Getter of theCMSLinkComponent.linkName
attribute defined at extensioncms2
.java.util.List<CMSNavigationNodeModel>
getNavigationNodes()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.4ProductModel
getProduct()
Generated method - Getter of theCMSLinkComponent.product
attribute defined at extensioncms2
.java.lang.String
getProductCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.String
getStyleAttributes()
Generated method - Getter of theCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.LinkTargets
getTarget()
Generated method - Getter of theCMSLinkComponent.target
attribute defined at extensioncms2
.MediaModel
getThumbnail()
Generated method - Getter of theCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.java.lang.String
getUrl()
Generated method - Getter of theCMSLinkComponent.url
attribute defined at extensioncms2
.boolean
isExternal()
Generated method - Getter of theCMSLinkComponent.external
attribute defined at extensioncms2
.boolean
isThumbnailOnly()
Generated method - Getter of theCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.void
setCategory(CategoryModel value)
Generated method - Setter ofCMSLinkComponent.category
attribute defined at extensioncms2
.void
setContentPage(ContentPageModel value)
Generated method - Setter ofCMSLinkComponent.contentPage
attribute defined at extensioncms2
.void
setExternal(boolean value)
Generated method - Setter ofCMSLinkComponent.external
attribute defined at extensioncms2
.void
setLinkName(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.void
setLinkName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.void
setNavigationNodes(java.util.List<CMSNavigationNodeModel> value)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.4void
setProduct(ProductModel value)
Generated method - Setter ofCMSLinkComponent.product
attribute defined at extensioncms2
.void
setStyleAttributes(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.void
setTarget(LinkTargets value)
Generated method - Setter ofCMSLinkComponent.target
attribute defined at extensioncms2
.void
setThumbnail(MediaModel value)
Generated method - Setter ofCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.void
setThumbnailOnly(boolean value)
Generated method - Setter ofCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.void
setUrl(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.url
attribute defined at extensioncms2
.-
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
-
_CMSLINKCOMPONENTSFORCONTENTPAGE
public static final java.lang.String _CMSLINKCOMPONENTSFORCONTENTPAGE
Generated relation code constant for relationCmsLinkComponentsForContentPage
defining source attributecontentPage
in extensioncms2
.- See Also:
- Constant Field Values
-
_CMSLINKCOMPONENTSFORPRODUCT
public static final java.lang.String _CMSLINKCOMPONENTSFORPRODUCT
Generated relation code constant for relationCmsLinkComponentsForProduct
defining source attributeproduct
in extensioncms2
.- See Also:
- Constant Field Values
-
_CMSLINKCOMPONENTSFORCATEGORY
public static final java.lang.String _CMSLINKCOMPONENTSFORCATEGORY
Generated relation code constant for relationCmsLinkComponentsForCategory
defining source attributecategory
in extensioncms2
.- See Also:
- Constant Field Values
-
LINKNAME
public static final java.lang.String LINKNAME
Generated constant - Attribute key ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
EXTERNAL
public static final java.lang.String EXTERNAL
Generated constant - Attribute key ofCMSLinkComponent.external
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
Generated constant - Attribute key ofCMSLinkComponent.url
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CONTENTPAGELABELORID
public static final java.lang.String CONTENTPAGELABELORID
Generated constant - Attribute key ofCMSLinkComponent.contentPageLabelOrId
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
PRODUCTCODE
public static final java.lang.String PRODUCTCODE
Generated constant - Attribute key ofCMSLinkComponent.productCode
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CATEGORYCODE
public static final java.lang.String CATEGORYCODE
Generated constant - Attribute key ofCMSLinkComponent.categoryCode
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
TARGET
public static final java.lang.String TARGET
Generated constant - Attribute key ofCMSLinkComponent.target
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
NAVIGATIONNODES
public static final java.lang.String NAVIGATIONNODES
Generated constant - Attribute key ofCMSLinkComponent.navigationNodes
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CONTENTPAGEPOS
public static final java.lang.String CONTENTPAGEPOS
Generated constant - Attribute key ofCMSLinkComponent.contentPagePOS
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CONTENTPAGE
public static final java.lang.String CONTENTPAGE
Generated constant - Attribute key ofCMSLinkComponent.contentPage
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
PRODUCTPOS
public static final java.lang.String PRODUCTPOS
Generated constant - Attribute key ofCMSLinkComponent.productPOS
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
PRODUCT
public static final java.lang.String PRODUCT
Generated constant - Attribute key ofCMSLinkComponent.product
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CATEGORYPOS
public static final java.lang.String CATEGORYPOS
Generated constant - Attribute key ofCMSLinkComponent.categoryPOS
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CATEGORY
public static final java.lang.String CATEGORY
Generated constant - Attribute key ofCMSLinkComponent.category
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
STYLEATTRIBUTES
public static final java.lang.String STYLEATTRIBUTES
Generated constant - Attribute key ofCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.- See Also:
- Constant Field Values
-
THUMBNAIL
public static final java.lang.String THUMBNAIL
Generated constant - Attribute key ofCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.- See Also:
- Constant Field Values
-
THUMBNAILONLY
public static final java.lang.String THUMBNAILONLY
Generated constant - Attribute key ofCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CMSLinkComponentModel
public CMSLinkComponentModel()
Generated constructor - Default constructor for generic creation.
-
CMSLinkComponentModel
public CMSLinkComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
CMSLinkComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public CMSLinkComponentModel(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 typeCMSItem
at extensioncms2
_uid
- initial attribute declared by typeCMSItem
at extensioncms2
-
CMSLinkComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public CMSLinkComponentModel(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 typeCMSItem
at extensioncms2
_owner
- initial attribute declared by typeItem
at extensioncore
_uid
- initial attribute declared by typeCMSItem
at extensioncms2
-
-
Method Detail
-
getCategory
@Accessor(qualifier="category", type=GETTER) public CategoryModel getCategory()
Generated method - Getter of theCMSLinkComponent.category
attribute defined at extensioncms2
.- Returns:
- the category
-
getCategoryCode
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="categoryCode", type=GETTER) public java.lang.String getCategoryCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theCMSLinkComponent.categoryCode
attribute defined at extensioncms2
.- Returns:
- the categoryCode
-
getContentPage
@Accessor(qualifier="contentPage", type=GETTER) public ContentPageModel getContentPage()
Generated method - Getter of theCMSLinkComponent.contentPage
attribute defined at extensioncms2
.- Returns:
- the contentPage
-
getContentPageLabelOrId
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="contentPageLabelOrId", type=GETTER) public java.lang.String getContentPageLabelOrId()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theCMSLinkComponent.contentPageLabelOrId
attribute defined at extensioncms2
.- Returns:
- the contentPageLabelOrId
-
getLinkName
@Accessor(qualifier="linkName", type=GETTER) public java.lang.String getLinkName()
Generated method - Getter of theCMSLinkComponent.linkName
attribute defined at extensioncms2
.- Returns:
- the linkName
-
getLinkName
@Accessor(qualifier="linkName", type=GETTER) public java.lang.String getLinkName(java.util.Locale loc)
Generated method - Getter of theCMSLinkComponent.linkName
attribute defined at extensioncms2
.- Parameters:
loc
- the value localization key- Returns:
- the linkName
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getNavigationNodes
@Deprecated(since="4.4", forRemoval=true) @Accessor(qualifier="navigationNodes", type=GETTER) public java.util.List<CMSNavigationNodeModel> getNavigationNodes()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.4Generated method - Getter of theCMSLinkComponent.navigationNodes
attribute defined at extensioncms2
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the navigationNodes
-
getProduct
@Accessor(qualifier="product", type=GETTER) public ProductModel getProduct()
Generated method - Getter of theCMSLinkComponent.product
attribute defined at extensioncms2
.- Returns:
- the product
-
getProductCode
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="productCode", type=GETTER) public java.lang.String getProductCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theCMSLinkComponent.productCode
attribute defined at extensioncms2
.- Returns:
- the productCode
-
getStyleAttributes
@Accessor(qualifier="styleAttributes", type=GETTER) public java.lang.String getStyleAttributes()
Generated method - Getter of theCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.- Returns:
- the styleAttributes - Can store custom styling attributes for additional styling
-
getTarget
@Accessor(qualifier="target", type=GETTER) public LinkTargets getTarget()
Generated method - Getter of theCMSLinkComponent.target
attribute defined at extensioncms2
.- Returns:
- the target
-
getThumbnail
@Accessor(qualifier="thumbnail", type=GETTER) public MediaModel getThumbnail()
Generated method - Getter of theCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.- Returns:
- the thumbnail - image of the Component
-
getUrl
@Accessor(qualifier="url", type=GETTER) public java.lang.String getUrl()
Generated method - Getter of theCMSLinkComponent.url
attribute defined at extensioncms2
.- Returns:
- the url
-
isExternal
@Accessor(qualifier="external", type=GETTER) public boolean isExternal()
Generated method - Getter of theCMSLinkComponent.external
attribute defined at extensioncms2
.- Returns:
- the external
-
isThumbnailOnly
@Accessor(qualifier="thumbnailOnly", type=GETTER) public boolean isThumbnailOnly()
Generated method - Getter of theCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.- Returns:
- the thumbnailOnly - Display only the thumbnail without text content for the Link component
-
setCategory
@Accessor(qualifier="category", type=SETTER) public void setCategory(CategoryModel value)
Generated method - Setter ofCMSLinkComponent.category
attribute defined at extensioncms2
.- Parameters:
value
- the category
-
setContentPage
@Accessor(qualifier="contentPage", type=SETTER) public void setContentPage(ContentPageModel value)
Generated method - Setter ofCMSLinkComponent.contentPage
attribute defined at extensioncms2
.- Parameters:
value
- the contentPage
-
setExternal
@Accessor(qualifier="external", type=SETTER) public void setExternal(boolean value)
Generated method - Setter ofCMSLinkComponent.external
attribute defined at extensioncms2
.- Parameters:
value
- the external
-
setLinkName
@Accessor(qualifier="linkName", type=SETTER) public void setLinkName(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.- Parameters:
value
- the linkName
-
setLinkName
@Accessor(qualifier="linkName", type=SETTER) public void setLinkName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofCMSLinkComponent.linkName
attribute defined at extensioncms2
.- Parameters:
value
- the linkNameloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setNavigationNodes
@Deprecated(since="4.4", forRemoval=true) @Accessor(qualifier="navigationNodes", type=SETTER) public void setNavigationNodes(java.util.List<CMSNavigationNodeModel> value)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.4Generated method - Setter ofCMSLinkComponent.navigationNodes
attribute defined at extensioncms2
.- Parameters:
value
- the navigationNodes
-
setProduct
@Accessor(qualifier="product", type=SETTER) public void setProduct(ProductModel value)
Generated method - Setter ofCMSLinkComponent.product
attribute defined at extensioncms2
.- Parameters:
value
- the product
-
setStyleAttributes
@Accessor(qualifier="styleAttributes", type=SETTER) public void setStyleAttributes(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.styleAttributes
attribute defined at extensionacceleratorcms
.- Parameters:
value
- the styleAttributes - Can store custom styling attributes for additional styling
-
setTarget
@Accessor(qualifier="target", type=SETTER) public void setTarget(LinkTargets value)
Generated method - Setter ofCMSLinkComponent.target
attribute defined at extensioncms2
.- Parameters:
value
- the target
-
setThumbnail
@Accessor(qualifier="thumbnail", type=SETTER) public void setThumbnail(MediaModel value)
Generated method - Setter ofCMSLinkComponent.thumbnail
attribute defined at extensionverticalnavigationaddon
.- Parameters:
value
- the thumbnail - image of the Component
-
setThumbnailOnly
@Accessor(qualifier="thumbnailOnly", type=SETTER) public void setThumbnailOnly(boolean value)
Generated method - Setter ofCMSLinkComponent.thumbnailOnly
attribute defined at extensionverticalnavigationaddon
.- Parameters:
value
- the thumbnailOnly - Display only the thumbnail without text content for the Link component
-
-