Class GroupchatMessageModule

  • All Implemented Interfaces:
    tigase.component.modules.ContextAware, tigase.component.modules.InitializingModule, tigase.component.modules.Module

    public class GroupchatMessageModule
    extends AbstractMucModule
    Author:
    bmalkow
    • Constructor Detail

      • GroupchatMessageModule

        public GroupchatMessageModule()
    • Method Detail

      • addMessageToHistory

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

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

        public void afterRegistration()
        Specified by:
        afterRegistration in interface tigase.component.modules.InitializingModule
        Overrides:
        afterRegistration in class tigase.component.modules.AbstractModule<MucContext>
      • getFeatures

        public String[] getFeatures()
        Method description
        Returns:
      • getModuleCriteria

        public tigase.criteria.Criteria getModuleCriteria()
        Method description
        Returns:
      • isChatStateAllowed

        public boolean isChatStateAllowed()
        Method description
        Returns:
      • preparePacket

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

        public void process​(tigase.server.Packet packet)
                     throws MUCException
        Method description
        Parameters:
        packet -
        Throws:
        MUCException
      • sendMessagesToAllOccupants

        public void sendMessagesToAllOccupants​(Room room,
                                               tigase.xmpp.JID fromJID,
                                               tigase.xml.Element... content)
                                        throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • sendMessagesToAllOccupants

        public void sendMessagesToAllOccupants​(Room room,
                                               tigase.xmpp.JID fromJID,
                                               String xmlLang,
                                               tigase.xml.Element... content)
                                        throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • generateSubjectId

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

        public void sendMessagesToAllOccupants​(Room room,
                                               tigase.xmpp.JID fromJID,
                                               tigase.server.Packet msg)
                                        throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • sendMessagesToAllOccupantsJids

        public void sendMessagesToAllOccupantsJids​(Room room,
                                                   tigase.xmpp.JID fromJID,
                                                   tigase.server.Packet msg)
                                            throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException