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_CMSLINKCOMPONENTSFORCATEGORYGenerated relation code constant for relationCmsLinkComponentsForCategorydefining source attributecategoryin extensioncms2.static java.lang.String_CMSLINKCOMPONENTSFORCONTENTPAGEGenerated relation code constant for relationCmsLinkComponentsForContentPagedefining source attributecontentPagein extensioncms2.static java.lang.String_CMSLINKCOMPONENTSFORPRODUCTGenerated relation code constant for relationCmsLinkComponentsForProductdefining source attributeproductin extensioncms2.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCATEGORYGenerated constant - Attribute key ofCMSLinkComponent.categoryattribute defined at extensioncms2.static java.lang.StringCATEGORYCODEGenerated constant - Attribute key ofCMSLinkComponent.categoryCodeattribute defined at extensioncms2.static java.lang.StringCATEGORYPOSGenerated constant - Attribute key ofCMSLinkComponent.categoryPOSattribute defined at extensioncms2.static java.lang.StringCONTENTPAGEGenerated constant - Attribute key ofCMSLinkComponent.contentPageattribute defined at extensioncms2.static java.lang.StringCONTENTPAGELABELORIDGenerated constant - Attribute key ofCMSLinkComponent.contentPageLabelOrIdattribute defined at extensioncms2.static java.lang.StringCONTENTPAGEPOSGenerated constant - Attribute key ofCMSLinkComponent.contentPagePOSattribute defined at extensioncms2.static java.lang.StringEXTERNALGenerated constant - Attribute key ofCMSLinkComponent.externalattribute defined at extensioncms2.static java.lang.StringLINKNAMEGenerated constant - Attribute key ofCMSLinkComponent.linkNameattribute defined at extensioncms2.static java.lang.StringNAVIGATIONNODESGenerated constant - Attribute key ofCMSLinkComponent.navigationNodesattribute defined at extensioncms2.static java.lang.StringPRODUCTGenerated constant - Attribute key ofCMSLinkComponent.productattribute defined at extensioncms2.static java.lang.StringPRODUCTCODEGenerated constant - Attribute key ofCMSLinkComponent.productCodeattribute defined at extensioncms2.static java.lang.StringPRODUCTPOSGenerated constant - Attribute key ofCMSLinkComponent.productPOSattribute defined at extensioncms2.static java.lang.StringSTYLEATTRIBUTESGenerated constant - Attribute key ofCMSLinkComponent.styleAttributesattribute defined at extensionacceleratorcms.static java.lang.StringTARGETGenerated constant - Attribute key ofCMSLinkComponent.targetattribute defined at extensioncms2.static java.lang.StringTHUMBNAILGenerated constant - Attribute key ofCMSLinkComponent.thumbnailattribute defined at extensionverticalnavigationaddon.static java.lang.StringTHUMBNAILONLYGenerated constant - Attribute key ofCMSLinkComponent.thumbnailOnlyattribute defined at extensionverticalnavigationaddon.static java.lang.StringURLGenerated constant - Attribute key ofCMSLinkComponent.urlattribute 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 CategoryModelgetCategory()Generated method - Getter of theCMSLinkComponent.categoryattribute defined at extensioncms2.java.lang.StringgetCategoryCode()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3ContentPageModelgetContentPage()Generated method - Getter of theCMSLinkComponent.contentPageattribute defined at extensioncms2.java.lang.StringgetContentPageLabelOrId()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.StringgetLinkName()Generated method - Getter of theCMSLinkComponent.linkNameattribute defined at extensioncms2.java.lang.StringgetLinkName(java.util.Locale loc)Generated method - Getter of theCMSLinkComponent.linkNameattribute defined at extensioncms2.java.util.List<CMSNavigationNodeModel>getNavigationNodes()Deprecated, for removal: This API element is subject to removal in a future version.since 4.4ProductModelgetProduct()Generated method - Getter of theCMSLinkComponent.productattribute defined at extensioncms2.java.lang.StringgetProductCode()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.StringgetStyleAttributes()Generated method - Getter of theCMSLinkComponent.styleAttributesattribute defined at extensionacceleratorcms.LinkTargetsgetTarget()Generated method - Getter of theCMSLinkComponent.targetattribute defined at extensioncms2.MediaModelgetThumbnail()Generated method - Getter of theCMSLinkComponent.thumbnailattribute defined at extensionverticalnavigationaddon.java.lang.StringgetUrl()Generated method - Getter of theCMSLinkComponent.urlattribute defined at extensioncms2.booleanisExternal()Generated method - Getter of theCMSLinkComponent.externalattribute defined at extensioncms2.booleanisThumbnailOnly()Generated method - Getter of theCMSLinkComponent.thumbnailOnlyattribute defined at extensionverticalnavigationaddon.voidsetCategory(CategoryModel value)Generated method - Setter ofCMSLinkComponent.categoryattribute defined at extensioncms2.voidsetContentPage(ContentPageModel value)Generated method - Setter ofCMSLinkComponent.contentPageattribute defined at extensioncms2.voidsetExternal(boolean value)Generated method - Setter ofCMSLinkComponent.externalattribute defined at extensioncms2.voidsetLinkName(java.lang.String value)Generated method - Setter ofCMSLinkComponent.linkNameattribute defined at extensioncms2.voidsetLinkName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofCMSLinkComponent.linkNameattribute defined at extensioncms2.voidsetNavigationNodes(java.util.List<CMSNavigationNodeModel> value)Deprecated, for removal: This API element is subject to removal in a future version.since 4.4voidsetProduct(ProductModel value)Generated method - Setter ofCMSLinkComponent.productattribute defined at extensioncms2.voidsetStyleAttributes(java.lang.String value)Generated method - Setter ofCMSLinkComponent.styleAttributesattribute defined at extensionacceleratorcms.voidsetTarget(LinkTargets value)Generated method - Setter ofCMSLinkComponent.targetattribute defined at extensioncms2.voidsetThumbnail(MediaModel value)Generated method - Setter ofCMSLinkComponent.thumbnailattribute defined at extensionverticalnavigationaddon.voidsetThumbnailOnly(boolean value)Generated method - Setter ofCMSLinkComponent.thumbnailOnlyattribute defined at extensionverticalnavigationaddon.voidsetUrl(java.lang.String value)Generated method - Setter ofCMSLinkComponent.urlattribute 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 relationCmsLinkComponentsForContentPagedefining source attributecontentPagein extensioncms2.- See Also:
- Constant Field Values
-
_CMSLINKCOMPONENTSFORPRODUCT
public static final java.lang.String _CMSLINKCOMPONENTSFORPRODUCT
Generated relation code constant for relationCmsLinkComponentsForProductdefining source attributeproductin extensioncms2.- See Also:
- Constant Field Values
-
_CMSLINKCOMPONENTSFORCATEGORY
public static final java.lang.String _CMSLINKCOMPONENTSFORCATEGORY
Generated relation code constant for relationCmsLinkComponentsForCategorydefining source attributecategoryin extensioncms2.- See Also:
- Constant Field Values
-
LINKNAME
public static final java.lang.String LINKNAME
Generated constant - Attribute key ofCMSLinkComponent.linkNameattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
EXTERNAL
public static final java.lang.String EXTERNAL
Generated constant - Attribute key ofCMSLinkComponent.externalattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
Generated constant - Attribute key ofCMSLinkComponent.urlattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CONTENTPAGELABELORID
public static final java.lang.String CONTENTPAGELABELORID
Generated constant - Attribute key ofCMSLinkComponent.contentPageLabelOrIdattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
PRODUCTCODE
public static final java.lang.String PRODUCTCODE
Generated constant - Attribute key ofCMSLinkComponent.productCodeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CATEGORYCODE
public static final java.lang.String CATEGORYCODE
Generated constant - Attribute key ofCMSLinkComponent.categoryCodeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
TARGET
public static final java.lang.String TARGET
Generated constant - Attribute key ofCMSLinkComponent.targetattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
NAVIGATIONNODES
public static final java.lang.String NAVIGATIONNODES
Generated constant - Attribute key ofCMSLinkComponent.navigationNodesattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CONTENTPAGEPOS
public static final java.lang.String CONTENTPAGEPOS
Generated constant - Attribute key ofCMSLinkComponent.contentPagePOSattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CONTENTPAGE
public static final java.lang.String CONTENTPAGE
Generated constant - Attribute key ofCMSLinkComponent.contentPageattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
PRODUCTPOS
public static final java.lang.String PRODUCTPOS
Generated constant - Attribute key ofCMSLinkComponent.productPOSattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
PRODUCT
public static final java.lang.String PRODUCT
Generated constant - Attribute key ofCMSLinkComponent.productattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CATEGORYPOS
public static final java.lang.String CATEGORYPOS
Generated constant - Attribute key ofCMSLinkComponent.categoryPOSattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CATEGORY
public static final java.lang.String CATEGORY
Generated constant - Attribute key ofCMSLinkComponent.categoryattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
STYLEATTRIBUTES
public static final java.lang.String STYLEATTRIBUTES
Generated constant - Attribute key ofCMSLinkComponent.styleAttributesattribute defined at extensionacceleratorcms.- See Also:
- Constant Field Values
-
THUMBNAIL
public static final java.lang.String THUMBNAIL
Generated constant - Attribute key ofCMSLinkComponent.thumbnailattribute defined at extensionverticalnavigationaddon.- See Also:
- Constant Field Values
-
THUMBNAILONLY
public static final java.lang.String THUMBNAILONLY
Generated constant - Attribute key ofCMSLinkComponent.thumbnailOnlyattribute 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 typeCMSItemat extensioncms2_uid- initial attribute declared by typeCMSItemat 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 typeCMSItemat extensioncms2_owner- initial attribute declared by typeItemat extensioncore_uid- initial attribute declared by typeCMSItemat extensioncms2
-
-
Method Detail
-
getCategory
@Accessor(qualifier="category", type=GETTER) public CategoryModel getCategory()
Generated method - Getter of theCMSLinkComponent.categoryattribute 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.categoryCodeattribute defined at extensioncms2.- Returns:
- the categoryCode
-
getContentPage
@Accessor(qualifier="contentPage", type=GETTER) public ContentPageModel getContentPage()
Generated method - Getter of theCMSLinkComponent.contentPageattribute 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.contentPageLabelOrIdattribute defined at extensioncms2.- Returns:
- the contentPageLabelOrId
-
getLinkName
@Accessor(qualifier="linkName", type=GETTER) public java.lang.String getLinkName()
Generated method - Getter of theCMSLinkComponent.linkNameattribute 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.linkNameattribute 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.navigationNodesattribute 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.productattribute 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.productCodeattribute defined at extensioncms2.- Returns:
- the productCode
-
getStyleAttributes
@Accessor(qualifier="styleAttributes", type=GETTER) public java.lang.String getStyleAttributes()
Generated method - Getter of theCMSLinkComponent.styleAttributesattribute 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.targetattribute defined at extensioncms2.- Returns:
- the target
-
getThumbnail
@Accessor(qualifier="thumbnail", type=GETTER) public MediaModel getThumbnail()
Generated method - Getter of theCMSLinkComponent.thumbnailattribute 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.urlattribute defined at extensioncms2.- Returns:
- the url
-
isExternal
@Accessor(qualifier="external", type=GETTER) public boolean isExternal()
Generated method - Getter of theCMSLinkComponent.externalattribute defined at extensioncms2.- Returns:
- the external
-
isThumbnailOnly
@Accessor(qualifier="thumbnailOnly", type=GETTER) public boolean isThumbnailOnly()
Generated method - Getter of theCMSLinkComponent.thumbnailOnlyattribute 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.categoryattribute defined at extensioncms2.- Parameters:
value- the category
-
setContentPage
@Accessor(qualifier="contentPage", type=SETTER) public void setContentPage(ContentPageModel value)
Generated method - Setter ofCMSLinkComponent.contentPageattribute defined at extensioncms2.- Parameters:
value- the contentPage
-
setExternal
@Accessor(qualifier="external", type=SETTER) public void setExternal(boolean value)
Generated method - Setter ofCMSLinkComponent.externalattribute defined at extensioncms2.- Parameters:
value- the external
-
setLinkName
@Accessor(qualifier="linkName", type=SETTER) public void setLinkName(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.linkNameattribute 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.linkNameattribute 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.navigationNodesattribute defined at extensioncms2.- Parameters:
value- the navigationNodes
-
setProduct
@Accessor(qualifier="product", type=SETTER) public void setProduct(ProductModel value)
Generated method - Setter ofCMSLinkComponent.productattribute defined at extensioncms2.- Parameters:
value- the product
-
setStyleAttributes
@Accessor(qualifier="styleAttributes", type=SETTER) public void setStyleAttributes(java.lang.String value)
Generated method - Setter ofCMSLinkComponent.styleAttributesattribute 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.targetattribute defined at extensioncms2.- Parameters:
value- the target
-
setThumbnail
@Accessor(qualifier="thumbnail", type=SETTER) public void setThumbnail(MediaModel value)
Generated method - Setter ofCMSLinkComponent.thumbnailattribute 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.thumbnailOnlyattribute defined at extensionverticalnavigationaddon.- Parameters:
value- the thumbnailOnly - Display only the thumbnail without text content for the Link component
-
-