Class Notification.NotificationBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>

Enclosing class:
Notification

public abstract static class Notification.NotificationBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>> extends Asset.AssetBuilder<C,B>
  • Constructor Details

    • NotificationBuilder

      public NotificationBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
      Overrides:
      $fillValuesFrom in class Asset.AssetBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>
    • typeName

      public B typeName(String typeName)
      Fixed typeName for Notifications.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>
      Returns:
      this.
    • notificationExternalReference

      public B notificationExternalReference(NotificationExternalReference notificationExternalReference)
    • notificationExternalReferences

      public B notificationExternalReferences(Collection<? extends NotificationExternalReference> notificationExternalReferences)
    • clearNotificationExternalReferences

      public B clearNotificationExternalReferences()
    • notificationLastActedAt

      public B notificationLastActedAt(Long notificationLastActedAt)
      When a person last moved the state. Read against the creation timestamp this gives time to resolution.
      Returns:
      this.
    • notificationLastActedBy

      public B notificationLastActedBy(String notificationLastActedBy)
      Username of the person who last moved the state. Declared separately because the write is service-mediated, so the entity's own modifier records the service and not the person.
      Returns:
      this.
    • notificationLastActedReason

      public B notificationLastActedReason(String notificationLastActedReason)
      Reason or note the person gave for the last action. Mandatory for some actions and optional for others, so it is free text rather than a code.
      Returns:
      this.
    • notificationRecipientGroup

      public B notificationRecipientGroup(String notificationRecipientGroup)
    • notificationRecipientGroups

      public B notificationRecipientGroups(Collection<? extends String> notificationRecipientGroups)
    • clearNotificationRecipientGroups

      public B clearNotificationRecipientGroups()
    • notificationRecipientRole

      public B notificationRecipientRole(String notificationRecipientRole)
    • notificationRecipientRoles

      public B notificationRecipientRoles(Collection<? extends String> notificationRecipientRoles)
    • clearNotificationRecipientRoles

      public B clearNotificationRecipientRoles()
    • notificationRecipientUser

      public B notificationRecipientUser(String notificationRecipientUser)
    • notificationRecipientUsers

      public B notificationRecipientUsers(Collection<? extends String> notificationRecipientUsers)
    • clearNotificationRecipientUsers

      public B clearNotificationRecipientUsers()
    • notificationState

      public B notificationState(NotificationState notificationState)
      Where the notification is in its lifecycle. Also how a check decides whether a live notification already exists before raising another.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class Asset.AssetBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class Asset.AssetBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Asset.AssetBuilder<C extends Notification,B extends Notification.NotificationBuilder<C,B>>