Package tigase.muc.modules
Class ModeratorModule
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.ModeratorModule
- All Implemented Interfaces:
tigase.component.modules.Module
- Author:
- bmalkow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final tigase.criteria.Criteriastatic final StringFields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckItem(Room room, tigase.xml.Element item, tigase.xmpp.jid.JID senderJid, Affiliation senderaAffiliation, Role senderRole) protected static AffiliationgetAffiliation(tigase.xml.Element item) String[]tigase.criteria.Criteriaprotected static StringgetReason(tigase.xml.Element item) protected static RolegetRole(tigase.xml.Element item) voidkickWithoutBroadcast(Room room, String occupantNick, String reason, String actor) Kicking user without sending presence to all other occupant.protected tigase.server.PacketmakePresence(tigase.xmpp.jid.JID destinationJid, tigase.xmpp.jid.BareJID roomJID, Room room, tigase.xmpp.jid.BareJID occupantJid, boolean unavailable, Affiliation affiliation, Role role, String nick, String reason, String actor, String... codes) voidprocess(tigase.server.Packet element) protected voidprocessGet(tigase.server.Packet element) protected voidprocessMatchingItems(tigase.server.Packet iq, Room room, Affiliation filterAffiliation, Role filterRole, Collection<tigase.muc.modules.ModeratorModule.Item> resultItems) protected voidprocessSet(tigase.server.Packet element) protected voidprocessSetAffiliation(Room room, tigase.xml.Element item, Affiliation newAffiliation, Role newRole, String reason, String actor) protected voidprotected voidsendInvitation(Room room, tigase.xmpp.jid.BareJID occupantBareJid, String actor) Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage, validateRTBLMethods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.modules.Module
canHandle
-
Field Details
-
ID
- See Also:
-
CRIT
protected static final tigase.criteria.Criteria CRIT
-
-
Constructor Details
-
ModeratorModule
public ModeratorModule()
-
-
Method Details
-
getAffiliation
- Throws:
MUCException
-
getReason
-
getRole
-
getFeatures
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria() -
kickWithoutBroadcast
public void kickWithoutBroadcast(Room room, String occupantNick, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException Kicking user without sending presence to all other occupant. Used only to inform occupants that component is stopping.- Throws:
tigase.util.stringprep.TigaseStringprepException
-
process
- Throws:
MUCException
-
checkItem
protected void checkItem(Room room, tigase.xml.Element item, tigase.xmpp.jid.JID senderJid, Affiliation senderaAffiliation, Role senderRole) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Throws:
MUCExceptiontigase.util.stringprep.TigaseStringprepException
-
makePresence
protected tigase.server.Packet makePresence(tigase.xmpp.jid.JID destinationJid, tigase.xmpp.jid.BareJID roomJID, Room room, tigase.xmpp.jid.BareJID occupantJid, boolean unavailable, Affiliation affiliation, Role role, String nick, String reason, String actor, String... codes) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
processGet
protected void processGet(tigase.server.Packet element) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryExceptionMUCException
-
processMatchingItems
protected void processMatchingItems(tigase.server.Packet iq, Room room, Affiliation filterAffiliation, Role filterRole, Collection<tigase.muc.modules.ModeratorModule.Item> resultItems) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryExceptionMUCException
-
processSet
protected void processSet(tigase.server.Packet element) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryExceptionMUCException
-
processSetAffiliation
protected void processSetAffiliation(Room room, tigase.xml.Element item, Affiliation newAffiliation, Role newRole, String reason, String actor) throws tigase.component.exceptions.RepositoryException, tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.component.exceptions.RepositoryExceptiontigase.util.stringprep.TigaseStringprepException
-
processSetRole
protected void processSetRole(Room room, String occupantNick, Role newRole, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
sendInvitation
protected void sendInvitation(Room room, tigase.xmpp.jid.BareJID occupantBareJid, String actor) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-