Class MessageArchivePlugin

  • All Implemented Interfaces:
    Comparable<tigase.xmpp.XMPPImplIfc>, tigase.kernel.beans.RegistrarBean, tigase.xmpp.XMPPImplIfc, tigase.xmpp.XMPPProcessorConcurrencyAwareIfc, tigase.xmpp.XMPPProcessorIfc

    @Bean(name="message-archive",
          parents={Xep0136MessageArchivingProcessor.class,Xep0313MessageArchiveManagementProcessor.class},
          active=true)
    public class MessageArchivePlugin
    extends tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
    implements tigase.xmpp.XMPPProcessorIfc, tigase.kernel.beans.RegistrarBean
    MessageArchingPlugin is implementation of plugin which forwards messages with type set to "chat" to MessageArchivingComponent to store this messages in message archive.
    • Constructor Detail

      • MessageArchivePlugin

        public MessageArchivePlugin()
    • Method Detail

      • process

        public void process​(tigase.server.Packet packet,
                            tigase.xmpp.XMPPResourceConnection session,
                            tigase.db.NonAuthUserRepository repo,
                            Queue<tigase.server.Packet> results,
                            Map<String,​Object> settings)
                     throws tigase.xmpp.XMPPException
        Specified by:
        process in interface tigase.xmpp.XMPPProcessorIfc
        Throws:
        tigase.xmpp.XMPPException
      • register

        public void register​(tigase.kernel.core.Kernel kernel)
        Specified by:
        register in interface tigase.kernel.beans.RegistrarBean
      • unregister

        public void unregister​(tigase.kernel.core.Kernel kernel)
        Specified by:
        unregister in interface tigase.kernel.beans.RegistrarBean
      • getArchivingMatchers

        public String[] getArchivingMatchers()
      • setArchivingMatchers

        public void setArchivingMatchers​(String[] matcherStrs)
      • getComponentJid

        public tigase.xmpp.jid.JID getComponentJid()
      • setComponentJid

        public void setComponentJid​(tigase.xmpp.jid.JID componentJid)
      • getDefaultStoreMethod

        public StoreMethod getDefaultStoreMethod​(tigase.xmpp.XMPPResourceConnection session)
      • getRequiredStoreMethod

        public StoreMethod getRequiredStoreMethod​(tigase.xmpp.XMPPResourceConnection session)
      • getSettings

        public Settings getSettings​(tigase.xmpp.XMPPResourceConnection session)
                             throws tigase.xmpp.NotAuthorizedException
        Throws:
        tigase.xmpp.NotAuthorizedException
      • getRequiredStoreMucMessages

        public StoreMuc getRequiredStoreMucMessages​(tigase.xmpp.XMPPResourceConnection session)
      • loadSettings

        public Settings loadSettings​(tigase.xmpp.XMPPResourceConnection session)
                              throws tigase.xmpp.NotAuthorizedException
        Throws:
        tigase.xmpp.NotAuthorizedException