01: /*
02: * $Id: NoUsergroup.java 636 2006-04-20 00:14:40Z wrh2 $
03: *
04: * Filename : NoUsergroup.java
05: * Created : 25.06.2004
06: * Project : VQWiki
07: */
08: package vqwiki.users;
09:
10: import java.util.List;
11:
12: /**
13: * Usergroup, if there is no usergroup. This class implements the
14: * default wiki behavior.
15: *
16: * @version $Revision: 636 $ - $Date: 2006-04-20 02:14:40 +0200 (do, 20 apr 2006) $
17: * @author SinnerSchrader (tobsch)
18: */
19: public class NoUsergroup extends Usergroup {
20:
21: /**
22: * Get an instance of the user group class.
23: * @return Instance to the user group class
24: * @see vqwiki.users.Usergroup#getInstance()
25: */
26: public static Usergroup getInstance() {
27: return new NoUsergroup();
28: }
29:
30: /**
31: * Get the full name of an user by its user-ID
32: * @param uid The user-ID of this user
33: * @return The full name of this user
34: * @see vqwiki.users.Usergroup#getFullnameById(java.lang.String)
35: */
36: public String getFullnameById(String uid) {
37: return uid;
38: }
39:
40: /**
41: * Get the email address of an user by its user-ID
42: * @param uid The user-ID of this user
43: * @return The email address of this user
44: * @see vqwiki.users.Usergroup#getKnownEmailById(java.lang.String)
45: */
46: public String getKnownEmailById(String user) {
47: return null;
48: }
49:
50: /**
51: * Get a list of all users.
52: * @return List of all users. The list contains SelectorBeans with the user-ID as key and the full
53: * username as label.
54: * @see vqwiki.servlets.beans.SelectorBean
55: * @see vqwiki.users.Usergroup#getListOfAllUsers()
56: */
57: public List getListOfAllUsers() {
58: return null;
59: }
60:
61: /**
62: * Get the user details of this user by its user-ID. The user details is a string, which is
63: * set in the admin section. It contains some placeholders, which are replaced by values from
64: * the user repository
65: * @param uid The user-ID of this user
66: * @return The user details section
67: * @see vqwiki.users.Usergroup#getUserDetails(java.lang.String)
68: */
69: public String getUserDetails(String uid) {
70: return null;
71: }
72:
73: /**
74: * Contains the repository valid (already confirmed) email addresses?
75: * If yes, then we can skip the registration process and the user is automatically registered.
76: * @return true, if so. false otherwise.
77: * @see vqwiki.users.Usergroup#isEmailValidated()
78: */
79: public boolean isEmailValidated() {
80: return false;
81: }
82: }
83:
84: /*
85: * Log:
86: *
87: * $Log$
88: * Revision 1.2 2006/04/20 00:14:40 wrh2
89: * Coding style updates (VQW-73).
90: *
91: * Revision 1.1 2004/06/28 09:37:19 mrgadget4711
92: * Classes for User groups
93: *
94: * ------------END------------
95: */
|