Mercurial > hg > Members > nobuyasu > Consensus
view target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala @ 40:1d5c086e069b
create getAllUsers() action.
author | one |
---|---|
date | Thu, 04 Oct 2012 01:59:21 +0900 |
parents | bc3ac73320f9 |
children | 4321d97da830 |
line wrap: on
line source
// @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes // @HASH:0d161c51591c2cc11bf38fb7f107b713d79cc370 // @DATE:Thu Oct 04 01:56:05 JST 2012 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import play.libs.F import Router.queryString // @LINE:30 // @LINE:26 // @LINE:25 // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 // @LINE:6 package controllers { // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 class ReverseClaim { // @LINE:19 def crateClaim() = { Call("POST", "/claims/create") } // @LINE:21 def editClaim(id:String) = { Call("POST", "/claims/edit/" + implicitly[PathBindable[String]].unbind("id", id)) } // @LINE:20 def createMention(mentionType:String, id:String) = { Call("POST", "/claims/" + implicitly[PathBindable[String]].unbind("mentionType", mentionType) + "/" + implicitly[PathBindable[String]].unbind("id", id) + "/create") } // @LINE:16 def getUserConsensusStatus(id:String, name:String) = { Call("GET", "/claims/answer/" + implicitly[PathBindable[String]].unbind("id", id) + "/" + implicitly[PathBindable[String]].unbind("name", name)) } // @LINE:13 def getClaimInfo(id:String) = { Call("GET", "/claims/browse/" + implicitly[PathBindable[String]].unbind("id", id)) } // @LINE:15 // @LINE:14 def getClaimTree(id:String) = { (id) match { // @LINE:14 case (id) if true => Call("GET", "/claims/consensus/" + implicitly[PathBindable[String]].unbind("id", id)) // @LINE:15 case (id) if true => Call("GET", "/consensus/browse/" + implicitly[PathBindable[String]].unbind("id", id)) } } } // @LINE:26 // @LINE:25 // @LINE:6 class ReverseApplication { // @LINE:26 def test() = { Call("GET", "/test") } // @LINE:6 def index() = { Call("GET", "/") } // @LINE:25 def hello() = { Call("POST", "/hello") } } // @LINE:30 class ReverseAssets { // @LINE:30 def at(file:String) = { Call("GET", "/assets/" + implicitly[PathBindable[String]].unbind("file", file)) } } // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 class ReverseUser { // @LINE:8 def createUser(name:String) = { Call("PUT", "/users/create/" + implicitly[PathBindable[String]].unbind("name", name)) } // @LINE:10 def getUserRequests(name:String) = { Call("GET", "/users/requests/" + implicitly[PathBindable[String]].unbind("name", name)) } // @LINE:9 def getUser(name:String) = { Call("GET", "/users/browse/" + implicitly[PathBindable[String]].unbind("name", name)) } // @LINE:7 def getAllUsers() = { Call("GET", "/users/all") } // @LINE:11 def getUserConsensus(name:String) = { Call("GET", "/users/consensus/" + implicitly[PathBindable[String]].unbind("name", name)) } // @LINE:12 def getUserClaims(name:String) = { Call("GET", "/users/claims/" + implicitly[PathBindable[String]].unbind("name", name)) } } } // @LINE:30 // @LINE:26 // @LINE:25 // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 // @LINE:6 package controllers.javascript { // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 class ReverseClaim { // @LINE:19 def crateClaim = JavascriptReverseRoute( "controllers.Claim.crateClaim", """ function() { return _wA({method:"POST", url:"/claims/create"}) } """ ) // @LINE:21 def editClaim = JavascriptReverseRoute( "controllers.Claim.editClaim", """ function(id) { return _wA({method:"POST", url:"/claims/edit/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id)}) } """ ) // @LINE:20 def createMention = JavascriptReverseRoute( "controllers.Claim.createMention", """ function(mentionType,id) { return _wA({method:"POST", url:"/claims/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("mentionType", mentionType) + "/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id) + "/create"}) } """ ) // @LINE:16 def getUserConsensusStatus = JavascriptReverseRoute( "controllers.Claim.getUserConsensusStatus", """ function(id,name) { return _wA({method:"GET", url:"/claims/answer/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id) + "/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) // @LINE:13 def getClaimInfo = JavascriptReverseRoute( "controllers.Claim.getClaimInfo", """ function(id) { return _wA({method:"GET", url:"/claims/browse/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id)}) } """ ) // @LINE:15 // @LINE:14 def getClaimTree = JavascriptReverseRoute( "controllers.Claim.getClaimTree", """ function(id) { if (true) { return _wA({method:"GET", url:"/claims/consensus/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id)}) } if (true) { return _wA({method:"GET", url:"/consensus/browse/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id)}) } } """ ) } // @LINE:26 // @LINE:25 // @LINE:6 class ReverseApplication { // @LINE:26 def test = JavascriptReverseRoute( "controllers.Application.test", """ function() { return _wA({method:"GET", url:"/test"}) } """ ) // @LINE:6 def index = JavascriptReverseRoute( "controllers.Application.index", """ function() { return _wA({method:"GET", url:"/"}) } """ ) // @LINE:25 def hello = JavascriptReverseRoute( "controllers.Application.hello", """ function() { return _wA({method:"POST", url:"/hello"}) } """ ) } // @LINE:30 class ReverseAssets { // @LINE:30 def at = JavascriptReverseRoute( "controllers.Assets.at", """ function(file) { return _wA({method:"GET", url:"/assets/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("file", file)}) } """ ) } // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 class ReverseUser { // @LINE:8 def createUser = JavascriptReverseRoute( "controllers.User.createUser", """ function(name) { return _wA({method:"PUT", url:"/users/create/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) // @LINE:10 def getUserRequests = JavascriptReverseRoute( "controllers.User.getUserRequests", """ function(name) { return _wA({method:"GET", url:"/users/requests/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) // @LINE:9 def getUser = JavascriptReverseRoute( "controllers.User.getUser", """ function(name) { return _wA({method:"GET", url:"/users/browse/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) // @LINE:7 def getAllUsers = JavascriptReverseRoute( "controllers.User.getAllUsers", """ function() { return _wA({method:"GET", url:"/users/all"}) } """ ) // @LINE:11 def getUserConsensus = JavascriptReverseRoute( "controllers.User.getUserConsensus", """ function(name) { return _wA({method:"GET", url:"/users/consensus/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) // @LINE:12 def getUserClaims = JavascriptReverseRoute( "controllers.User.getUserClaims", """ function(name) { return _wA({method:"GET", url:"/users/claims/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) } """ ) } } // @LINE:30 // @LINE:26 // @LINE:25 // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 // @LINE:6 package controllers.ref { // @LINE:21 // @LINE:20 // @LINE:19 // @LINE:16 // @LINE:15 // @LINE:14 // @LINE:13 class ReverseClaim { // @LINE:19 def crateClaim() = new play.api.mvc.HandlerRef( controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Seq()) ) // @LINE:21 def editClaim(id:String) = new play.api.mvc.HandlerRef( controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String])) ) // @LINE:20 def createMention(mentionType:String, id:String) = new play.api.mvc.HandlerRef( controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String])) ) // @LINE:16 def getUserConsensusStatus(id:String, name:String) = new play.api.mvc.HandlerRef( controllers.Claim.getUserConsensusStatus(id, name), HandlerDef(this, "controllers.Claim", "getUserConsensusStatus", Seq(classOf[String], classOf[String])) ) // @LINE:13 def getClaimInfo(id:String) = new play.api.mvc.HandlerRef( controllers.Claim.getClaimInfo(id), HandlerDef(this, "controllers.Claim", "getClaimInfo", Seq(classOf[String])) ) // @LINE:14 def getClaimTree(id:String) = new play.api.mvc.HandlerRef( controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String])) ) } // @LINE:26 // @LINE:25 // @LINE:6 class ReverseApplication { // @LINE:26 def test() = new play.api.mvc.HandlerRef( controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Seq()) ) // @LINE:6 def index() = new play.api.mvc.HandlerRef( controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Seq()) ) // @LINE:25 def hello() = new play.api.mvc.HandlerRef( controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Seq()) ) } // @LINE:30 class ReverseAssets { // @LINE:30 def at(path:String, file:String) = new play.api.mvc.HandlerRef( controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])) ) } // @LINE:12 // @LINE:11 // @LINE:10 // @LINE:9 // @LINE:8 // @LINE:7 class ReverseUser { // @LINE:8 def createUser(name:String) = new play.api.mvc.HandlerRef( controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String])) ) // @LINE:10 def getUserRequests(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String])) ) // @LINE:9 def getUser(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String])) ) // @LINE:7 def getAllUsers() = new play.api.mvc.HandlerRef( controllers.User.getAllUsers(), HandlerDef(this, "controllers.User", "getAllUsers", Seq()) ) // @LINE:11 def getUserConsensus(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String])) ) // @LINE:12 def getUserClaims(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String])) ) } }