1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.chenillekit.access.pages;
17
18 import org.apache.tapestry5.annotations.OnEvent;
19 import org.chenillekit.access.annotations.Restricted;
20
21
22
23
24
25 public class UnRestrictedPage
26 {
27 @Restricted(groups = { "ADMINS" })
28 void onActionFromTestRights()
29 {
30 throw new RuntimeException("This should never be reached!");
31 }
32
33 @Restricted(groups = { "ADMINS" })
34 @OnEvent(component = "testRightsOnEvent")
35 void thisThrowRuntimeException()
36 {
37 throw new RuntimeException("This one too!");
38 }
39 }