ProductUser

@Entity
open class ProductUser : User, UserDetails

The entity for a commercial user of the Crypto Trader app.

Constructors

Link copied to clipboard
constructor()
constructor(username: String, rawPassword: String)
constructor(username: String, rawPassword: String, email: String)
constructor(username: String, encodedPassword: SafePassword)
constructor(username: String, email: String, encodedPassword: SafePassword)
constructor(username: String, email: String, encodedPassword: SafePassword, portfolio: Portfolio, profilePicture: ProfilePicture, lastLogin: LocalDateTime, subscriptionTier: SubscriptionTier)
constructor(username: String, rawPassword: String, portfolio: Portfolio)
constructor(username: String, rawPassword: String, portfolio: Portfolio, lastLogin: LocalDateTime)

Properties

Link copied to clipboard
open var role: @NotNull UserRoleTier

Functions

Link copied to clipboard
@NotNull
open fun builder(): @NotNull ProductUserBuilder
Link copied to clipboard
@NotNull
open fun getAuthorities(): @NotNull Collection<out GrantedAuthority>
Link copied to clipboard
open fun getId(): @Nullable Long
abstract fun getId(): T
Link copied to clipboard
open fun getLastLogin(): @Nullable LocalDateTime
Link copied to clipboard
open fun getPassword(): String
Link copied to clipboard
open fun getSafePassword(): @NotNull SafePassword
Link copied to clipboard
open fun getUsername(): @Nullable String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
open fun setId(id: @Nullable Long)
Link copied to clipboard
open fun setLastLogin(lastLogin: @Nullable LocalDateTime)
Link copied to clipboard
open fun setSafePassword(safePassword: @NotNull SafePassword)
Link copied to clipboard
open fun setUsername(username: @Nullable String)
Link copied to clipboard
open fun updateLoginTime()