Package org.localify.auth.jpa
Class WeeklyEmailRegistrationToken
java.lang.Object
org.localify.auth.jpa.WeeklyEmailRegistrationToken
Represents a token for registering for weekly emails.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.WeeklyEmailRegistrationToken(User user, String token) Constructs a new WeeklyEmailRegistrationToken. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.getId()Gets the ID of the token.getToken()Gets the token string.getUser()Gets the user associated with the token.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the token string.voidSets the user.
-
Constructor Details
-
WeeklyEmailRegistrationToken
protected WeeklyEmailRegistrationToken()Default constructor for JPA. -
WeeklyEmailRegistrationToken
Constructs a new WeeklyEmailRegistrationToken.- Parameters:
user- The user associated with the token.token- The token string.
-
-
Method Details
-
setUser
Sets the user.- Parameters:
user- The user.
-
setToken
Sets the token string.- Parameters:
token- The token string.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getId
Gets the ID of the token.- Returns:
- The ID.
-
getUser
Gets the user associated with the token.- Returns:
- The user.
-
getToken
Gets the token string.- Returns:
- The token string.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-