@Bean(name="admin",
active=true)
public class ModeratorModule
extends AbstractMucModule
| Modifier and Type | Field and Description |
|---|---|
protected static tigase.criteria.Criteria |
CRIT |
static String |
ID |
| Constructor and Description |
|---|
ModeratorModule() |
| Modifier and Type | Method and Description |
|---|---|
protected 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[] |
getFeatures() |
tigase.criteria.Criteria |
getModuleCriteria() |
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 |
processSetRole(Room room,
String occupantNick,
Role newRole,
String reason,
String actor) |
protected void |
sendInvitation(Room room,
tigase.xmpp.jid.BareJID occupantBareJid,
String actor) |
createResultIQ, getNicknameFromJid, sendMucMessagefireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writepublic static final String ID
protected static final tigase.criteria.Criteria CRIT
protected static Affiliation getAffiliation(tigase.xml.Element item) throws MUCException
MUCExceptionprotected static String getReason(tigase.xml.Element item)
protected static Role getRole(tigase.xml.Element item)
public String[] getFeatures()
public tigase.criteria.Criteria getModuleCriteria()
public void kickWithoutBroadcast(Room room, String occupantNick, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionpublic void process(tigase.server.Packet element)
throws MUCException
MUCExceptionprotected void checkItem(Room room, tigase.xml.Element item, tigase.xmpp.jid.JID senderJid, Affiliation senderaAffiliation, Role senderRole) throws MUCException, tigase.util.stringprep.TigaseStringprepException
MUCExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected 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
tigase.util.stringprep.TigaseStringprepExceptionprotected void processGet(tigase.server.Packet element)
throws tigase.component.exceptions.RepositoryException,
MUCException
tigase.component.exceptions.RepositoryExceptionMUCExceptionprotected 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
tigase.component.exceptions.RepositoryExceptionMUCExceptionprotected void processSet(tigase.server.Packet element)
throws tigase.component.exceptions.RepositoryException,
MUCException
tigase.component.exceptions.RepositoryExceptionMUCExceptionprotected 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
tigase.component.exceptions.RepositoryExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected void processSetRole(Room room, String occupantNick, Role newRole, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionCopyright © 2007–2020 "Tigase, Inc.". All rights reserved.