Package tigase.muc.modules
Class GroupchatMessageModule
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.GroupchatMessageModule
- All Implemented Interfaces:
tigase.component.modules.Module
- Author:
- bmalkow
-
Field Summary
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
addMessageToHistory
(Room room, tigase.xml.Element message, String body, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time, String stableId) protected void
addSubjectChangeToHistory
(Room room, tigase.xml.Element message, String subject, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time) static String
generateSubjectId
(Date ts, String subject) String[]
tigase.criteria.Criteria
boolean
protected tigase.server.Packet
preparePacket
(String messageId, String xmlLang, tigase.xml.Element... content) void
process
(tigase.server.Packet packet) void
sendMessagesToAllOccupants
(Room room, tigase.xmpp.jid.JID fromJID, String xmlLang, tigase.xml.Element... content) void
sendMessagesToAllOccupants
(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg) void
sendMessagesToAllOccupants
(Room room, tigase.xmpp.jid.JID fromJID, tigase.xml.Element... content) void
sendMessagesToAllOccupantsJids
(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg) 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:
-
-
Constructor Details
-
GroupchatMessageModule
public GroupchatMessageModule()
-
-
Method Details
-
generateSubjectId
-
getFeatures
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria() -
isChatStateAllowed
public boolean isChatStateAllowed() -
process
- Throws:
MUCException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, tigase.xml.Element... content) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, String xmlLang, tigase.xml.Element... content) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
sendMessagesToAllOccupantsJids
public void sendMessagesToAllOccupantsJids(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
addMessageToHistory
-
addSubjectChangeToHistory
-
preparePacket
protected tigase.server.Packet preparePacket(String messageId, String xmlLang, tigase.xml.Element... content) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-