KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > securitymgr > SecurityMgrIF


1 /*
2  * SecurityManagerIF.java
3  *
4  * Created on May 12, 2003, 1:14 PM
5  */

6
7 package com.raptus.owxv3.api.securitymgr;
8
9 import java.util.Locale JavaDoc;
10
11 import com.raptus.owxv3.*;
12
13 /**
14  * Interface to be implemented by Security managers
15  * @author jancsi
16  */

17 public interface SecurityMgrIF
18 {
19     /**
20      * Check to see if user has access to this vmodule.
21      * The user and the required info should be taken from the object passed to
22      * factory, when this SecurityManager was created.
23      *
24      * @param vm the vmodule for wich we are checking access rights
25      * @return true if the user has access to this vmodule
26      * false if user does not have access to this vmodule
27      */

28     boolean hasAccess(VModule vm);
29     
30     /**
31      * Check to see if user has access to this section.
32      * The user and the required info should be taken from the object passed to
33      * factory, when this SecurityManager was created.
34      *
35      * @param section the section for wich we are checking access rights
36      * @return true if the user has access to this section
37      * false if user does not have access to this section
38      */

39     boolean hasAccess(VModuleSection section);
40     
41     /**
42      * Check to see if user has access to this element.
43      * The user and the required info should be taken from the object passed to
44      * factory, when this SecurityManager was created.
45      *
46      * @param element the element for wich we are checking access rights
47      * @return true if the user has access to this element
48      * false if user does not have access to this element
49      */

50     boolean hasAccess(VModuleSectionElement element);
51     
52     /**
53      * Return the current user's locale
54      *
55      * @return the Locale of the curent user
56      */

57     public Locale JavaDoc getLocale();
58     
59     /**
60      * return true if user needs to log in
61      *
62      * @return true if user has to log in
63      */

64     boolean needLogin(VModuleSectionElement element);
65 }
66
Popular Tags