|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.rendering.model.RenderingModelImpl<RD> info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<RD> info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD> info.magnolia.module.templatingkit.templates.STKTemplateModel<RD>
RD
- - an instance of STKPage
STKPageModel
instead.
public class STKTemplateModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
Base Model Implementation for STK.
Field Summary |
---|
Fields inherited from class info.magnolia.module.templatingkit.templates.pages.STKPageModel |
---|
LINK_PROP_NAME, LINK_TITLE_PROP_NAME |
Fields inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel |
---|
DEFAULT_SITEROOT_TEMPLATE_CATEGORY, stkFunctions, templatingFunctions |
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 | |
---|---|
STKTemplateModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Deprecated. |
Method Summary | |
---|---|
String |
execute()
Deprecated. |
String |
getBadge()
Deprecated. since 2.0: badge logic is provided by the footer area and not anymore by the page itself, see info.magnolia.module.templatingkit.templates.areas.FooterAreaModel . |
String |
getBodyClass()
Deprecated. since 2.0: use STKPageModel instead. |
Collection<info.magnolia.module.templatingkit.navigation.Link> |
getBreadcrumb()
Deprecated. since 2.0: breadcrumb logic is provided by the breadcrumb area and not anymore by the page itself, see info.magnolia.module.templatingkit.templates.areas.BreadcrumbAreaModel . |
List<?> |
getCategories()
Deprecated. since 2.0: use STKPageModel instead. |
String |
getCategoryLink(String categoryName)
Deprecated. since 2.0: use STKPageModel instead. |
Collection<info.magnolia.module.templatingkit.navigation.Link> |
getContentNavigation()
Deprecated. since 2.0: contentNavigation is now an Area within the 'main area. There for the logic is provided by the contentNavigation area's model info.magnolia.module.templatingkit.templates.areas.ContentNavigationAreaModel . |
RD |
getDefinition()
Deprecated. Overriding this method is apparently necessary to keep the return type in sync with the old statically defined return type. |
String |
getExternalLink()
Deprecated. since 2.0: use TemplatingFunctions instead. |
String |
getExternalLinkTitle()
Deprecated. since 2.0: use info.magnolia.templating.functions.TemplatingFunctionss instead. |
ExtrasAreaModel |
getExtras()
Deprecated. since 2.0: Providing and managing the inherited extras content should be managed by the ExtrasArea. |
info.magnolia.module.templatingkit.templates.InheritedContentModel |
getFooter()
Deprecated. since 2.0: the footer is now an Area element. Providing the footer elements by inheritance is now a base functionality of the info.magnolia.templating.elements.AreaElement . |
String |
getHomeLink()
Deprecated. since 2.0: code moved to STKTemplatingFunctions |
String |
getHomeName()
Deprecated. since 2.0: code moved to STKTemplatingFunctions |
String |
getHomeTitle()
Deprecated. since 2.0: code moved to STKTemplatingFunctions |
info.magnolia.module.templatingkit.templates.components.ImageModel |
getImageModel()
Deprecated. since 2.0: use STKPageModel instead. |
String |
getLanguage()
Deprecated. since 2.0: code moved to TemplatingFunctions |
String |
getLogoImageLink()
Deprecated. since 2.0: use STKPageModel instead |
info.magnolia.module.templatingkit.templates.InheritedContentModel |
getMetaNavigation()
Deprecated. since 2.0: the metaNavigation is now an Area element. Providing the metaNavigation elements by inheritance is now a base functionality of the info.magnolia.templating.elements.AreaElement . |
info.magnolia.module.templatingkit.navigation.SiteNavigationModel |
getNavigation()
Deprecated. since 2.0: use STKPageModel instead. |
javax.jcr.Node |
getNode()
Deprecated. |
info.magnolia.rendering.model.RenderingModel<?> |
getParent()
Deprecated. |
String |
getPrintLogoImageLink()
Deprecated. since 2.0: use STKPageModel instead |
Collection<javax.jcr.Node> |
getPromos()
Deprecated. since 2.0: the promos is now an Area element. Providing the promos elements by inheritance is now a base functionality of the info.magnolia.templating.elements.AreaElement . |
String |
getSearchPageLink()
Deprecated. since 2.0: code moved to SearchResultModel . |
String |
getSectionAbstract()
Deprecated. since 1.2 Use getSectionText() instead |
String |
getSectionText()
Deprecated. since 2.0: sectionHeader logic is provided by the sectionHeader area and not anymore by the page itself, see SectionHeaderAreaModel . |
String |
getSectionTitle()
Deprecated. since 2.0: sectionHeader logic is provided by the sectionHeader area and not anymore by the page itself, see info.magnolia.module.templatingkit.templates.areas.SectionHeaderAreaModel . |
info.magnolia.module.templatingkit.sites.Site |
getSite()
Deprecated. since 2.0: use STKPageModel instead. |
javax.jcr.Node |
getSiteRoot()
Deprecated. since 2.0: use STKPageModel instead. |
String |
getSiteTitle()
Deprecated. since 2.0: code moved to STKTemplatingFunctions |
protected javax.jcr.Node |
resolveSectionPage()
Deprecated. since 2.0: use STKPageModel instead |
void |
setSite(info.magnolia.module.templatingkit.sites.Site site)
Deprecated. since 2.0 |
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl |
---|
getContent, getDef, 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 |
---|
getContent, getRoot |
Constructor Detail |
---|
@Inject public STKTemplateModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkFunctions, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Method Detail |
---|
public String getBodyClass()
STKPageModel
instead.
getBodyClass
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public String getLanguage()
TemplatingFunctions
public info.magnolia.module.templatingkit.navigation.SiteNavigationModel getNavigation()
STKPageModel
instead.
getNavigation
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public Collection<info.magnolia.module.templatingkit.navigation.Link> getBreadcrumb() throws javax.jcr.RepositoryException
info.magnolia.module.templatingkit.templates.areas.BreadcrumbAreaModel
.
javax.jcr.RepositoryException
public javax.jcr.Node getSiteRoot()
STKPageModel
instead.
getSiteRoot
in interface info.magnolia.module.templatingkit.templates.STKRenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
getSiteRoot
in class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public info.magnolia.module.templatingkit.templates.InheritedContentModel getFooter() throws javax.jcr.RepositoryException
info.magnolia.templating.elements.AreaElement
.
javax.jcr.RepositoryException
public info.magnolia.module.templatingkit.templates.InheritedContentModel getMetaNavigation() throws javax.jcr.RepositoryException
info.magnolia.templating.elements.AreaElement
.
javax.jcr.RepositoryException
public ExtrasAreaModel getExtras() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Collection<javax.jcr.Node> getPromos() throws javax.jcr.RepositoryException
info.magnolia.templating.elements.AreaElement
.
javax.jcr.RepositoryException
public String getLogoImageLink()
STKPageModel
instead
getLogoImageLink
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public String getPrintLogoImageLink()
STKPageModel
instead
getPrintLogoImageLink
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public String getSectionTitle() throws javax.jcr.RepositoryException
info.magnolia.module.templatingkit.templates.areas.SectionHeaderAreaModel
.
javax.jcr.RepositoryException
public String getSectionAbstract() throws javax.jcr.RepositoryException
getSectionText()
instead
javax.jcr.RepositoryException
public String getSectionText() throws javax.jcr.RepositoryException
SectionHeaderAreaModel
.
javax.jcr.RepositoryException
protected javax.jcr.Node resolveSectionPage() throws javax.jcr.RepositoryException
STKPageModel
instead
resolveSectionPage
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
javax.jcr.RepositoryException
public String getHomeName()
STKTemplatingFunctions
public String getHomeTitle()
STKTemplatingFunctions
public String getSiteTitle()
STKTemplatingFunctions
public String getHomeLink()
STKTemplatingFunctions
public Collection<info.magnolia.module.templatingkit.navigation.Link> getContentNavigation() throws javax.jcr.RepositoryException
info.magnolia.module.templatingkit.templates.areas.ContentNavigationAreaModel
.
getContentNavigation
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
javax.jcr.RepositoryException
public String getSearchPageLink()
SearchResultModel
.
public String getExternalLink()
TemplatingFunctions
instead.
public String getExternalLinkTitle()
info.magnolia.templating.functions.TemplatingFunctionss
instead.
public final String getBadge()
info.magnolia.module.templatingkit.templates.areas.FooterAreaModel
.
public info.magnolia.module.templatingkit.sites.Site getSite()
STKPageModel
instead.
getSite
in interface info.magnolia.module.templatingkit.templates.STKRenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
getSite
in class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public void setSite(info.magnolia.module.templatingkit.sites.Site site)
public List<?> getCategories()
STKPageModel
instead.
getCategories
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public String getCategoryLink(String categoryName)
STKPageModel
instead.
getCategoryLink
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public info.magnolia.module.templatingkit.templates.components.ImageModel getImageModel()
STKPageModel
instead.
getImageModel
in class info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public RD getDefinition()
getDefinition
in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
getDefinition
in class info.magnolia.rendering.model.RenderingModelImpl<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
RenderingModelImpl
and uses Node
and not Content
anymore.public info.magnolia.rendering.model.RenderingModel<?> getParent()
getParent
in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
getParent
in class info.magnolia.rendering.model.RenderingModelImpl<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public javax.jcr.Node getNode()
getNode
in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
getNode
in class info.magnolia.rendering.model.RenderingModelImpl<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
public String execute()
execute
in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
execute
in class info.magnolia.rendering.model.RenderingModelImpl<RD extends info.magnolia.module.templatingkit.templates.pages.STKPage>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |