001 package com.khubla.pragmatach.examples.jcrexample.json;
002
003 import com.khubla.pragmatach.framework.annotation.Controller;
004 import com.khubla.pragmatach.framework.annotation.Route;
005 import com.khubla.pragmatach.framework.api.PragmatachException;
006 import com.khubla.pragmatach.framework.api.Response;
007 import com.khubla.pragmatach.plugin.jcr.JCRJSONController;
008
009 /**
010 * @author tome
011 */
012 @Controller(name = "JSONNodePropertiesController")
013 public class JSONNodePropertiesController extends JCRJSONController {
014 @Route(uri = "example/json/properties/")
015 public Response render() throws PragmatachException {
016 return super.renderProperties(null);
017 }
018
019 @Route(uri = "example/json/properties/*")
020 public Response render(String[] nodeName) throws PragmatachException {
021 return super.renderProperties(nodeName);
022 }
023 }