Class 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.String ID  
      • Fields inherited from class tigase.component.modules.AbstractModule

        eventBus, log, writer
      • Fields inherited from interface tigase.component.modules.Module

        EMPTY_FEATURES
    • Constructor Detail

      • GroupchatMessageModule

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