Mercurial > hg > Members > nobuyasu > Consensus
annotate 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 |
rev | line source |
---|---|
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes |
42 | 2 // @HASH:6a5ff5e69f08e272e929ec024197558b3eee836d |
3 // @DATE:Thu Oct 04 02:27:02 JST 2012 | |
0 | 4 |
5 import play.core._ | |
6 import play.core.Router._ | |
7 import play.core.j._ | |
8 | |
9 import play.api.mvc._ | |
10 import play.libs.F | |
11 | |
12 import Router.queryString | |
13 | |
14 object Routes extends Router.Routes { | |
15 | |
16 | |
17 // @LINE:6 | |
18 val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/")))) | |
19 | |
20 | |
21 // @LINE:7 | |
40 | 22 val controllers_User_getAllUsers1 = Route("GET", PathPattern(List(StaticPart("/users/all")))) |
0 | 23 |
24 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 // @LINE:8 |
40 | 26 val controllers_User_createUser2 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+""")))) |
9 | 27 |
28 | |
29 // @LINE:9 | |
40 | 30 val controllers_User_getUser3 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+""")))) |
0 | 31 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 |
11 | 33 // @LINE:10 |
40 | 34 val controllers_User_getUserRequests4 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+""")))) |
11 | 35 |
36 | |
37 // @LINE:11 | |
40 | 38 val controllers_User_getUserConsensus5 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+""")))) |
39 | |
40 | |
41 // @LINE:12 | |
42 val controllers_User_getUserClaims6 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
43 |
9 | 44 |
17 | 45 // @LINE:13 |
40 | 46 val controllers_Claim_getClaimInfo7 = Route("GET", PathPattern(List(StaticPart("/claims/browse/"),DynamicPart("id", """[^/]+""")))) |
9 | 47 |
48 | |
26 | 49 // @LINE:14 |
40 | 50 val controllers_Claim_getClaimTree8 = Route("GET", PathPattern(List(StaticPart("/claims/consensus/"),DynamicPart("id", """[^/]+""")))) |
51 | |
52 | |
53 // @LINE:15 | |
54 val controllers_Claim_getClaimTree9 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/"),DynamicPart("id", """[^/]+""")))) | |
30 | 55 |
56 | |
57 // @LINE:16 | |
40 | 58 val controllers_Claim_getUserConsensusStatus10 = Route("GET", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+""")))) |
32 | 59 |
60 | |
42 | 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 | |
37 | 69 // @LINE:19 |
42 | 70 val controllers_Claim_createMention13 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) |
30 | 71 |
72 | |
40 | 73 // @LINE:20 |
42 | 74 val controllers_Claim_editClaim14 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) |
40 | 75 |
76 | |
42 | 77 // @LINE:24 |
78 val controllers_Application_hello15 = Route("POST", PathPattern(List(StaticPart("/hello")))) | |
17 | 79 |
30 | 80 |
40 | 81 // @LINE:25 |
42 | 82 val controllers_Application_test16 = Route("GET", PathPattern(List(StaticPart("/test")))) |
30 | 83 |
37 | 84 |
42 | 85 // @LINE:29 |
86 val controllers_Assets_at17 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) | |
37 | 87 |
42 | 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)""")) |
0 | 89 |
90 | |
91 def routes:PartialFunction[RequestHeader,Handler] = { | |
92 | |
93 // @LINE:6 | |
94 case controllers_Application_index0(params) => { | |
95 call { | |
96 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) | |
97 } | |
98 } | |
99 | |
100 | |
101 // @LINE:7 | |
40 | 102 case controllers_User_getAllUsers1(params) => { |
103 call { | |
104 invokeHandler(_root_.controllers.User.getAllUsers(), HandlerDef(this, "controllers.User", "getAllUsers", Nil)) | |
105 } | |
106 } | |
107 | |
108 | |
109 // @LINE:8 | |
110 case controllers_User_createUser2(params) => { | |
9 | 111 call(params.fromPath[String]("name", None)) { (name) => |
14 | 112 invokeHandler(_root_.controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))) |
9 | 113 } |
114 } | |
115 | |
116 | |
40 | 117 // @LINE:9 |
118 case controllers_User_getUser3(params) => { | |
9 | 119 call(params.fromPath[String]("name", None)) { (name) => |
120 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) | |
121 } | |
122 } | |
123 | |
124 | |
40 | 125 // @LINE:10 |
126 case controllers_User_getUserRequests4(params) => { | |
9 | 127 call(params.fromPath[String]("name", None)) { (name) => |
128 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) | |
129 } | |
130 } | |
131 | |
132 | |
40 | 133 // @LINE:11 |
134 case controllers_User_getUserConsensus5(params) => { | |
11 | 135 call(params.fromPath[String]("name", None)) { (name) => |
136 invokeHandler(_root_.controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))) | |
137 } | |
138 } | |
139 | |
140 | |
40 | 141 // @LINE:12 |
142 case controllers_User_getUserClaims6(params) => { | |
11 | 143 call(params.fromPath[String]("name", None)) { (name) => |
144 invokeHandler(_root_.controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String]))) | |
145 } | |
146 } | |
147 | |
148 | |
17 | 149 // @LINE:13 |
40 | 150 case controllers_Claim_getClaimInfo7(params) => { |
30 | 151 call(params.fromPath[String]("id", None)) { (id) => |
152 invokeHandler(_root_.controllers.Claim.getClaimInfo(id), HandlerDef(this, "controllers.Claim", "getClaimInfo", Seq(classOf[String]))) | |
153 } | |
154 } | |
155 | |
156 | |
157 // @LINE:14 | |
40 | 158 case controllers_Claim_getClaimTree8(params) => { |
159 call(params.fromPath[String]("id", None)) { (id) => | |
160 invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) | |
161 } | |
162 } | |
163 | |
164 | |
165 // @LINE:15 | |
166 case controllers_Claim_getClaimTree9(params) => { | |
30 | 167 call(params.fromPath[String]("id", None)) { (id) => |
168 invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) | |
169 } | |
170 } | |
171 | |
172 | |
173 // @LINE:16 | |
40 | 174 case controllers_Claim_getUserConsensusStatus10(params) => { |
175 call(params.fromPath[String]("id", None), params.fromPath[String]("name", None)) { (id, name) => | |
176 invokeHandler(_root_.controllers.Claim.getUserConsensusStatus(id, name), HandlerDef(this, "controllers.Claim", "getUserConsensusStatus", Seq(classOf[String], classOf[String]))) | |
177 } | |
178 } | |
179 | |
180 | |
42 | 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) => { | |
17 | 191 call { |
192 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil)) | |
193 } | |
194 } | |
195 | |
196 | |
42 | 197 // @LINE:19 |
198 case controllers_Claim_createMention13(params) => { | |
26 | 199 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => |
200 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) | |
201 } | |
202 } | |
203 | |
204 | |
42 | 205 // @LINE:20 |
206 case controllers_Claim_editClaim14(params) => { | |
37 | 207 call(params.fromPath[String]("id", None)) { (id) => |
208 invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String]))) | |
209 } | |
210 } | |
211 | |
212 | |
42 | 213 // @LINE:24 |
214 case controllers_Application_hello15(params) => { | |
0 | 215 call { |
216 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) | |
217 } | |
218 } | |
219 | |
220 | |
42 | 221 // @LINE:25 |
222 case controllers_Application_test16(params) => { | |
9 | 223 call { |
224 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
225 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
226 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
227 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
228 |
42 | 229 // @LINE:29 |
230 case controllers_Assets_at17(params) => { | |
0 | 231 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => |
232 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) | |
233 } | |
234 } | |
235 | |
236 } | |
237 | |
238 } | |
239 |