de.knup.jedi.jayshare
Class UserLookupList
java.lang.Object
|
+--de.knup.jedi.jayshare.UserLookupList
- public class UserLookupList
- extends java.lang.Object
UserLookupList assigns hashed Jabber IDs to nick names in the
conference.
- Version:
- 0.1 $Revision: 1.4 $
- Author:
- B. Pietsch
Field Summary |
private java.util.TreeMap |
tree
The hashedID -> nick name map. |
Method Summary |
java.lang.String |
dump()
for debugging only |
java.lang.String |
getHashedID(java.lang.String nick)
|
java.lang.String |
getNickname(java.lang.String hashedID)
|
void |
insertPair(java.lang.String hashedID,
java.lang.String nick)
Assign a nick name to a hashed Jabber ID. |
void |
removeHashedID(java.lang.String hashedID)
Drop a user from the list (e.g. |
void |
replacePair(java.lang.String hashedID,
java.lang.String nick)
Reassign a nick name to a hashed Jabber ID. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
tree
private java.util.TreeMap tree
- The hashedID -> nick name map.
UserLookupList
public UserLookupList()
- Create an empty lookup list.
removeHashedID
public void removeHashedID(java.lang.String hashedID)
- Drop a user from the list (e.g. he/she is offline).
- Parameters:
hashedID
- is the user's hashed Jabber ID.
insertPair
public void insertPair(java.lang.String hashedID,
java.lang.String nick)
- Assign a nick name to a hashed Jabber ID.
- Parameters:
hashedID
- is the user's hashed Jabber ID.nick
- is his/her current nick name in the conference.
replacePair
public void replacePair(java.lang.String hashedID,
java.lang.String nick)
- Reassign a nick name to a hashed Jabber ID.
- Parameters:
hashedID
- is the user's hashed Jabber ID.nick
- is his/her current nick name in the conference.
getNickname
public java.lang.String getNickname(java.lang.String hashedID)
- Returns:
- the nick name assigned to the hashedID.
getHashedID
public java.lang.String getHashedID(java.lang.String nick)
- Returns:
- the hashedID assigned to the nick name.
dump
public java.lang.String dump()
- for debugging only