Class ChannelManagerImpl

  • All Implemented Interfaces:
    org.exoplatform.commons.api.notification.channel.ChannelManager, org.picocontainer.Startable

    public class ChannelManagerImpl
    extends Object
    implements org.exoplatform.commons.api.notification.channel.ChannelManager, org.picocontainer.Startable
    Created by The eXo Platform SAS Author : eXoPlatform thanhvc@exoplatform.com Dec 12, 2014
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.exoplatform.commons.api.notification.channel.AbstractChannel getChannel​(org.exoplatform.commons.api.notification.model.ChannelKey key)  
      List<org.exoplatform.commons.api.notification.channel.AbstractChannel> getChannels()  
      org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle getLifecycle​(org.exoplatform.commons.api.notification.model.ChannelKey key)  
      void register​(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
      Register new channel
      void registerOverrideTemplateProvider​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
      Register and override the template provider
      void registerTemplateProvider​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
      Register the template provider
      int sizeChannels()
      Gets size of channels has been registered
      void start()  
      void stop()  
      void unregister​(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
      Unregister the specified channel
    • Constructor Detail

      • ChannelManagerImpl

        public ChannelManagerImpl()
    • Method Detail

      • register

        public void register​(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
        Register new channel
        Specified by:
        register in interface org.exoplatform.commons.api.notification.channel.ChannelManager
        Parameters:
        channel -
      • unregister

        public void unregister​(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
        Unregister the specified channel
        Specified by:
        unregister in interface org.exoplatform.commons.api.notification.channel.ChannelManager
        Parameters:
        channel -
      • registerTemplateProvider

        public void registerTemplateProvider​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
        Register the template provider
        Specified by:
        registerTemplateProvider in interface org.exoplatform.commons.api.notification.channel.ChannelManager
        Parameters:
        provider -
      • registerOverrideTemplateProvider

        public void registerOverrideTemplateProvider​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
        Register and override the template provider
        Specified by:
        registerOverrideTemplateProvider in interface org.exoplatform.commons.api.notification.channel.ChannelManager
        Parameters:
        provider -
      • getChannel

        public org.exoplatform.commons.api.notification.channel.AbstractChannel getChannel​(org.exoplatform.commons.api.notification.model.ChannelKey key)
        Specified by:
        getChannel in interface org.exoplatform.commons.api.notification.channel.ChannelManager
      • getLifecycle

        public org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle getLifecycle​(org.exoplatform.commons.api.notification.model.ChannelKey key)
        Specified by:
        getLifecycle in interface org.exoplatform.commons.api.notification.channel.ChannelManager
      • sizeChannels

        public int sizeChannels()
        Gets size of channels has been registered
        Specified by:
        sizeChannels in interface org.exoplatform.commons.api.notification.channel.ChannelManager
        Returns:
      • getChannels

        public List<org.exoplatform.commons.api.notification.channel.AbstractChannel> getChannels()
        Specified by:
        getChannels in interface org.exoplatform.commons.api.notification.channel.ChannelManager
      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface org.picocontainer.Startable