|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.chat.business.ChatUser
public class ChatUser
This class provides methods for the management of the chat users
| Field Summary | |
|---|---|
static int |
MODE_BAN
|
static int |
MODE_DEBAN
|
static int |
MODE_OP
|
static int |
MODE_USER
|
static int |
MODE_VOICE
|
| Constructor Summary | |
|---|---|
ChatUser(java.lang.String strNickname)
Creates a new ChatUser object |
|
| Method Summary | |
|---|---|
void |
addChatEntry(ChatEntry entry)
Adds an entry to the ChatEntries Vector |
void |
addSentData(java.lang.String strText)
Adds text to the user's list of sent data |
java.lang.String |
getAwayComment()
Returns the absence comment |
java.util.Enumeration |
getChatEntries()
Return the entries of the chat |
java.lang.String |
getHostName()
Returns the host name of this user |
java.lang.String |
getIpAddress()
Returns the ip address of this user |
long |
getJoinTime()
Returns the time when this user entered the chat room |
java.lang.String |
getKickComment()
Returns the comment shown when this user is kicked out of the chat room |
java.util.Date |
getLastAccessTime()
Returns the date of the last access of this user to the chat room |
int |
getMode()
Return the mode of this user |
java.lang.String |
getNickname()
Returns the nickname of this user |
int |
getSentDataSizeSince(long lSeconds)
Returns the amount of data sent for the last n seconds. |
boolean |
hasNewPseudo()
Returns the boolean which define if the user has set a new pseudonym |
boolean |
isAway()
Returns the attribute which define if this user is absent |
boolean |
isKicked()
Returns the boolean which shows if this user has been kicked out the chat room |
void |
kick(java.lang.String strComment)
Kicks this user out of the chat room |
void |
setAway(boolean bAway)
Sets the attribute which define if this user is absent |
void |
setAway(java.lang.String strComment)
Sets this user as absent and add a comment |
void |
setHostName(java.lang.String strHostName)
Sets the host name of this user with the specified parameter |
void |
setIpAddress(java.lang.String strIpAddress)
Sets the ip address of this user with the specified parameter |
void |
setLastAccessTime(java.util.Date dateLastAccess)
Sets the host name of this user with the specified parameter |
void |
setMode(int nMode)
Sets the mode of this user |
void |
setNewPseudo(boolean bNewPseudo)
Set the boolean which define if the user has set a new pseudonym |
void |
setNickname(java.lang.String strNickname)
Sets the nickname of this user with the specified parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_USER
public static final int MODE_VOICE
public static final int MODE_OP
public static final int MODE_BAN
public static final int MODE_DEBAN
| Constructor Detail |
|---|
public ChatUser(java.lang.String strNickname)
strNickname - The nick name of the user| Method Detail |
|---|
public final void setNickname(java.lang.String strNickname)
strNickname - The type as an intpublic java.lang.String getNickname()
public void setIpAddress(java.lang.String strIpAddress)
strIpAddress - The String ip addresspublic java.lang.String getIpAddress()
public void setHostName(java.lang.String strHostName)
strHostName - The String host namepublic java.lang.String getHostName()
public void setLastAccessTime(java.util.Date dateLastAccess)
dateLastAccess - The String host namepublic java.util.Date getLastAccessTime()
public long getJoinTime()
public void addChatEntry(ChatEntry entry)
entry - The ChatEntry objectpublic java.util.Enumeration getChatEntries()
public void setMode(int nMode)
nMode - nMode The mode of this userpublic int getMode()
public void setAway(boolean bAway)
bAway - The new valuepublic void setAway(java.lang.String strComment)
strComment - the comment of the absencepublic boolean isAway()
public java.lang.String getAwayComment()
public boolean hasNewPseudo()
public void setNewPseudo(boolean bNewPseudo)
bNewPseudo - the boolean which define if the user has set a new pseudonympublic void kick(java.lang.String strComment)
strComment - A comment about the kickpublic boolean isKicked()
public java.lang.String getKickComment()
public void addSentData(java.lang.String strText)
strText - The text to addpublic int getSentDataSizeSince(long lSeconds)
lSeconds - The number of seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||