Class PageTemplateModel
- 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.pages.PageTemplateModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DocumentPageTemplateModel
public class PageTemplateModel extends CMSItemModel
Generated model class for type PageTemplate 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_TYPECODEGenerated model type code constant.static java.lang.StringACTIVEGenerated constant - Attribute key ofPageTemplate.activeattribute defined at extensioncms2.static java.lang.StringAVAILABLECONTENTSLOTSGenerated constant - Attribute key ofPageTemplate.availableContentSlotsattribute defined at extensioncms2.static java.lang.StringCONTENTSLOTSGenerated constant - Attribute key ofPageTemplate.contentSlotsattribute defined at extensioncms2.static java.lang.StringFRONTENDTEMPLATENAMEGenerated constant - Attribute key ofPageTemplate.frontendTemplateNameattribute defined at extensioncms2.static java.lang.StringPREVIEWICONGenerated constant - Attribute key ofPageTemplate.previewIconattribute defined at extensioncms2.static java.lang.StringRESTRICTEDPAGETYPESGenerated constant - Attribute key ofPageTemplate.restrictedPageTypesattribute defined at extensioncms2.static java.lang.StringVELOCITYTEMPLATEGenerated constant - Attribute key ofPageTemplate.velocityTemplateattribute 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 PageTemplateModel()Generated constructor - Default constructor for generic creation.PageTemplateModel(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 parametersPageTemplateModel(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 parametersPageTemplateModel(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.lang.BooleangetActive()Generated method - Getter of thePageTemplate.activeattribute defined at extensioncms2.java.util.List<ContentSlotNameModel>getAvailableContentSlots()Generated method - Getter of thePageTemplate.availableContentSlotsattribute defined at extensioncms2.java.util.List<ContentSlotForTemplateModel>getContentSlots()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.StringgetFrontendTemplateName()Generated method - Getter of thePageTemplate.frontendTemplateNameattribute defined at extensioncms2.MediaModelgetPreviewIcon()Generated method - Getter of thePageTemplate.previewIconattribute defined at extensioncms2.java.util.Set<CMSPageTypeModel>getRestrictedPageTypes()Generated method - Getter of thePageTemplate.restrictedPageTypesattribute defined at extensioncms2.java.lang.StringgetVelocityTemplate()Generated method - Getter of thePageTemplate.velocityTemplateattribute defined at extensioncms2.voidsetActive(java.lang.Boolean value)Generated method - Setter ofPageTemplate.activeattribute defined at extensioncms2.voidsetAvailableContentSlots(java.util.List<ContentSlotNameModel> value)Generated method - Setter ofPageTemplate.availableContentSlotsattribute defined at extensioncms2.voidsetFrontendTemplateName(java.lang.String value)Generated method - Setter ofPageTemplate.frontendTemplateNameattribute defined at extensioncms2.voidsetPreviewIcon(MediaModel value)Generated method - Setter ofPageTemplate.previewIconattribute defined at extensioncms2.voidsetRestrictedPageTypes(java.util.Set<CMSPageTypeModel> value)Generated method - Setter ofPageTemplate.restrictedPageTypesattribute defined at extensioncms2.voidsetVelocityTemplate(java.lang.String value)Generated method - Setter ofPageTemplate.velocityTemplateattribute 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
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofPageTemplate.activeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
VELOCITYTEMPLATE
public static final java.lang.String VELOCITYTEMPLATE
Generated constant - Attribute key ofPageTemplate.velocityTemplateattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
FRONTENDTEMPLATENAME
public static final java.lang.String FRONTENDTEMPLATENAME
Generated constant - Attribute key ofPageTemplate.frontendTemplateNameattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
CONTENTSLOTS
public static final java.lang.String CONTENTSLOTS
Generated constant - Attribute key ofPageTemplate.contentSlotsattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
PREVIEWICON
public static final java.lang.String PREVIEWICON
Generated constant - Attribute key ofPageTemplate.previewIconattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
AVAILABLECONTENTSLOTS
public static final java.lang.String AVAILABLECONTENTSLOTS
Generated constant - Attribute key ofPageTemplate.availableContentSlotsattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
RESTRICTEDPAGETYPES
public static final java.lang.String RESTRICTEDPAGETYPES
Generated constant - Attribute key ofPageTemplate.restrictedPageTypesattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PageTemplateModel
public PageTemplateModel()
Generated constructor - Default constructor for generic creation.
-
PageTemplateModel
public PageTemplateModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
PageTemplateModel
@Deprecated(since="4.1.1", forRemoval=true) public PageTemplateModel(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
-
PageTemplateModel
@Deprecated(since="4.1.1", forRemoval=true) public PageTemplateModel(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
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of thePageTemplate.activeattribute defined at extensioncms2.- Returns:
- the active
-
getAvailableContentSlots
@Accessor(qualifier="availableContentSlots", type=GETTER) public java.util.List<ContentSlotNameModel> getAvailableContentSlots()
Generated method - Getter of thePageTemplate.availableContentSlotsattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the availableContentSlots
-
getContentSlots
@Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="contentSlots", type=GETTER) public java.util.List<ContentSlotForTemplateModel> getContentSlots()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Generated method - Getter of thePageTemplate.contentSlotsattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the contentSlots
-
getFrontendTemplateName
@Accessor(qualifier="frontendTemplateName", type=GETTER) public java.lang.String getFrontendTemplateName()
Generated method - Getter of thePageTemplate.frontendTemplateNameattribute defined at extensioncms2.- Returns:
- the frontendTemplateName
-
getPreviewIcon
@Accessor(qualifier="previewIcon", type=GETTER) public MediaModel getPreviewIcon()
Generated method - Getter of thePageTemplate.previewIconattribute defined at extensioncms2.- Returns:
- the previewIcon
-
getRestrictedPageTypes
@Accessor(qualifier="restrictedPageTypes", type=GETTER) public java.util.Set<CMSPageTypeModel> getRestrictedPageTypes()
Generated method - Getter of thePageTemplate.restrictedPageTypesattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the restrictedPageTypes
-
getVelocityTemplate
@Accessor(qualifier="velocityTemplate", type=GETTER) public java.lang.String getVelocityTemplate()
Generated method - Getter of thePageTemplate.velocityTemplateattribute defined at extensioncms2.- Returns:
- the velocityTemplate
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofPageTemplate.activeattribute defined at extensioncms2.- Parameters:
value- the active
-
setAvailableContentSlots
@Accessor(qualifier="availableContentSlots", type=SETTER) public void setAvailableContentSlots(java.util.List<ContentSlotNameModel> value)
Generated method - Setter ofPageTemplate.availableContentSlotsattribute defined at extensioncms2.- Parameters:
value- the availableContentSlots
-
setFrontendTemplateName
@Accessor(qualifier="frontendTemplateName", type=SETTER) public void setFrontendTemplateName(java.lang.String value)
Generated method - Setter ofPageTemplate.frontendTemplateNameattribute defined at extensioncms2.- Parameters:
value- the frontendTemplateName
-
setPreviewIcon
@Accessor(qualifier="previewIcon", type=SETTER) public void setPreviewIcon(MediaModel value)
Generated method - Setter ofPageTemplate.previewIconattribute defined at extensioncms2.- Parameters:
value- the previewIcon
-
setRestrictedPageTypes
@Accessor(qualifier="restrictedPageTypes", type=SETTER) public void setRestrictedPageTypes(java.util.Set<CMSPageTypeModel> value)
Generated method - Setter ofPageTemplate.restrictedPageTypesattribute defined at extensioncms2.- Parameters:
value- the restrictedPageTypes
-
-