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
Modifier and TypeFieldDescriptionprotected static final tigase.criteria.Criteria
static final String
Fields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writer
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkItem
(Room room, tigase.xml.Element item, tigase.xmpp.jid.JID senderJid, Affiliation senderaAffiliation, Role senderRole) protected static Affiliation
getAffiliation
(tigase.xml.Element item) String[]
tigase.criteria.Criteria
protected static String
getReason
(tigase.xml.Element item) protected static Role
getRole
(tigase.xml.Element item) void
kickWithoutBroadcast
(Room room, String occupantNick, String reason, String actor) Kicking user without sending presence to all other occupant.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) void
process
(tigase.server.Packet element) protected void
processGet
(tigase.server.Packet element) protected void
processMatchingItems
(tigase.server.Packet iq, Room room, Affiliation filterAffiliation, Role filterRole, Collection<tigase.muc.modules.ModeratorModule.Item> resultItems) protected void
processSet
(tigase.server.Packet element) protected void
processSetAffiliation
(Room room, tigase.xml.Element item, Affiliation newAffiliation, Role newRole, String reason, String actor) protected void
protected void
sendInvitation
(Room room, tigase.xmpp.jid.BareJID occupantBareJid, String actor) Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage, validateRTBL
Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
MUCException
tigase.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.RepositoryException
MUCException
-
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.RepositoryException
MUCException
-
processSet
protected void processSet(tigase.server.Packet element) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryException
MUCException
-
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.RepositoryException
tigase.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
-