KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > acl > User


1 package de.webman.acl;
2
3 import com.teamkonzept.lib.TKException;
4 import com.teamkonzept.lib.TKVector;
5 import de.webman.acl.db.LoginDBData;
6
7 /**
8  * A user represents a single user. It may be a child of one or more user
9  * groups, but cannot be a parent of other login objects.
10  *
11  * @version 1.0
12  * @since 1.0
13  * @author © 2001 Webman AG
14  */

15 public class User
16     extends Login
17 {
18
19     // $Header: /cvsroot/webman-cms/source/webman/de/webman/acl/User.java,v 1.1 2001/08/20 08:25:07 mischa Exp $
20

21     // Constructors
22

23     /**
24      * Provide instantion only to package classes or subclasses.
25      *
26      * @param data the initial profile data.
27      */

28     protected User (LoginDBData data)
29     {
30         super(data);
31     }
32
33
34     // Method implementations
35

36     /**
37      * Returns the factory of the object.
38      *
39      * @return the factory of the object.
40      * @exception com.teamkonzept.lib.TKException if an error occured during factory retrieval.
41      */

42     public final ObjectFactory getFactory ()
43         throws TKException
44     {
45         return UserFactory.getInstance();
46     }
47
48     /**
49      * Checks wether this login object represents a user.
50      *
51      * @return <CODE>true</CODE>.
52      */

53     public final boolean isUser ()
54     {
55         return true;
56     }
57
58     /**
59      * Checks wether this login object represents a profile.
60      *
61      * @return <CODE>false</CODE>.
62      */

63     public final boolean isProfile ()
64     {
65         return false;
66     }
67
68     /**
69      * Checks wether this login object is a parent of the given login object.
70      *
71      * @param login the login object.
72      * @return <CODE>false</CODE>.
73      */

74     public final boolean isParent (Login login)
75     {
76         return false;
77     }
78
79 }
80
Popular Tags