org.jivesoftware.openfire.muc.cluster
Class OccupantAddedEvent
java.lang.Object
org.jivesoftware.openfire.muc.cluster.MUCRoomTask
org.jivesoftware.openfire.muc.cluster.OccupantAddedEvent
- All Implemented Interfaces:
- Externalizable, Serializable, Runnable, ClusterTask
public class OccupantAddedEvent
- extends MUCRoomTask
Task that will remove a room occupant from the list of occupants in the room.
- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OccupantAddedEvent
public OccupantAddedEvent()
OccupantAddedEvent
public OccupantAddedEvent(LocalMUCRoom room,
MUCRole occupant)
getPresence
public org.xmpp.packet.Presence getPresence()
getNickname
public String getNickname()
getRole
public MUCRole.Role getRole()
getAffiliation
public MUCRole.Affiliation getAffiliation()
isVoiceOnly
public boolean isVoiceOnly()
getRoleAddress
public org.xmpp.packet.JID getRoleAddress()
getUserAddress
public org.xmpp.packet.JID getUserAddress()
getNodeID
public NodeID getNodeID()
setSendPresence
public void setSendPresence(boolean sendPresence)
- Sets if the room should broadcast presence of the new occupant to occupants
hosted by this cluster node.
- Parameters:
sendPresence
- true if the room should broadcast presence of the new occupant to occupants
hosted by this cluster node.
isSendPresence
public boolean isSendPresence()
- Returns true if the room should broadcast presence of the new occupant to occupants
hosted by this cluster node.
- Returns:
- true if the room should broadcast presence of the new occupant to occupants
hosted by this cluster node.
getResult
public Object getResult()
run
public void run()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class MUCRoomTask
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class MUCRoomTask
- Throws:
IOException
ClassNotFoundException
Copyright © 2003-2008 Jive Software.