info.magnolia.module.templatingkit.templates.areas
Class ScriptsAreaModel<RD extends info.magnolia.rendering.template.AreaDefinition>

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.areas.ScriptsAreaModel<RD>
Type Parameters:
RD - definition type.
All Implemented Interfaces:
STKRenderingModel<RD>, info.magnolia.rendering.model.RenderingModel<RD>

public class ScriptsAreaModel<RD extends info.magnolia.rendering.template.AreaDefinition>
extends AbstractSTKTemplateModel<RD>

Model for area to insert the tags. Looks through all the tags to determine which ones belong to this area of this page.


Field Summary
 
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
ScriptsAreaModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, STKTemplatingFunctions stkFunctions, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
           
 
Method Summary
protected  javax.jcr.NodeIterator getAllTags()
           
 String getPlaceToPut()
           
 List<javax.jcr.Node> getTags()
           
static boolean isChildNodeOf(javax.jcr.Node child, javax.jcr.Node ancestor)
           
 void setPlaceToPut(String placeToPut)
           
 void setTags(List<javax.jcr.Node> tags)
           
 
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
 

Constructor Detail

ScriptsAreaModel

public ScriptsAreaModel(javax.jcr.Node content,
                        RD definition,
                        info.magnolia.rendering.model.RenderingModel<?> parent,
                        STKTemplatingFunctions stkFunctions,
                        info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Method Detail

getAllTags

protected javax.jcr.NodeIterator getAllTags()
                                     throws javax.jcr.LoginException,
                                            javax.jcr.RepositoryException
Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException

isChildNodeOf

public static boolean isChildNodeOf(javax.jcr.Node child,
                                    javax.jcr.Node ancestor)
                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getTags

public List<javax.jcr.Node> getTags()

setTags

public void setTags(List<javax.jcr.Node> tags)

getPlaceToPut

public String getPlaceToPut()

setPlaceToPut

public void setPlaceToPut(String placeToPut)


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