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 package org.chenillekit.access.services;
15
16 /**
17 *
18 * @version $Id: AccessValidator.java 333 2008-11-19 16:26:03Z mlusetti $
19 *
20 */
21 public interface AccessValidator
22 {
23 /**
24 * Check the rights of the user for the page requested
25 *
26 * @param pageName name of the page
27 * @param componentId component id (not used yet)
28 * @param eventType event type (not used yet)
29 *
30 * @return if true then leave the chain
31 */
32 public boolean hasAccess(String pageName, String componentId, String eventType);
33
34 }