Package org.localify.user.support
Class UserRecentEventView
java.lang.Object
org.localify.user.support.UserRecentEventView
Represents a recent event view by a user.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for a user recent event view. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.UserRecentEventView(User user, Event event) Creates a new user recent event view. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.getEvent()Gets the event.getKey()Gets the key.Gets the last update timestamp.getUser()Gets the user.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the event.voidSets the key.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.voidSets the user.
-
Constructor Details
-
UserRecentEventView
protected UserRecentEventView()Default constructor. -
UserRecentEventView
Creates a new user recent event view.- Parameters:
user- The user.event- The event.
-
-
Method Details
-
getKey
Gets the key.- Returns:
- The key.
-
setKey
Sets the key.- Parameters:
key- The key.
-
getUser
Gets the user.- Returns:
- The user.
-
setUser
Sets the user.- Parameters:
user- The user.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getEvent
Gets the event.- Returns:
- The event.
-
setEvent
Sets the event.- Parameters:
event- The event.
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp.
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp.
-