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 newNotificationLogRepresentationrepresenting the givenNotificationLog, and using the givenObjectSerializerto serialize the domain events. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetNext()Gives a canonical link to the next set of notifications.@Nullable StringGives a canonical link to the previous set of notifications.@Nullable StringgetSelf()Gives a canonical link to the current set of notifications.booleanShows if this represents an archived notification log or not.Gives the notifications represented.voidSets the canonical link to the next set of notifications.voidsetPrevious(String previous) Sets the canonical link to the previous set of notifications.voidSets the canonical link to the current set of notifications.
-
Constructor Details
-
NotificationLogRepresentation
public NotificationLogRepresentation(NotificationLog notificationLog, ObjectSerializer<String> objectSerializer) Creates a newNotificationLogRepresentationrepresenting the givenNotificationLog, and using the givenObjectSerializerto 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:
trueif this represents an archived notification log,falseotherwise
-