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
@Bean(name="groupchat", active=true) public class GroupchatMessageModule extends AbstractMucModule- Author:
- bmalkow
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description GroupchatMessageModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMessageToHistory(Room room, tigase.xml.Element message, java.lang.String body, tigase.xmpp.jid.JID senderJid, java.lang.String senderNickname, java.util.Date time)protected voidaddSubjectChangeToHistory(Room room, tigase.xml.Element message, java.lang.String subject, tigase.xmpp.jid.JID senderJid, java.lang.String senderNickname, java.util.Date time)static java.lang.StringgenerateSubjectId(java.util.Date ts, java.lang.String subject)java.lang.String[]getFeatures()tigase.criteria.CriteriagetModuleCriteria()booleanisChatStateAllowed()protected tigase.server.PacketpreparePacket(java.lang.String messageId, java.lang.String xmlLang, tigase.xml.Element... content)voidprocess(tigase.server.Packet packet)voidsendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, java.lang.String xmlLang, tigase.xml.Element... content)voidsendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg)voidsendMessagesToAllOccupants(Room room, tigase.xmpp.jid.JID fromJID, tigase.xml.Element... content)voidsendMessagesToAllOccupantsJids(Room room, tigase.xmpp.jid.JID fromJID, tigase.server.Packet msg)-
Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage
-
Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSubjectId
public static java.lang.String generateSubjectId(java.util.Date ts, java.lang.String subject)
-
getFeatures
public java.lang.String[] getFeatures()
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()
-
isChatStateAllowed
public boolean isChatStateAllowed()
-
process
public void process(tigase.server.Packet packet) throws MUCException- 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, java.lang.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
protected void addMessageToHistory(Room room, tigase.xml.Element message, java.lang.String body, tigase.xmpp.jid.JID senderJid, java.lang.String senderNickname, java.util.Date time)
-
addSubjectChangeToHistory
protected void addSubjectChangeToHistory(Room room, tigase.xml.Element message, java.lang.String subject, tigase.xmpp.jid.JID senderJid, java.lang.String senderNickname, java.util.Date time)
-
preparePacket
protected tigase.server.Packet preparePacket(java.lang.String messageId, java.lang.String xmlLang, tigase.xml.Element... content) throws tigase.util.stringprep.TigaseStringprepException- Throws:
tigase.util.stringprep.TigaseStringprepException
-
-