1 package de.webman.acl.resolver;2 3 import com.teamkonzept.lib.TKException;4 5 /**6 * Interface for access right checkers.7 *8 * @version 1.09 * @since 1.010 * @author © 2001 Webman AG11 */12 public interface Checker13 extends Resolver14 {15 16 // $Header: /cvsroot/webman-cms/source/webman/de/webman/acl/resolver/Checker.java,v 1.1 2001/08/20 08:25:09 mischa Exp $17 18 // Method signatures19 20 /**21 * This method is provided to check if a particular event is permitted22 * for a login (user or group) in the current application state. The23 * application state is determined by the context, an object type and an24 * object reference.25 * <P>26 * If the optional arguments are omitted, only the context-wide27 * access rights are checked, otherwise the context-wide as well28 * as the object-specific access rights are checked. If no applicable29 * access rights were found, the event is considered to be not permitted.30 *31 * @param event the ID if the event to be checked (<I>required</I>).32 * @param context the ID if the current context (<I>required</I>).33 * @param type the current object type (<I>optional</I>).34 * @param reference the current object reference (<I>optional</I>).35 * @return <CODE>true</CODE> if the event is permitted explicitely,36 * otherwise <CODE>false</CODE>.37 * @exception com.teamkonzept.lib.TKException if an error occured during38 * access right checking.39 */40 boolean check (Integer event,41 Integer context,42 Integer type,43 Integer reference)44 throws TKException;45 46 }47