Mercurial > hg > Members > nobuyasu > Consensus
annotate target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala @ 26:ad7cfb1f9d03
modified checkconsensus
author | one |
---|---|
date | Wed, 03 Oct 2012 03:52:03 +0900 |
parents | a134edaebf6f |
children | 80b5628f17d8 |
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 |
26 | 2 // @HASH:18c4a2571c38e53750b3b1ef9f8731961460e5c9 |
3 // @DATE:Wed Oct 03 02:51:34 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 | |
17 | 15 // @LINE:22 |
16 // @LINE:18 | |
11 | 17 // @LINE:17 |
26 | 18 // @LINE:14 |
17 | 19 // @LINE:13 |
11 | 20 // @LINE:11 |
21 // @LINE:10 | |
9 | 22 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
23 // @LINE:8 |
0 | 24 // @LINE:7 |
25 // @LINE:6 | |
26 package controllers { | |
27 | |
26 | 28 // @LINE:14 |
17 | 29 // @LINE:13 |
30 class ReverseClaim { | |
31 | |
32 | |
33 | |
34 | |
35 // @LINE:13 | |
36 def crateClaim() = { | |
37 Call("POST", "/claims/create") | |
38 } | |
39 | |
26 | 40 |
41 // @LINE:14 | |
42 def createMention(mentionType:String, id:String) = { | |
43 Call("POST", "/claims/" + implicitly[PathBindable[String]].unbind("mentionType", mentionType) + "/" + implicitly[PathBindable[String]].unbind("id", id) + "/create") | |
44 } | |
45 | |
17 | 46 |
47 | |
48 | |
49 } | |
50 | |
51 | |
52 // @LINE:18 | |
11 | 53 // @LINE:17 |
0 | 54 // @LINE:6 |
55 class ReverseApplication { | |
56 | |
57 | |
58 | |
59 | |
17 | 60 // @LINE:18 |
9 | 61 def test() = { |
62 Call("GET", "/test") | |
63 } | |
64 | |
65 | |
0 | 66 // @LINE:6 |
67 def index() = { | |
68 Call("GET", "/") | |
69 } | |
70 | |
71 | |
17 | 72 // @LINE:17 |
0 | 73 def hello() = { |
9 | 74 Call("POST", "/hello") |
0 | 75 } |
76 | |
77 | |
78 | |
79 | |
80 } | |
81 | |
82 | |
17 | 83 // @LINE:22 |
0 | 84 class ReverseAssets { |
85 | |
86 | |
87 | |
88 | |
17 | 89 // @LINE:22 |
0 | 90 def at(file:String) = { |
91 Call("GET", "/assets/" + implicitly[PathBindable[String]].unbind("file", file)) | |
92 } | |
93 | |
94 | |
95 | |
96 | |
97 } | |
98 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
99 |
11 | 100 // @LINE:11 |
101 // @LINE:10 | |
9 | 102 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
103 // @LINE:8 |
9 | 104 // @LINE:7 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
105 class ReverseUser { |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
106 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
107 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
108 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
109 |
14 | 110 // @LINE:7 |
111 def createUser(name:String) = { | |
112 Call("PUT", "/users/create/" + implicitly[PathBindable[String]].unbind("name", name)) | |
113 } | |
114 | |
115 | |
9 | 116 // @LINE:9 |
117 def getUserRequests(name:String) = { | |
118 Call("GET", "/users/requests/" + implicitly[PathBindable[String]].unbind("name", name)) | |
119 } | |
120 | |
121 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
122 // @LINE:8 |
9 | 123 def getUser(name:String) = { |
124 Call("GET", "/users/browse/" + implicitly[PathBindable[String]].unbind("name", name)) | |
125 } | |
126 | |
127 | |
11 | 128 // @LINE:10 |
129 def getUserConsensus(name:String) = { | |
130 Call("GET", "/users/consensus/" + implicitly[PathBindable[String]].unbind("name", name)) | |
131 } | |
132 | |
133 | |
134 // @LINE:11 | |
135 def getUserClaims(name:String) = { | |
136 Call("GET", "/users/claims/" + implicitly[PathBindable[String]].unbind("name", name)) | |
137 } | |
138 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
139 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
140 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
141 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
142 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
143 |
0 | 144 } |
145 | |
146 | |
147 | |
17 | 148 // @LINE:22 |
149 // @LINE:18 | |
11 | 150 // @LINE:17 |
26 | 151 // @LINE:14 |
17 | 152 // @LINE:13 |
11 | 153 // @LINE:11 |
154 // @LINE:10 | |
9 | 155 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
156 // @LINE:8 |
0 | 157 // @LINE:7 |
158 // @LINE:6 | |
159 package controllers.javascript { | |
160 | |
26 | 161 // @LINE:14 |
17 | 162 // @LINE:13 |
163 class ReverseClaim { | |
164 | |
165 | |
166 | |
167 | |
168 // @LINE:13 | |
169 def crateClaim = JavascriptReverseRoute( | |
170 "controllers.Claim.crateClaim", | |
171 """ | |
172 function() { | |
173 return _wA({method:"POST", url:"/claims/create"}) | |
174 } | |
175 """ | |
176 ) | |
177 | |
26 | 178 |
179 // @LINE:14 | |
180 def createMention = JavascriptReverseRoute( | |
181 "controllers.Claim.createMention", | |
182 """ | |
183 function(mentionType,id) { | |
184 return _wA({method:"POST", url:"/claims/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("mentionType", mentionType) + "/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("id", id) + "/create"}) | |
185 } | |
186 """ | |
187 ) | |
188 | |
17 | 189 |
190 | |
191 | |
192 } | |
193 | |
194 | |
195 // @LINE:18 | |
11 | 196 // @LINE:17 |
0 | 197 // @LINE:6 |
198 class ReverseApplication { | |
199 | |
200 | |
201 | |
202 | |
17 | 203 // @LINE:18 |
9 | 204 def test = JavascriptReverseRoute( |
205 "controllers.Application.test", | |
206 """ | |
207 function() { | |
208 return _wA({method:"GET", url:"/test"}) | |
209 } | |
210 """ | |
211 ) | |
212 | |
213 | |
0 | 214 // @LINE:6 |
215 def index = JavascriptReverseRoute( | |
216 "controllers.Application.index", | |
217 """ | |
218 function() { | |
219 return _wA({method:"GET", url:"/"}) | |
220 } | |
221 """ | |
222 ) | |
223 | |
224 | |
17 | 225 // @LINE:17 |
0 | 226 def hello = JavascriptReverseRoute( |
227 "controllers.Application.hello", | |
228 """ | |
229 function() { | |
9 | 230 return _wA({method:"POST", url:"/hello"}) |
0 | 231 } |
232 """ | |
233 ) | |
234 | |
235 | |
236 | |
237 | |
238 } | |
239 | |
240 | |
17 | 241 // @LINE:22 |
0 | 242 class ReverseAssets { |
243 | |
244 | |
245 | |
246 | |
17 | 247 // @LINE:22 |
0 | 248 def at = JavascriptReverseRoute( |
249 "controllers.Assets.at", | |
250 """ | |
251 function(file) { | |
252 return _wA({method:"GET", url:"/assets/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("file", file)}) | |
253 } | |
254 """ | |
255 ) | |
256 | |
257 | |
258 | |
259 | |
260 } | |
261 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
262 |
11 | 263 // @LINE:11 |
264 // @LINE:10 | |
9 | 265 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
266 // @LINE:8 |
9 | 267 // @LINE:7 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
268 class ReverseUser { |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
269 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
270 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
271 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
272 |
14 | 273 // @LINE:7 |
274 def createUser = JavascriptReverseRoute( | |
275 "controllers.User.createUser", | |
276 """ | |
277 function(name) { | |
278 return _wA({method:"PUT", url:"/users/create/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) | |
279 } | |
280 """ | |
281 ) | |
282 | |
283 | |
9 | 284 // @LINE:9 |
285 def getUserRequests = JavascriptReverseRoute( | |
286 "controllers.User.getUserRequests", | |
287 """ | |
288 function(name) { | |
289 return _wA({method:"GET", url:"/users/requests/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) | |
290 } | |
291 """ | |
292 ) | |
293 | |
294 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
295 // @LINE:8 |
9 | 296 def getUser = JavascriptReverseRoute( |
297 "controllers.User.getUser", | |
298 """ | |
299 function(name) { | |
300 return _wA({method:"GET", url:"/users/browse/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) | |
301 } | |
302 """ | |
303 ) | |
304 | |
305 | |
11 | 306 // @LINE:10 |
307 def getUserConsensus = JavascriptReverseRoute( | |
308 "controllers.User.getUserConsensus", | |
309 """ | |
310 function(name) { | |
311 return _wA({method:"GET", url:"/users/consensus/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) | |
312 } | |
313 """ | |
314 ) | |
315 | |
316 | |
317 // @LINE:11 | |
318 def getUserClaims = JavascriptReverseRoute( | |
319 "controllers.User.getUserClaims", | |
320 """ | |
321 function(name) { | |
322 return _wA({method:"GET", url:"/users/claims/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) | |
323 } | |
324 """ | |
325 ) | |
326 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
327 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
328 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
329 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
330 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
331 |
0 | 332 } |
333 | |
334 | |
335 | |
17 | 336 // @LINE:22 |
337 // @LINE:18 | |
11 | 338 // @LINE:17 |
26 | 339 // @LINE:14 |
17 | 340 // @LINE:13 |
11 | 341 // @LINE:11 |
342 // @LINE:10 | |
9 | 343 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
344 // @LINE:8 |
0 | 345 // @LINE:7 |
346 // @LINE:6 | |
347 package controllers.ref { | |
348 | |
26 | 349 // @LINE:14 |
17 | 350 // @LINE:13 |
351 class ReverseClaim { | |
352 | |
353 | |
354 | |
355 | |
356 // @LINE:13 | |
357 def crateClaim() = new play.api.mvc.HandlerRef( | |
358 controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Seq()) | |
359 ) | |
360 | |
26 | 361 |
362 // @LINE:14 | |
363 def createMention(mentionType:String, id:String) = new play.api.mvc.HandlerRef( | |
364 controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String])) | |
365 ) | |
366 | |
17 | 367 |
368 | |
369 | |
370 } | |
371 | |
372 | |
373 // @LINE:18 | |
11 | 374 // @LINE:17 |
0 | 375 // @LINE:6 |
376 class ReverseApplication { | |
377 | |
378 | |
379 | |
380 | |
17 | 381 // @LINE:18 |
9 | 382 def test() = new play.api.mvc.HandlerRef( |
383 controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Seq()) | |
384 ) | |
385 | |
386 | |
0 | 387 // @LINE:6 |
388 def index() = new play.api.mvc.HandlerRef( | |
389 controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Seq()) | |
390 ) | |
391 | |
392 | |
17 | 393 // @LINE:17 |
0 | 394 def hello() = new play.api.mvc.HandlerRef( |
395 controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Seq()) | |
396 ) | |
397 | |
398 | |
399 | |
400 | |
401 } | |
402 | |
403 | |
17 | 404 // @LINE:22 |
0 | 405 class ReverseAssets { |
406 | |
407 | |
408 | |
409 | |
17 | 410 // @LINE:22 |
0 | 411 def at(path:String, file:String) = new play.api.mvc.HandlerRef( |
412 controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])) | |
413 ) | |
414 | |
415 | |
416 | |
417 | |
418 } | |
419 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
420 |
11 | 421 // @LINE:11 |
422 // @LINE:10 | |
9 | 423 // @LINE:9 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
424 // @LINE:8 |
9 | 425 // @LINE:7 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
426 class ReverseUser { |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
427 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
428 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
429 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
430 |
14 | 431 // @LINE:7 |
432 def createUser(name:String) = new play.api.mvc.HandlerRef( | |
433 controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String])) | |
434 ) | |
435 | |
436 | |
9 | 437 // @LINE:9 |
438 def getUserRequests(name:String) = new play.api.mvc.HandlerRef( | |
439 controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String])) | |
440 ) | |
441 | |
442 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
443 // @LINE:8 |
9 | 444 def getUser(name:String) = new play.api.mvc.HandlerRef( |
445 controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String])) | |
446 ) | |
447 | |
448 | |
11 | 449 // @LINE:10 |
450 def getUserConsensus(name:String) = new play.api.mvc.HandlerRef( | |
451 controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String])) | |
452 ) | |
453 | |
454 | |
455 // @LINE:11 | |
456 def getUserClaims(name:String) = new play.api.mvc.HandlerRef( | |
457 controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String])) | |
458 ) | |
459 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
460 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
461 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
462 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
463 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
464 |
0 | 465 } |
466 | |
467 |