User

class User(val username: Username, var password: String, var email: String? = null, var description: String? = null, var profilePicture: String? = null, var refreshToken: String? = null) : AggregateRoot<Username>

User aggregate root.

Parameters

username

The username of the user.

password

The password of the user.

description

The description of the user.

profilePicture

The profile picture of the user.

refreshToken

The refresh token of the user.

Constructors

Link copied to clipboard
constructor(username: Username, password: String, email: String? = null, description: String? = null, profilePicture: String? = null, refreshToken: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val id: Username
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Clear the refresh token of the user.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Convert a user to a user DTO.

Link copied to clipboard
fun User.toEntity(actualId: String? = null): UserEntity

Convert a user to a user entity.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateDescription(description: String?)

Update the description of the user.

Link copied to clipboard
fun updateProfilePicture(profilePicture: String?)

Update the profile picture of the user.

Link copied to clipboard
fun updateRefreshToken(refreshToken: String?)

Update the password of the user.