Class AbstractBareModule

  • All Implemented Interfaces:
    Module, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.Initializable, tigase.kernel.beans.RegistrarBean, tigase.kernel.beans.UnregisterAware, tigase.stats.StatisticHolder
    Direct Known Subclasses:
    AbstractModule, SetupModeRedirectModule, SetupModule, UserStatusEndpointModule

    public abstract class AbstractBareModule
    extends AbstractHttpModule
    implements Module, tigase.kernel.beans.Initializable, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.UnregisterAware
    Created by andrzej on 28.03.2017.
    • Field Detail

      • name

        @ConfigField(desc="Module name")
        protected String name
    • Constructor Detail

      • AbstractBareModule

        public AbstractBareModule()
    • Method Detail

      • getModuleByUUID

        public static <T extends Module> T getModuleByUUID​(String uuid)
      • setName

        public void setName​(String name)
      • addOutPacket

        public boolean addOutPacket​(tigase.server.Packet packet)
        Specified by:
        addOutPacket in interface Module
      • everyHour

        public void everyHour()
        Specified by:
        everyHour in interface tigase.stats.StatisticHolder
      • everyMinute

        public void everyMinute()
        Specified by:
        everyMinute in interface tigase.stats.StatisticHolder
      • everySecond

        public void everySecond()
        Specified by:
        everySecond in interface tigase.stats.StatisticHolder
      • processPacket

        public boolean processPacket​(tigase.server.Packet packet)
        Specified by:
        processPacket in interface Module
      • getDiscoInfo

        public tigase.xml.Element getDiscoInfo​(String node,
                                               boolean isAdmin)
        Specified by:
        getDiscoInfo in interface Module
      • getDiscoItems

        public List<tigase.xml.Element> getDiscoItems​(String node,
                                                      tigase.xmpp.jid.JID jid,
                                                      tigase.xmpp.jid.JID from)
        Specified by:
        getDiscoItems in interface Module
      • getJid

        public tigase.xmpp.jid.JID getJid()
        Specified by:
        getJid in interface Module
      • getStatistics

        public void getStatistics​(String compName,
                                  tigase.stats.StatisticsList list)
        Specified by:
        getStatistics in interface tigase.stats.StatisticHolder
      • setStatisticsPrefix

        public void setStatisticsPrefix​(String prefix)
        Specified by:
        setStatisticsPrefix in interface tigase.stats.StatisticHolder
      • statisticExecutedIn

        public void statisticExecutedIn​(long executionTime)
        Specified by:
        statisticExecutedIn in interface tigase.stats.StatisticHolder
      • init

        public void init​(tigase.xmpp.jid.JID jid,
                         String componentName,
                         PacketWriter writer)
        Specified by:
        init in interface Module
      • isAdmin

        public boolean isAdmin​(tigase.xmpp.jid.BareJID user)
        Specified by:
        isAdmin in interface Module
      • executedIn

        public void executedIn​(String path,
                               long executionTime)
      • initialize

        public void initialize()
        Specified by:
        initialize in interface tigase.kernel.beans.Initializable
        Overrides:
        initialize in class AbstractHttpModule
      • getComponentName

        protected String getComponentName()