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 senderJid,
Affiliation senderaAffiliation,
Role senderRole) |
protected static Affiliation |
getAffiliation(tigase.xml.Element item) |
String[] |
getFeatures()
Method description
|
tigase.criteria.Criteria |
getModuleCriteria()
Method description
|
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 destinationJid,
tigase.xmpp.BareJID roomJID,
Room room,
tigase.xmpp.BareJID occupantJid,
boolean unavailable,
Affiliation affiliation,
Role role,
String nick,
String reason,
String actor,
String... codes) |
void |
process(tigase.server.Packet element)
Method description
|
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.BareJID occupantBareJid,
String actor) |
createResultIQ, getNicknameFromJid, sendMucMessagepublic 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)
protected void checkItem(Room room, tigase.xml.Element item, tigase.xmpp.JID senderJid, Affiliation senderaAffiliation, Role senderRole) throws MUCException, tigase.util.TigaseStringprepException
MUCExceptiontigase.util.TigaseStringprepExceptionpublic String[] getFeatures()
public tigase.criteria.Criteria getModuleCriteria()
public void kickWithoutBroadcast(Room room, String occupantNick, String reason, String actor) throws tigase.util.TigaseStringprepException
tigase.util.TigaseStringprepExceptionprotected tigase.server.Packet makePresence(tigase.xmpp.JID destinationJid,
tigase.xmpp.BareJID roomJID,
Room room,
tigase.xmpp.BareJID occupantJid,
boolean unavailable,
Affiliation affiliation,
Role role,
String nick,
String reason,
String actor,
String... codes)
throws tigase.util.TigaseStringprepException
tigase.util.TigaseStringprepExceptionpublic void process(tigase.server.Packet element)
throws MUCException
element - MUCExceptionprotected 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.TigaseStringprepException
tigase.component.exceptions.RepositoryExceptiontigase.util.TigaseStringprepExceptionprotected void processSetRole(Room room, String occupantNick, Role newRole, String reason, String actor) throws tigase.util.TigaseStringprepException
tigase.util.TigaseStringprepExceptionCopyright © 2007–2017 Tigase. All rights reserved.