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.ComponentResources;
19  import org.apache.tapestry5.ioc.annotations.Inject;
20  import org.chenillekit.access.ChenilleKitAccessConstants;
21  import org.chenillekit.access.annotations.Restricted;
22  
23  /**
24   *
25   * @version $Id: RestrictedPage.java 333 2008-11-19 16:26:03Z mlusetti $
26   */
27  @Restricted(role = 2)
28  public class RestrictedPage
29  {
30  	@Inject
31  	private ComponentResources resources;
32  
33  	public String getRoleMetaValue()
34  	{
35  		return resources.getComponentModel().getMeta(ChenilleKitAccessConstants.RESTRICTED_PAGE_ROLE);
36  	}
37  }