01: package de.webman.acl.resolver;
02:
03: import com.teamkonzept.lib.TKException;
04:
05: /**
06: * Interface for access right checkers.
07: *
08: * @version 1.0
09: * @since 1.0
10: * @author © 2001 Webman AG
11: */
12: public interface Checker extends Resolver {
13:
14: // $Header: /cvsroot/webman-cms/source/webman/de/webman/acl/resolver/Checker.java,v 1.1 2001/08/20 08:25:09 mischa Exp $
15:
16: // Method signatures
17:
18: /**
19: * This method is provided to check if a particular event is permitted
20: * for a login (user or group) in the current application state. The
21: * application state is determined by the context, an object type and an
22: * object reference.
23: * <P>
24: * If the optional arguments are omitted, only the context-wide
25: * access rights are checked, otherwise the context-wide as well
26: * as the object-specific access rights are checked. If no applicable
27: * access rights were found, the event is considered to be not permitted.
28: *
29: * @param event the ID if the event to be checked (<I>required</I>).
30: * @param context the ID if the current context (<I>required</I>).
31: * @param type the current object type (<I>optional</I>).
32: * @param reference the current object reference (<I>optional</I>).
33: * @return <CODE>true</CODE> if the event is permitted explicitely,
34: * otherwise <CODE>false</CODE>.
35: * @exception com.teamkonzept.lib.TKException if an error occured during
36: * access right checking.
37: */
38: boolean check(Integer event, Integer context, Integer type,
39: Integer reference) throws TKException;
40:
41: }
|