Class OccupantAddedEvent
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<Void>
-
- org.jivesoftware.openfire.muc.cluster.OccupantAddedEvent
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Void>
public class OccupantAddedEvent extends MUCRoomTask<Void>
Task that will remove a room occupant from the list of occupants in the room.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OccupantAddedEvent()OccupantAddedEvent(LocalMUCRoom room, MUCRole occupant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MUCRole.AffiliationgetAffiliation()StringgetNickname()NodeIDgetNodeID()org.xmpp.packet.PresencegetPresence()org.xmpp.packet.JIDgetReportedFmucAddress()VoidgetResult()MUCRole.RolegetRole()org.xmpp.packet.JIDgetRoleAddress()org.xmpp.packet.JIDgetUserAddress()booleanisSendPresence()Returns true if the room should broadcast presence of the new occupant to occupants hosted by this cluster node.booleanisVoiceOnly()voidreadExternal(ObjectInput in)voidrun()voidsetSendPresence(boolean sendPresence)Sets if the room should broadcast presence of the new occupant to occupants hosted by this cluster node.voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.jivesoftware.openfire.muc.cluster.MUCRoomTask
execute, getRoom, isOriginator, setOriginator
-
-
-
-
Constructor Detail
-
OccupantAddedEvent
public OccupantAddedEvent()
-
OccupantAddedEvent
public OccupantAddedEvent(LocalMUCRoom room, MUCRole occupant)
-
-
Method Detail
-
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()
-
getReportedFmucAddress
public org.xmpp.packet.JID getReportedFmucAddress()
-
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 Void getResult()
-
run
public void run()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classMUCRoomTask<Void>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classMUCRoomTask<Void>- Throws:
IOExceptionClassNotFoundException
-
-