Class NotificationContextImpl

  • All Implemented Interfaces:
    Cloneable, org.exoplatform.commons.api.notification.NotificationContext

    public final class NotificationContextImpl
    extends Object
    implements org.exoplatform.commons.api.notification.NotificationContext
    • Method Detail

      • cloneInstance

        public static org.exoplatform.commons.api.notification.NotificationContext cloneInstance()
      • getNotificationExecutor

        public org.exoplatform.commons.api.notification.command.NotificationExecutor getNotificationExecutor()
        Specified by:
        getNotificationExecutor in interface org.exoplatform.commons.api.notification.NotificationContext
      • getPluginContainer

        public org.exoplatform.commons.api.notification.service.setting.PluginContainer getPluginContainer()
        Specified by:
        getPluginContainer in interface org.exoplatform.commons.api.notification.NotificationContext
      • getChannelManager

        public org.exoplatform.commons.api.notification.channel.ChannelManager getChannelManager()
        Specified by:
        getChannelManager in interface org.exoplatform.commons.api.notification.NotificationContext
      • getPluginSettingService

        public org.exoplatform.commons.api.notification.service.setting.PluginSettingService getPluginSettingService()
        Specified by:
        getPluginSettingService in interface org.exoplatform.commons.api.notification.NotificationContext
      • append

        public <T> org.exoplatform.commons.api.notification.NotificationContext append​(org.exoplatform.commons.api.notification.model.ArgumentLiteral<T> argument,
                                                                                       Object value)
        Specified by:
        append in interface org.exoplatform.commons.api.notification.NotificationContext
      • remove

        public <T> org.exoplatform.commons.api.notification.NotificationContext remove​(org.exoplatform.commons.api.notification.model.ArgumentLiteral<T> argument)
        Specified by:
        remove in interface org.exoplatform.commons.api.notification.NotificationContext
      • clear

        public void clear()
        Specified by:
        clear in interface org.exoplatform.commons.api.notification.NotificationContext
      • value

        public <T> T value​(org.exoplatform.commons.api.notification.model.ArgumentLiteral<T> argument)
        Specified by:
        value in interface org.exoplatform.commons.api.notification.NotificationContext
      • getNotificationInfo

        public org.exoplatform.commons.api.notification.model.NotificationInfo getNotificationInfo()
        Specified by:
        getNotificationInfo in interface org.exoplatform.commons.api.notification.NotificationContext
      • setNotificationInfo

        public org.exoplatform.commons.api.notification.NotificationContext setNotificationInfo​(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
        Specified by:
        setNotificationInfo in interface org.exoplatform.commons.api.notification.NotificationContext
      • getException

        public Exception getException()
        Specified by:
        getException in interface org.exoplatform.commons.api.notification.NotificationContext
      • getException

        public <T> T getException​(Class<T> type)
        Specified by:
        getException in interface org.exoplatform.commons.api.notification.NotificationContext
      • setException

        public void setException​(Throwable t)
        Specified by:
        setException in interface org.exoplatform.commons.api.notification.NotificationContext
      • isFailed

        public boolean isFailed()
        Specified by:
        isFailed in interface org.exoplatform.commons.api.notification.NotificationContext
      • setNotificationInfos

        public void setNotificationInfos​(List<org.exoplatform.commons.api.notification.model.NotificationInfo> notifications)
        Specified by:
        setNotificationInfos in interface org.exoplatform.commons.api.notification.NotificationContext
      • getNotificationInfos

        public List<org.exoplatform.commons.api.notification.model.NotificationInfo> getNotificationInfos()
        Specified by:
        getNotificationInfos in interface org.exoplatform.commons.api.notification.NotificationContext
      • makeCommand

        public org.exoplatform.commons.api.notification.command.NotificationCommand makeCommand​(org.exoplatform.commons.api.notification.model.PluginKey key)
        Specified by:
        makeCommand in interface org.exoplatform.commons.api.notification.NotificationContext
      • clone

        public org.exoplatform.commons.api.notification.NotificationContext clone()
        Specified by:
        clone in interface org.exoplatform.commons.api.notification.NotificationContext
        Overrides:
        clone in class Object
      • isWritingProcess

        public boolean isWritingProcess()
        Specified by:
        isWritingProcess in interface org.exoplatform.commons.api.notification.NotificationContext
      • setWritingProcess

        public void setWritingProcess​(boolean writingStatus)
        Specified by:
        setWritingProcess in interface org.exoplatform.commons.api.notification.NotificationContext