comparison target/scala-2.9.1/src_managed/main/routes_routing.scala @ 42:4321d97da830

modified updateUserConsensusStatus
author one
date Thu, 04 Oct 2012 04:15:14 +0900
parents 1d5c086e069b
children a76259e2ca9f
comparison
equal deleted inserted replaced
41:f78442777849 42:4321d97da830
1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes 1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes
2 // @HASH:0d161c51591c2cc11bf38fb7f107b713d79cc370 2 // @HASH:6a5ff5e69f08e272e929ec024197558b3eee836d
3 // @DATE:Thu Oct 04 01:56:05 JST 2012 3 // @DATE:Thu Oct 04 02:27:02 JST 2012
4 4
5 import play.core._ 5 import play.core._
6 import play.core.Router._ 6 import play.core.Router._
7 import play.core.j._ 7 import play.core.j._
8 8
56 56
57 // @LINE:16 57 // @LINE:16
58 val controllers_Claim_getUserConsensusStatus10 = Route("GET", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+""")))) 58 val controllers_Claim_getUserConsensusStatus10 = Route("GET", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+"""))))
59 59
60 60
61 // @LINE:17
62 val controllers_Claim_updateUserConsensusStatus11 = Route("POST", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+"""),StaticPart("/"),DynamicPart("status", """[^/]+"""))))
63
64
65 // @LINE:18
66 val controllers_Claim_crateClaim12 = Route("POST", PathPattern(List(StaticPart("/claims/create"))))
67
68
61 // @LINE:19 69 // @LINE:19
62 val controllers_Claim_crateClaim11 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) 70 val controllers_Claim_createMention13 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create"))))
63 71
64 72
65 // @LINE:20 73 // @LINE:20
66 val controllers_Claim_createMention12 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) 74 val controllers_Claim_editClaim14 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+"""))))
67 75
68 76
69 // @LINE:21 77 // @LINE:24
70 val controllers_Claim_editClaim13 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) 78 val controllers_Application_hello15 = Route("POST", PathPattern(List(StaticPart("/hello"))))
71 79
72 80
73 // @LINE:25 81 // @LINE:25
74 val controllers_Application_hello14 = Route("POST", PathPattern(List(StaticPart("/hello")))) 82 val controllers_Application_test16 = Route("GET", PathPattern(List(StaticPart("/test"))))
75 83
76 84
77 // @LINE:26 85 // @LINE:29
78 val controllers_Application_test15 = Route("GET", PathPattern(List(StaticPart("/test")))) 86 val controllers_Assets_at17 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+"""))))
79 87
80 88 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""GET""","""/users/all""","""controllers.User.getAllUsers()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""GET""","""/claims/browse/$id<[^/]+>""","""controllers.Claim.getClaimInfo(id:String)"""),("""GET""","""/claims/consensus/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""GET""","""/consensus/browse/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""GET""","""/claims/answer/$id<[^/]+>/$name<[^/]+>""","""controllers.Claim.getUserConsensusStatus(id:String, name:String)"""),("""POST""","""/claims/answer/$id<[^/]+>/$name<[^/]+>/$status<[^/]+>""","""controllers.Claim.updateUserConsensusStatus(id:String, name:String, status:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/claims/edit/$id<[^/]+>""","""controllers.Claim.editClaim(id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)"""))
81 // @LINE:30
82 val controllers_Assets_at16 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+"""))))
83
84 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""GET""","""/users/all""","""controllers.User.getAllUsers()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""GET""","""/claims/browse/$id<[^/]+>""","""controllers.Claim.getClaimInfo(id:String)"""),("""GET""","""/claims/consensus/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""GET""","""/consensus/browse/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""GET""","""/claims/answer/$id<[^/]+>/$name<[^/]+>""","""controllers.Claim.getUserConsensusStatus(id:String, name:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/claims/edit/$id<[^/]+>""","""controllers.Claim.editClaim(id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)"""))
85 89
86 90
87 def routes:PartialFunction[RequestHeader,Handler] = { 91 def routes:PartialFunction[RequestHeader,Handler] = {
88 92
89 // @LINE:6 93 // @LINE:6
172 invokeHandler(_root_.controllers.Claim.getUserConsensusStatus(id, name), HandlerDef(this, "controllers.Claim", "getUserConsensusStatus", Seq(classOf[String], classOf[String]))) 176 invokeHandler(_root_.controllers.Claim.getUserConsensusStatus(id, name), HandlerDef(this, "controllers.Claim", "getUserConsensusStatus", Seq(classOf[String], classOf[String])))
173 } 177 }
174 } 178 }
175 179
176 180
181 // @LINE:17
182 case controllers_Claim_updateUserConsensusStatus11(params) => {
183 call(params.fromPath[String]("id", None), params.fromPath[String]("name", None), params.fromPath[String]("status", None)) { (id, name, status) =>
184 invokeHandler(_root_.controllers.Claim.updateUserConsensusStatus(id, name, status), HandlerDef(this, "controllers.Claim", "updateUserConsensusStatus", Seq(classOf[String], classOf[String], classOf[String])))
185 }
186 }
187
188
189 // @LINE:18
190 case controllers_Claim_crateClaim12(params) => {
191 call {
192 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil))
193 }
194 }
195
196
177 // @LINE:19 197 // @LINE:19
178 case controllers_Claim_crateClaim11(params) => { 198 case controllers_Claim_createMention13(params) => {
179 call {
180 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil))
181 }
182 }
183
184
185 // @LINE:20
186 case controllers_Claim_createMention12(params) => {
187 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => 199 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) =>
188 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) 200 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String])))
189 } 201 }
190 } 202 }
191 203
192 204
193 // @LINE:21 205 // @LINE:20
194 case controllers_Claim_editClaim13(params) => { 206 case controllers_Claim_editClaim14(params) => {
195 call(params.fromPath[String]("id", None)) { (id) => 207 call(params.fromPath[String]("id", None)) { (id) =>
196 invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String]))) 208 invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String])))
197 } 209 }
198 } 210 }
199 211
200 212
213 // @LINE:24
214 case controllers_Application_hello15(params) => {
215 call {
216 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil))
217 }
218 }
219
220
201 // @LINE:25 221 // @LINE:25
202 case controllers_Application_hello14(params) => { 222 case controllers_Application_test16(params) => {
203 call {
204 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil))
205 }
206 }
207
208
209 // @LINE:26
210 case controllers_Application_test15(params) => {
211 call { 223 call {
212 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) 224 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil))
213 } 225 }
214 } 226 }
215 227
216 228
217 // @LINE:30 229 // @LINE:29
218 case controllers_Assets_at16(params) => { 230 case controllers_Assets_at17(params) => {
219 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => 231 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) =>
220 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) 232 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])))
221 } 233 }
222 } 234 }
223 235