info.magnolia.module.templatingkit.templates
Class AbstractSTKTemplateModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<RD>
- Type Parameters:
RD
- - an instance of RenderableDefinition
- All Implemented Interfaces:
- STKRenderingModel<RD>, info.magnolia.rendering.model.RenderingModel<RD>
- Direct Known Subclasses:
- AbstractItemListModel, BreadcrumbAreaModel, CarouselModel, ContactModel, ContentNavigationAreaModel, ContentTypeSyndicateModel, DownloadLinkModel, DownloadListModel, ExternalLinkModel, FlashModel, FooterAreaModel, ImageGalleryParagraphModel, ImageModel, InternalLinkModel, SearchResultModel, SectionHeaderAreaModel, SiteMapParagraphModel, STKPageModel, STKResourceModel
public abstract class AbstractSTKTemplateModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
- extends info.magnolia.rendering.model.RenderingModelImpl<RD>
- implements STKRenderingModel<RD>
Base abstract class to implement for all template models of STK, meaning for page & areas & component model classes.
Provides helpful methods for all STK template models.
- Version:
- $Id$
- Author:
- cringele
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl |
content, contentMap, definition, parentModel |
Fields inherited from interface info.magnolia.rendering.model.RenderingModel |
SKIP_RENDERING |
Constructor Summary |
AbstractSTKTemplateModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
|
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl |
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.rendering.model.RenderingModel |
execute, getContent, getDefinition, getNode, getParent, getRoot |
DEFAULT_SITEROOT_TEMPLATE_CATEGORY
public static final String DEFAULT_SITEROOT_TEMPLATE_CATEGORY
- See Also:
- Constant Field Values
stkFunctions
protected final STKTemplatingFunctions stkFunctions
templatingFunctions
protected final info.magnolia.templating.functions.TemplatingFunctions templatingFunctions
AbstractSTKTemplateModel
@Inject
public AbstractSTKTemplateModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
getSite
public Site getSite()
- Specified by:
getSite
in interface STKRenderingModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
getSiteRoot
public javax.jcr.Node getSiteRoot()
- Specified by:
getSiteRoot
in interface STKRenderingModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
Copyright © 2008-2013 Magnolia International Ltd.. All Rights Reserved.