| java.lang.Object org.jivesoftware.openfire.muc.spi.IQOwnerHandler
IQOwnerHandler | public class IQOwnerHandler (Code) | | A handler for the IQ packet with namespace http://jabber.org/protocol/muc#owner. This kind of
packets are usually sent by room owners. So this handler provides the necessary functionality
to support owner requirements such as: room configuration and room destruction.
author: Gaston Dombiak |
Method Summary | |
public void | handleIQ(IQ packet, MUCRole role) Handles the IQ packet sent by an owner of the room. |
handleIQ | public void handleIQ(IQ packet, MUCRole role) throws ForbiddenException, ConflictException(Code) | | Handles the IQ packet sent by an owner of the room. Possible actions are:
- Return the list of owners
- Return the list of admins
- Change user's affiliation to owner
- Change user's affiliation to admin
- Change user's affiliation to member
- Change user's affiliation to none
- Destroy the room
- Return the room configuration within a dataform
- Update the room configuration based on the sent dataform
Parameters: packet - the IQ packet sent by an owner of the room. Parameters: role - the role of the user that sent the packet. throws: ForbiddenException - if the user does not have enough permissions (ie. is not an owner). throws: ConflictException - If the room was going to lose all of its owners. |
|
|