Class GroupchatMessageModule

  • All Implemented Interfaces:
    tigase.component.modules.Module

    @Bean(name="groupchat",
          active=true)
    public class GroupchatMessageModule
    extends AbstractMucModule
    Author:
    bmalkow
    • Constructor Detail

      • GroupchatMessageModule

        public GroupchatMessageModule()
    • Method Detail

      • generateSubjectId

        public static String generateSubjectId​(Date ts,
                                               String subject)
      • getFeatures

        public String[] getFeatures()
      • getModuleCriteria

        public tigase.criteria.Criteria getModuleCriteria()
      • isChatStateAllowed

        public boolean isChatStateAllowed()
      • 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

        protected void addMessageToHistory​(Room room,
                                           tigase.xml.Element message,
                                           String body,
                                           tigase.xmpp.jid.JID senderJid,
                                           String senderNickname,
                                           Date time)
      • addSubjectChangeToHistory

        protected void addSubjectChangeToHistory​(Room room,
                                                 tigase.xml.Element message,
                                                 String subject,
                                                 tigase.xmpp.jid.JID senderJid,
                                                 String senderNickname,
                                                 Date time)
      • preparePacket

        protected tigase.server.Packet preparePacket​(String messageId,
                                                     String xmlLang,
                                                     tigase.xml.Element... content)
                                              throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException