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 anullvalue 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.AffiliationgetAffiliation()StringgetNickname()org.dom4j.ElementgetResult()MUCRole.RolegetRole()booleanisAffiliationChanged()voidreadExternal(ObjectInput in)voidrun()voidwriteExternal(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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classMUCRoomTask<org.dom4j.Element>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classMUCRoomTask<org.dom4j.Element>- Throws:
IOExceptionClassNotFoundException
-
-