Class NotificationLogRepresentation
java.lang.Object
com.reallifedeveloper.common.resource.notification.NotificationLogRepresentation
A REST-ful representation of a
NotificationLog
, containing links to resources to get related representations.- Author:
- RealLifeDeveloper
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationLogRepresentation
(NotificationLog notificationLog, ObjectSerializer<String> objectSerializer) Creates a newNotificationLogRepresentation
representing the givenNotificationLog
, and using the givenObjectSerializer
to serialize the domain events. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getNext()
Gives a canonical link to the next set of notifications.@Nullable String
Gives a canonical link to the previous set of notifications.@Nullable String
getSelf()
Gives a canonical link to the current set of notifications.boolean
Shows if this represents an archived notification log or not.Gives the notifications represented.void
Sets the canonical link to the next set of notifications.void
setPrevious
(String previous) Sets the canonical link to the previous set of notifications.void
Sets the canonical link to the current set of notifications.
-
Constructor Details
-
NotificationLogRepresentation
public NotificationLogRepresentation(NotificationLog notificationLog, ObjectSerializer<String> objectSerializer) Creates a newNotificationLogRepresentation
representing the givenNotificationLog
, and using the givenObjectSerializer
to serialize the domain events.- Parameters:
notificationLog
- the notification log to representobjectSerializer
- the object serializer to use to serialize domain events
-
-
Method Details
-
getSelf
Gives a canonical link to the current set of notifications.- Returns:
- a canonical link to the current set of notifications
-
setSelf
Sets the canonical link to the current set of notifications.- Parameters:
self
- a canonical link to the current set of notifications
-
getNext
Gives a canonical link to the next set of notifications.- Returns:
- a canonical link to the next set of notifications
-
setNext
Sets the canonical link to the next set of notifications.- Parameters:
next
- a canonical link to the next set of notifications
-
getPrevious
Gives a canonical link to the previous set of notifications.- Returns:
- a canonical link to the previous set of notifications
-
setPrevious
Sets the canonical link to the previous set of notifications.- Parameters:
previous
- a canonical link to the previous set of notifications
-
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
-