|
Wildfire 3.2.4 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 | |
---|---|
void |
addRole(String roomName,
MUCRole role)
Adds the role of the user in a particular room. |
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. |
boolean |
isJoined()
Returns true if the user is currently present in one or more rooms. |
void |
removeRole(String roomName)
Removes the role of the user in a particular room. |
Methods inherited from interface org.jivesoftware.wildfire.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 addRole(String roomName, MUCRole role)
roomName
- The name of the room.role
- The new role of the user.void removeRole(String roomName)
Note: PREREQUISITE: A lock on this object has already been obtained.
roomName
- The name of the room we're being removedboolean isJoined()
long getLastPacketTime()
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |