Class UpdateOccupantRequest
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<org.dom4j.Element>
-
- org.jivesoftware.openfire.muc.cluster.UpdateOccupantRequest
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Runnable
,ClusterTask<org.dom4j.Element>
public class UpdateOccupantRequest extends MUCRoomTask<org.dom4j.Element>
Task that requests the cluster node hosting a room occupant to change his role and/or affiliation. If the occupant was not found or the change is not allowed then anull
value is returned. Otherwise the DOM object representing the new presence of the room occupant is returned.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateOccupantRequest()
UpdateOccupantRequest(LocalMUCRoom room, String nickname, MUCRole.Affiliation newAffiliation, MUCRole.Role newRole)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MUCRole.Affiliation
getAffiliation()
String
getNickname()
org.dom4j.Element
getResult()
MUCRole.Role
getRole()
boolean
isAffiliationChanged()
void
readExternal(ObjectInput in)
void
run()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.jivesoftware.openfire.muc.cluster.MUCRoomTask
execute, getRoom, isOriginator, setOriginator
-
-
-
-
Constructor Detail
-
UpdateOccupantRequest
public UpdateOccupantRequest()
-
UpdateOccupantRequest
public UpdateOccupantRequest(LocalMUCRoom room, String nickname, MUCRole.Affiliation newAffiliation, MUCRole.Role newRole)
-
-
Method Detail
-
getNickname
public String getNickname()
-
getRole
public MUCRole.Role getRole()
-
getAffiliation
public MUCRole.Affiliation getAffiliation()
-
isAffiliationChanged
public boolean isAffiliationChanged()
-
getResult
public org.dom4j.Element getResult()
-
run
public void run()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classMUCRoomTask<org.dom4j.Element>
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classMUCRoomTask<org.dom4j.Element>
- Throws:
IOException
ClassNotFoundException
-
-