Class NotificationData


  • public class NotificationData
    extends Object
    Data that is related to a set of notifications about a change in the system. This is a like a template for all the notifications that are sent for a single event.
    See Also:
    NotificationContext
    • Constructor Detail

      • NotificationData

        public NotificationData​(com.atlassian.user.User modifier,
                                boolean shouldNotifyOnOwnActions,
                                ConfluenceEntityObject permissionEntity)
        Parameters:
        modifier - user who triggered the event that led to creating a notification.
      • NotificationData

        public NotificationData​(com.atlassian.user.User modifier,
                                boolean shouldNotifyOnOwnActions,
                                ConfluenceEntityObject permissionEntity,
                                String subject,
                                String templateName,
                                Collection<javax.activation.DataSource> templateImageDataSources)
    • Method Detail

      • getTemplateName

        public String getTemplateName()
      • getSubject

        public String getSubject()
      • getModifier

        public com.atlassian.user.User getModifier()
      • setSubject

        public void setSubject​(String subject)
      • setTemplateName

        public void setTemplateName​(String templateName)
      • doNotNotifyAgain

        public boolean doNotNotifyAgain​(String userName)
      • addDoNotNotifyAgain

        public void addDoNotNotifyAgain​(String userName)
      • getPermissionEntity

        public ConfluenceEntityObject getPermissionEntity()
        User must have VIEW permission on this entity in order to receive the notification.
      • cloneContextForRecipient

        public NotificationContext cloneContextForRecipient​(ConfluenceUser recipient)
        Returns a copy of the common context for this Notification that can be used to populate a single email for the specified recipient.