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.Affiliation
getAffiliation()
String
getNickname()
NodeID
getNodeID()
org.xmpp.packet.Presence
getPresence()
org.xmpp.packet.JID
getReportedFmucAddress()
Void
getResult()
MUCRole.Role
getRole()
org.xmpp.packet.JID
getRoleAddress()
org.xmpp.packet.JID
getUserAddress()
boolean
isSendPresence()
Returns true if the room should broadcast presence of the new occupant to occupants hosted by this cluster node.boolean
isVoiceOnly()
void
readExternal(ObjectInput in)
void
run()
void
setSendPresence(boolean sendPresence)
Sets if the room should broadcast presence of the new occupant to occupants hosted by this cluster node.void
writeExternal(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:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classMUCRoomTask<Void>
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classMUCRoomTask<Void>
- Throws:
IOException
ClassNotFoundException
-
-