Class AbstractCMSComponentModel
- 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
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AbstractCMSComponentContainerModel
,SimpleCMSComponentModel
public class AbstractCMSComponentModel extends CMSItemModel
Generated model class for type AbstractCMSComponent 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
_ELEMENTSFORSLOT
Generated relation code constant for relationElementsForSlot
defining source attributeslots
in extensioncms2
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ACTIONS
Generated constant - Attribute key ofAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
.static java.lang.String
CONTAINER
Generated constant - Attribute key ofAbstractCMSComponent.container
attribute defined at extensioncms2
.static java.lang.String
ONLYONERESTRICTIONMUSTAPPLY
Generated constant - Attribute key ofAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.static java.lang.String
RESTRICTED
Generated constant - Attribute key ofAbstractCMSComponent.restricted
attribute defined at extensioncms2
.static java.lang.String
RESTRICTIONS
Generated constant - Attribute key ofAbstractCMSComponent.restrictions
attribute defined at extensioncms2
.static java.lang.String
SLOTS
Generated constant - Attribute key ofAbstractCMSComponent.slots
attribute defined at extensioncms2
.static java.lang.String
TYPE
Generated constant - Attribute key ofAbstractCMSComponent.type
attribute defined at extensioncms2
.static java.lang.String
TYPECODE
Generated constant - Attribute key ofAbstractCMSComponent.typeCode
attribute defined at extensioncms2
.static java.lang.String
VISIBLE
Generated constant - Attribute key ofAbstractCMSComponent.visible
attribute defined at extensioncms2
.-
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 AbstractCMSComponentModel()
Generated constructor - Default constructor for generic creation.AbstractCMSComponentModel(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 parametersAbstractCMSComponentModel(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 parametersAbstractCMSComponentModel(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 java.util.List<AbstractCMSActionModel>
getActions()
Generated method - Getter of theAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
.java.util.List<AbstractRestrictionModel>
getRestrictions()
Generated method - Getter of theAbstractCMSComponent.restrictions
attribute defined at extensioncms2
.java.util.Collection<ContentSlotModel>
getSlots()
Generated method - Getter of theAbstractCMSComponent.slots
attribute defined at extensioncms2
.java.lang.String
getType()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.String
getType(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.java.lang.String
getTypeCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.Boolean
getVisible()
Generated method - Getter of theAbstractCMSComponent.visible
attribute defined at extensioncms2
.boolean
isContainer()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3boolean
isOnlyOneRestrictionMustApply()
Generated method - Getter of theAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.boolean
isRestricted()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3void
setActions(java.util.List<AbstractCMSActionModel> value)
Generated method - Setter ofAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
.void
setOnlyOneRestrictionMustApply(boolean value)
Generated method - Setter ofAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.void
setRestrictions(java.util.List<AbstractRestrictionModel> value)
Generated method - Setter ofAbstractCMSComponent.restrictions
attribute defined at extensioncms2
.void
setSlots(java.util.Collection<ContentSlotModel> value)
Generated method - Setter ofAbstractCMSComponent.slots
attribute defined at extensioncms2
.void
setVisible(java.lang.Boolean value)
Generated method - Setter ofAbstractCMSComponent.visible
attribute defined at extensioncms2
.-
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
-
_ELEMENTSFORSLOT
public static final java.lang.String _ELEMENTSFORSLOT
Generated relation code constant for relationElementsForSlot
defining source attributeslots
in extensioncms2
.- See Also:
- Constant Field Values
-
VISIBLE
public static final java.lang.String VISIBLE
Generated constant - Attribute key ofAbstractCMSComponent.visible
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
ONLYONERESTRICTIONMUSTAPPLY
public static final java.lang.String ONLYONERESTRICTIONMUSTAPPLY
Generated constant - Attribute key ofAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofAbstractCMSComponent.type
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
TYPECODE
public static final java.lang.String TYPECODE
Generated constant - Attribute key ofAbstractCMSComponent.typeCode
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
CONTAINER
public static final java.lang.String CONTAINER
Generated constant - Attribute key ofAbstractCMSComponent.container
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
RESTRICTED
public static final java.lang.String RESTRICTED
Generated constant - Attribute key ofAbstractCMSComponent.restricted
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
SLOTS
public static final java.lang.String SLOTS
Generated constant - Attribute key ofAbstractCMSComponent.slots
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Generated constant - Attribute key ofAbstractCMSComponent.restrictions
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
ACTIONS
public static final java.lang.String ACTIONS
Generated constant - Attribute key ofAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractCMSComponentModel
public AbstractCMSComponentModel()
Generated constructor - Default constructor for generic creation.
-
AbstractCMSComponentModel
public AbstractCMSComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
AbstractCMSComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCMSComponentModel(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
-
AbstractCMSComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCMSComponentModel(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
-
getActions
@Accessor(qualifier="actions", type=GETTER) public java.util.List<AbstractCMSActionModel> getActions()
Generated method - Getter of theAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the actions
-
getRestrictions
@Accessor(qualifier="restrictions", type=GETTER) public java.util.List<AbstractRestrictionModel> getRestrictions()
Generated method - Getter of theAbstractCMSComponent.restrictions
attribute defined at extensioncms2
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the restrictions
-
getSlots
@Accessor(qualifier="slots", type=GETTER) public java.util.Collection<ContentSlotModel> getSlots()
Generated method - Getter of theAbstractCMSComponent.slots
attribute defined at extensioncms2
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the slots
-
getType
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="type", type=GETTER) public java.lang.String getType()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theAbstractCMSComponent.type
attribute defined at extensioncms2
.- Returns:
- the type
-
getType
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="type", type=GETTER) public java.lang.String getType(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.Generated method - Getter of theAbstractCMSComponent.type
attribute defined at extensioncms2
.- Parameters:
loc
- the value localization key- Returns:
- the type
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getTypeCode
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="typeCode", type=GETTER) public java.lang.String getTypeCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theAbstractCMSComponent.typeCode
attribute defined at extensioncms2
.- Returns:
- the typeCode
-
getVisible
@Accessor(qualifier="visible", type=GETTER) public java.lang.Boolean getVisible()
Generated method - Getter of theAbstractCMSComponent.visible
attribute defined at extensioncms2
.- Returns:
- the visible
-
isContainer
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="container", type=GETTER) public boolean isContainer()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theAbstractCMSComponent.container
attribute defined at extensioncms2
.- Returns:
- the container
-
isOnlyOneRestrictionMustApply
@Accessor(qualifier="onlyOneRestrictionMustApply", type=GETTER) public boolean isOnlyOneRestrictionMustApply()
Generated method - Getter of theAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.- Returns:
- the onlyOneRestrictionMustApply
-
isRestricted
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="restricted", type=GETTER) public boolean isRestricted()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of theAbstractCMSComponent.restricted
attribute defined at extensioncms2
.- Returns:
- the restricted
-
setActions
@Accessor(qualifier="actions", type=SETTER) public void setActions(java.util.List<AbstractCMSActionModel> value)
Generated method - Setter ofAbstractCMSComponent.actions
attribute defined at extensionacceleratorcms
.- Parameters:
value
- the actions
-
setOnlyOneRestrictionMustApply
@Accessor(qualifier="onlyOneRestrictionMustApply", type=SETTER) public void setOnlyOneRestrictionMustApply(boolean value)
Generated method - Setter ofAbstractCMSComponent.onlyOneRestrictionMustApply
attribute defined at extensioncms2
.- Parameters:
value
- the onlyOneRestrictionMustApply
-
setRestrictions
@Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(java.util.List<AbstractRestrictionModel> value)
Generated method - Setter ofAbstractCMSComponent.restrictions
attribute defined at extensioncms2
.- Parameters:
value
- the restrictions
-
setSlots
@Accessor(qualifier="slots", type=SETTER) public void setSlots(java.util.Collection<ContentSlotModel> value)
Generated method - Setter ofAbstractCMSComponent.slots
attribute defined at extensioncms2
.- Parameters:
value
- the slots
-
-