1   /*
2    * Apache License
3    * Version 2.0, January 2004
4    * http://www.apache.org/licenses/
5    *
6    * Copyright 2008 by chenillekit.org
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
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   * @version $Id: UnRestrictedPage.java 333 2008-11-19 16:26:03Z mlusetti $
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  }