info.magnolia.module.templatingkit.templates.pages
Class STKPageModel<RD extends STKPage>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<RD>
          extended by info.magnolia.module.templatingkit.templates.pages.STKPageModel<RD>
Type Parameters:
RD - - an instance of STKPage
All Implemented Interfaces:
STKRenderingModel<RD>, info.magnolia.rendering.model.RenderingModel<RD>
Direct Known Subclasses:
GlossaryTemplateModel, RedirectTemplateModel

public class STKPageModel<RD extends STKPage>
extends AbstractSTKTemplateModel<RD>

Base page model class of all pages providing page level functionality.


Field Summary
protected  info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions
           
protected static String LINK_PROP_NAME
           
protected static String 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
STKPageModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, STKTemplatingFunctions stkFunctions, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions, info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions)
           
 
Method Summary
 String getBadgeWithoutTags()
          Returns Magnolia badge in text, rather than HTML.
 String getBodyClass()
           
 List<?> getCategories()
          just for ee users.
 String getCategoryLink(String categoryName)
          just for ee users.
 Collection<Link> getContentNavigation()
           
 ImageModel<?> getImageModel()
          FIXME: Should be moved to into-area model.
 String getLogoImageLink()
           
 SiteNavigationModel getNavigation()
           
 String getPrintLogoImageLink()
           
protected  javax.jcr.Node resolveSectionPage()
           
 
Methods inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
getSite, getSiteRoot
 
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
 

Field Detail

LINK_PROP_NAME

protected static final String LINK_PROP_NAME
See Also:
Constant Field Values

LINK_TITLE_PROP_NAME

protected static final String LINK_TITLE_PROP_NAME
See Also:
Constant Field Values

damFunctions

protected info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions
Constructor Detail

STKPageModel

@Inject
public STKPageModel(javax.jcr.Node content,
                           RD definition,
                           info.magnolia.rendering.model.RenderingModel<?> parent,
                           STKTemplatingFunctions stkFunctions,
                           info.magnolia.templating.functions.TemplatingFunctions templatingFunctions,
                           info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions)
Method Detail

getBodyClass

public String getBodyClass()

getNavigation

public SiteNavigationModel getNavigation()

getLogoImageLink

public String getLogoImageLink()

getPrintLogoImageLink

public String getPrintLogoImageLink()

resolveSectionPage

protected javax.jcr.Node resolveSectionPage()
                                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getContentNavigation

public Collection<Link> getContentNavigation()
                                      throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getCategories

public List<?> getCategories()
just for ee users. FIXME: will it always be Nodes, so List would be returnable?


getCategoryLink

public String getCategoryLink(String categoryName)
just for ee users.


getImageModel

public ImageModel<?> getImageModel()
FIXME: Should be moved to into-area model.


getBadgeWithoutTags

public final String getBadgeWithoutTags()
Returns Magnolia badge in text, rather than HTML.



Copyright © 2008-2014 Magnolia International Ltd.. All Rights Reserved.