de.kosi.model
Class ComputerPlayerUserImpl
java.lang.Object
|
+--de.kosi.model.UserImpl
|
+--de.kosi.model.ComputerPlayerUserImpl
- All Implemented Interfaces:
- java.rmi.Remote, java.io.Serializable, User
- public class ComputerPlayerUserImpl
- extends UserImpl
A user implementation for computer players.
ChangeLog:
$Log: ComputerPlayerUserImpl.java,v $
Revision 1.2 2001/08/27 17:48:53 meijer
*** empty log message ***
Revision 1.1 2001/08/21 14:16:07 betacarotine
Added the user implementation needed for computer players.
- Version:
- $Revision: 1.2 $ ($Date: 2001/08/27 17:48:53 $)
- Author:
- PG KoSI, Fachbereich Informatik, Universitaet Oldenburg
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
USERNAME
|
Method Summary |
java.lang.String |
getPassword()
|
void |
setOfflineCallback(java.lang.Runnable offlineCallback)
|
void |
setOnline(boolean online)
Sets whether this user is currently online or offline. |
void |
setOnlineCallback(java.lang.Runnable onlineCallback)
|
void |
setPassword(java.lang.String password,
java.lang.String oldPassword)
Sets the password. |
Methods inherited from class de.kosi.model.UserImpl |
addUserListener, checkPassword, createRandomPassword, destroy, equals, getConventions, getEMail, getLocale, getLoginName, getSession, getStrength, getTimeZone, isAdmin, isOnline, removeUserListener, sendMail, setEMail, setLocale, setSession, setStrength, setTimeZone, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
USERNAME
public static final java.lang.String USERNAME
ComputerPlayerUserImpl
public ComputerPlayerUserImpl()
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.
getPassword
public java.lang.String getPassword()
- Overrides:
getPassword
in class UserImpl
setOnlineCallback
public void setOnlineCallback(java.lang.Runnable onlineCallback)
setOfflineCallback
public void setOfflineCallback(java.lang.Runnable offlineCallback)
setOnline
public void setOnline(boolean online)
- Description copied from class:
UserImpl
- Sets whether this user is currently online or offline.
- Overrides:
setOnline
in class UserImpl
- Following copied from class:
de.kosi.model.UserImpl
- Parameters:
online
- true if the user is going online, otherwise false.