com.khubla.pragmatach.examples.jcrexample.html
Class HTMLNodeController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
          extended by com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
              extended by com.khubla.pragmatach.plugin.freemarker.FreemarkerController
                  extended by com.khubla.pragmatach.examples.jcrexample.html.HTMLNodeController
All Implemented Interfaces:
BeanBoundController, PragmatachController

@Controller(name="HTMLNodeChildrenController")
@View(view="jcrnode.html")
public class HTMLNodeController
extends FreemarkerController

Author:
tome

Field Summary
protected  JCRSessionFactory jcrSessionFactory
          JCRSessionFactory
 
Constructor Summary
HTMLNodeController()
           
 
Method Summary
 String getJcrPath()
           
 javax.jcr.Node getNode()
           
 Set<javax.jcr.Node> getSubnodes()
           
 Set<javax.jcr.Property> nodeProperties(javax.jcr.Node node)
           
 Response render()
          render
 Response render(String[] nodeName)
           
 void setJcrPath(String jcrPath)
           
 void setNode(javax.jcr.Node node)
           
 void setSubnodes(Set<javax.jcr.Node> subnodes)
           
 
Methods inherited from class com.khubla.pragmatach.plugin.freemarker.FreemarkerController
renderTemplate
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
getPostFieldValues, populateController
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
getTemplate, getTemplateContext, getTemplateName, url_for
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractController
bad, buildWildcardResourceURI, forward, getApplicationURL, getCacheHeaders, getConfigurationParameter, getControllerName, getControllerName, getPragmatachRoute, getRequest, getResource, getSessionScopedController, ok, redirect, setPragmatachRoute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.khubla.pragmatach.framework.controller.PragmatachController
setPragmatachRoute, setRequest
 

Field Detail

jcrSessionFactory

protected final JCRSessionFactory jcrSessionFactory
JCRSessionFactory

Constructor Detail

HTMLNodeController

public HTMLNodeController()
Method Detail

getJcrPath

public String getJcrPath()

getNode

public javax.jcr.Node getNode()

getSubnodes

public Set<javax.jcr.Node> getSubnodes()

nodeProperties

public Set<javax.jcr.Property> nodeProperties(javax.jcr.Node node)
                                       throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

render

@Route(uri="example/html/")
public Response render()
                throws PragmatachException
Description copied from class: FreemarkerController
render

Overrides:
render in class FreemarkerController
Throws:
PragmatachException

render

@Route(uri="example/html/*")
public Response render(String[] nodeName)
                throws PragmatachException
Throws:
PragmatachException

setJcrPath

public void setJcrPath(String jcrPath)

setNode

public void setNode(javax.jcr.Node node)

setSubnodes

public void setSubnodes(Set<javax.jcr.Node> subnodes)


Copyright © 2014 khubla.com. All rights reserved.