de.kosi.model
Class GuestUserImpl
java.lang.Object
|
+--de.kosi.model.UserImpl
|
+--de.kosi.model.GuestUserImpl
- All Implemented Interfaces:
- java.rmi.Remote, java.io.Serializable, User
- public class GuestUserImpl
- extends UserImpl
Implementation of a guest User.
ChangeLog:
$Log: GuestUserImpl.java,v $
Revision 1.3 2001/07/11 10:06:01 jiriki
Fixed Bug 440025.
Revision 1.2 2001/05/11 12:48:19 betacarotine
started guest login implementation
Revision 1.1.1.1 2001/04/29 18:05:17 jiriki
Imported sources from zola.
Revision 1.3 2001/04/17 19:30:08 wombat
Updated Documentation
Revision 1.2 2001/04/09 15:36:18 wombat
Improved UserImpl, removed bugs
Revision 1.1 2001/03/23 10:49:13 wombat
new files
- Version:
- $Revision: 1.3 $ ($Date: 2001/07/11 10:06:01 $)
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
GUEST_USERNAME
Guest user login name start |
|
Method Summary |
boolean |
checkPassword(java.lang.String password)
Checks the password. |
static int |
createGuestNumber()
Creates a new GuestNumber. |
void |
setPassword(java.lang.String password,
java.lang.String oldPassword)
Sets the password. |
| Methods inherited from class de.kosi.model.UserImpl |
addUserListener, createRandomPassword, destroy, equals, getConventions, getEMail, getLocale, getLoginName, getPassword, getSession, getStrength, getTimeZone, isAdmin, isOnline, removeUserListener, sendMail, setEMail, setLocale, setOnline, setSession, setStrength, setTimeZone, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GUEST_USERNAME
public static final java.lang.String GUEST_USERNAME
- Guest user login name start
GuestUserImpl
public GuestUserImpl()
- Create a new GuestUser.
createGuestNumber
public static int createGuestNumber()
- Creates a new GuestNumber.
- Returns:
- A new unique guest number.
checkPassword
public boolean checkPassword(java.lang.String password)
- Checks the password. For a guest, this always returns true.
- Overrides:
checkPassword in class UserImpl
- Parameters:
password - The password.- Returns:
- Everytime true.
setPassword
public void setPassword(java.lang.String password,
java.lang.String oldPassword)
throws PasswordException
- Description copied from class:
UserImpl
- Sets the password.
- Overrides:
setPassword in class UserImpl
- Following copied from class:
de.kosi.model.UserImpl
- Parameters:
password - The new password.oldPassword - The old password used to verify, that the user knows the password.- Throws:
KosiAccessException - If not called by the user himself or an admin.InvalidSessionException - If not called from a valid session context.