Class NotificationLogRepresentation

java.lang.Object
com.reallifedeveloper.common.resource.notification.NotificationLogRepresentation

public final class NotificationLogRepresentation extends Object
A REST-ful representation of a NotificationLog, containing links to resources to get related representations.
Author:
RealLifeDeveloper
  • Constructor Details

    • NotificationLogRepresentation

      public NotificationLogRepresentation(NotificationLog notificationLog, ObjectSerializer<String> objectSerializer)
      Creates a new NotificationLogRepresentation representing the given NotificationLog, and using the given ObjectSerializer to serialize the domain events.
      Parameters:
      notificationLog - the notification log to represent
      objectSerializer - the object serializer to use to serialize domain events
  • Method Details

    • getSelf

      public @Nullable String getSelf()
      Gives a canonical link to the current set of notifications.
      Returns:
      a canonical link to the current set of notifications
    • setSelf

      public void setSelf(String self)
      Sets the canonical link to the current set of notifications.
      Parameters:
      self - a canonical link to the current set of notifications
    • getNext

      public @Nullable String getNext()
      Gives a canonical link to the next set of notifications.
      Returns:
      a canonical link to the next set of notifications
    • setNext

      public void setNext(String next)
      Sets the canonical link to the next set of notifications.
      Parameters:
      next - a canonical link to the next set of notifications
    • getPrevious

      public @Nullable String getPrevious()
      Gives a canonical link to the previous set of notifications.
      Returns:
      a canonical link to the previous set of notifications
    • setPrevious

      public void setPrevious(String previous)
      Sets the canonical link to the previous set of notifications.
      Parameters:
      previous - a canonical link to the previous set of notifications
    • notifications

      public List<NotificationRepresentation> notifications()
      Gives the notifications represented.
      Returns:
      the notifications represented
    • isArchived

      public boolean isArchived()
      Shows if this represents an archived notification log or not.
      Returns:
      true if this represents an archived notification log, false otherwise