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_ELEMENTSFORSLOTGenerated relation code constant for relationElementsForSlotdefining source attributeslotsin extensioncms2.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIONSGenerated constant - Attribute key ofAbstractCMSComponent.actionsattribute defined at extensionacceleratorcms.static java.lang.StringCONTAINERGenerated constant - Attribute key ofAbstractCMSComponent.containerattribute defined at extensioncms2.static java.lang.StringONLYONERESTRICTIONMUSTAPPLYGenerated constant - Attribute key ofAbstractCMSComponent.onlyOneRestrictionMustApplyattribute defined at extensioncms2.static java.lang.StringRESTRICTEDGenerated constant - Attribute key ofAbstractCMSComponent.restrictedattribute defined at extensioncms2.static java.lang.StringRESTRICTIONSGenerated constant - Attribute key ofAbstractCMSComponent.restrictionsattribute defined at extensioncms2.static java.lang.StringSLOTSGenerated constant - Attribute key ofAbstractCMSComponent.slotsattribute defined at extensioncms2.static java.lang.StringTYPEGenerated constant - Attribute key ofAbstractCMSComponent.typeattribute defined at extensioncms2.static java.lang.StringTYPECODEGenerated constant - Attribute key ofAbstractCMSComponent.typeCodeattribute defined at extensioncms2.static java.lang.StringVISIBLEGenerated constant - Attribute key ofAbstractCMSComponent.visibleattribute 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.actionsattribute defined at extensionacceleratorcms.java.util.List<AbstractRestrictionModel>getRestrictions()Generated method - Getter of theAbstractCMSComponent.restrictionsattribute defined at extensioncms2.java.util.Collection<ContentSlotModel>getSlots()Generated method - Getter of theAbstractCMSComponent.slotsattribute defined at extensioncms2.java.lang.StringgetType()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.StringgetType(java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.StringgetTypeCode()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.BooleangetVisible()Generated method - Getter of theAbstractCMSComponent.visibleattribute defined at extensioncms2.booleanisContainer()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3booleanisOnlyOneRestrictionMustApply()Generated method - Getter of theAbstractCMSComponent.onlyOneRestrictionMustApplyattribute defined at extensioncms2.booleanisRestricted()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3voidsetActions(java.util.List<AbstractCMSActionModel> value)Generated method - Setter ofAbstractCMSComponent.actionsattribute defined at extensionacceleratorcms.voidsetOnlyOneRestrictionMustApply(boolean value)Generated method - Setter ofAbstractCMSComponent.onlyOneRestrictionMustApplyattribute defined at extensioncms2.voidsetRestrictions(java.util.List<AbstractRestrictionModel> value)Generated method - Setter ofAbstractCMSComponent.restrictionsattribute defined at extensioncms2.voidsetSlots(java.util.Collection<ContentSlotModel> value)Generated method - Setter ofAbstractCMSComponent.slotsattribute defined at extensioncms2.voidsetVisible(java.lang.Boolean value)Generated method - Setter ofAbstractCMSComponent.visibleattribute 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 relationElementsForSlotdefining source attributeslotsin extensioncms2.- See Also:
- Constant Field Values
-
VISIBLE
public static final java.lang.String VISIBLE
Generated constant - Attribute key ofAbstractCMSComponent.visibleattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
ONLYONERESTRICTIONMUSTAPPLY
public static final java.lang.String ONLYONERESTRICTIONMUSTAPPLY
Generated constant - Attribute key ofAbstractCMSComponent.onlyOneRestrictionMustApplyattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofAbstractCMSComponent.typeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
TYPECODE
public static final java.lang.String TYPECODE
Generated constant - Attribute key ofAbstractCMSComponent.typeCodeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CONTAINER
public static final java.lang.String CONTAINER
Generated constant - Attribute key ofAbstractCMSComponent.containerattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
RESTRICTED
public static final java.lang.String RESTRICTED
Generated constant - Attribute key ofAbstractCMSComponent.restrictedattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
SLOTS
public static final java.lang.String SLOTS
Generated constant - Attribute key ofAbstractCMSComponent.slotsattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Generated constant - Attribute key ofAbstractCMSComponent.restrictionsattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
ACTIONS
public static final java.lang.String ACTIONS
Generated constant - Attribute key ofAbstractCMSComponent.actionsattribute 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 typeCMSItemat extensioncms2_uid- initial attribute declared by typeCMSItemat 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 typeCMSItemat extensioncms2_owner- initial attribute declared by typeItemat extensioncore_uid- initial attribute declared by typeCMSItemat extensioncms2
-
-
Method Detail
-
getActions
@Accessor(qualifier="actions", type=GETTER) public java.util.List<AbstractCMSActionModel> getActions()
Generated method - Getter of theAbstractCMSComponent.actionsattribute 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.restrictionsattribute 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.slotsattribute 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.typeattribute 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.typeattribute 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.typeCodeattribute defined at extensioncms2.- Returns:
- the typeCode
-
getVisible
@Accessor(qualifier="visible", type=GETTER) public java.lang.Boolean getVisible()
Generated method - Getter of theAbstractCMSComponent.visibleattribute 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.containerattribute defined at extensioncms2.- Returns:
- the container
-
isOnlyOneRestrictionMustApply
@Accessor(qualifier="onlyOneRestrictionMustApply", type=GETTER) public boolean isOnlyOneRestrictionMustApply()
Generated method - Getter of theAbstractCMSComponent.onlyOneRestrictionMustApplyattribute 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.restrictedattribute defined at extensioncms2.- Returns:
- the restricted
-
setActions
@Accessor(qualifier="actions", type=SETTER) public void setActions(java.util.List<AbstractCMSActionModel> value)
Generated method - Setter ofAbstractCMSComponent.actionsattribute defined at extensionacceleratorcms.- Parameters:
value- the actions
-
setOnlyOneRestrictionMustApply
@Accessor(qualifier="onlyOneRestrictionMustApply", type=SETTER) public void setOnlyOneRestrictionMustApply(boolean value)
Generated method - Setter ofAbstractCMSComponent.onlyOneRestrictionMustApplyattribute 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.restrictionsattribute 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.slotsattribute defined at extensioncms2.- Parameters:
value- the slots
-
-