Class AbstractNotificationLifecycle

    • Constructor Detail

      • AbstractNotificationLifecycle

        public AbstractNotificationLifecycle()
    • Method Detail

      • getChannel

        public AbstractChannel getChannel()
        Gets the channel
        Returns:
      • setChannel

        public void setChannel​(AbstractChannel channel)
        Sets the channel to the lifecycle
        Parameters:
        channel -
      • process

        public abstract void process​(NotificationContext ctx,
                                     String... userIds)
        Process the notification for multi-users
        Parameters:
        ctx -
        userIds -
      • process

        public abstract void process​(NotificationContext ctx,
                                     String userId)
        Process the notification for the user
        Parameters:
        ctx -
        userId -
      • store

        public void store​(NotificationInfo notifInfo)
        Storage the notification into the db
        Parameters:
        notifInfo -
      • update

        public void update​(NotificationInfo notifInfo)
        Update an existing notification
        Parameters:
        notifInfo -
      • send

        public void send​(NotificationContext ctx)
        Sends the message by Mail, UI or any the configured channel
        Parameters:
        ctx -