|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MUCUser
The chat user is a separate user abstraction for interacting with the chat server. Centralizing chat users to the Jabber entity that sends and receives the chat messages allows us to create quality of service, authorization, and resource decisions on a real-user basis.
Most chat users in a typical s2s scenario will not be local users.MUCUsers play one or more roles in one or more chat rooms on the server.
Method Summary | |
---|---|
JID |
getAddress()
Obtain the address of the user. |
long |
getID()
Obtain a user ID (useful for database indexing). |
long |
getLastPacketTime()
Get time (in milliseconds from System currentTimeMillis()) since last packet. |
MUCRole |
getRole(String roomName)
Obtain the role of the user in a particular room. |
Iterator<MUCRole> |
getRoles()
Get all roles for this user. |
void |
removeRole(String roomName)
Removes the role of the use in a particular room. |
Methods inherited from interface org.jivesoftware.messenger.ChannelHandler |
---|
process |
Method Detail |
---|
long getID()
JID getAddress()
MUCRole getRole(String roomName) throws NotFoundException
roomName
- The name of the room we're interested in
NotFoundException
- if the user does not have a role in the given roomIterator<MUCRole> getRoles()
void removeRole(String roomName)
Note: PREREQUISITE: A lock on this object has already been obtained.
roomName
- The name of the room we're being removedlong getLastPacketTime()
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |