0
|
1 package nabble.view.web.template;
|
|
2
|
|
3 import nabble.model.ModelException;
|
|
4 import nabble.model.Site;
|
|
5 import nabble.naml.compiler.Command;
|
|
6 import nabble.naml.compiler.IPrintWriter;
|
|
7 import nabble.naml.compiler.Interpreter;
|
|
8 import nabble.naml.compiler.Namespace;
|
|
9
|
|
10 @Namespace(
|
|
11 name = "registration",
|
|
12 global = false
|
|
13 )
|
|
14 public class RegistrationNamespace {
|
|
15
|
|
16 private String key;
|
|
17
|
|
18 public RegistrationNamespace(Site site, String email, String password, String userName, String nextUrl)
|
|
19 throws ModelException
|
|
20 {
|
|
21 this.key = site.newRegistration(email,password,userName,nextUrl);
|
|
22 }
|
|
23
|
|
24 @Command("key") public void _key(IPrintWriter out, Interpreter interp) {
|
|
25 out.print(key);
|
|
26 }
|
|
27 }
|