Ametista User

@Entity
open class AmetistaUser : EquinoxUser, DTOConvertible<T>

The AmetistaUser class is useful to represent a base Ametista's system user

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to init the AmetistaUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, language: String, role: AmetistaUser.Role)
Constructor to init the EquinoxUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, profilePic: String, language: String, theme: EquinoxUser.ApplicationTheme, role: AmetistaUser.Role)
Constructor to init the EquinoxUser class
constructor(jUser: JSONObject)
Constructor to init the AmetistaUser class

Types

Link copied to clipboard
enum Role
List of the available roles

Properties

Link copied to clipboard
val ADMIN_CODE_KEY: String = "admin_code"
ADMIN_CODE_KEY the key for the "admin_code" field
Link copied to clipboard
val DEFAULT_PROFILE_PIC: String = "profiles/defProfilePic.png"
Link copied to clipboard
DEFAULT_VIEWER_PASSWORD the default password of a VIEWER just inserted
Link copied to clipboard
Link copied to clipboard
protected val email: String
Link copied to clipboard
val EMAIL_KEY: String = "email"
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
val IS_ADMIN_KEY: String = "is_admin"
IS_ADMIN_KEY the key for the "is_admin" field
Link copied to clipboard
protected val language: String
Link copied to clipboard
val LANGUAGE_KEY: String = "language"
Link copied to clipboard
val MEMBERS_KEY: String = "members"
MEMBERS_KEY the key for the "members" field
Link copied to clipboard
protected val name: String
Link copied to clipboard
val NAME_KEY: String = "name"
Link copied to clipboard
protected val password: String
Link copied to clipboard
val PASSWORD_KEY: String = "password"
Link copied to clipboard
val PROFILE_PIC_KEY: String = "profile_pic"
Link copied to clipboard
protected val profilePic: String
Link copied to clipboard
role the role of the user
Link copied to clipboard
val ROLE_KEY: String = "role"
ROLE_KEY the key for the "role" field
Link copied to clipboard
val SESSION_KEY: String = "session"
SESSION_KEY the key for the "session" field
Link copied to clipboard
protected val surname: String
Link copied to clipboard
val SURNAME_KEY: String = "surname"
Link copied to clipboard
protected val theme: EquinoxUser.ApplicationTheme
Link copied to clipboard
val THEME_KEY: String = "theme"
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
protected val token: String
Link copied to clipboard
val TOKEN_KEY: String = "token"
Link copied to clipboard
val USERS_KEY: String = "users"

Functions

Link copied to clipboard
Method to convert the object to related Transfer Data Object
Link copied to clipboard
open fun getCompleteName(): String
Link copied to clipboard
open fun getEmail(): String
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getInstance(jUser: JSONObject): EquinoxUser
Link copied to clipboard
open fun getLanguage(): String
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getPassword(): String
Link copied to clipboard
open fun getProfilePic(): String
Link copied to clipboard
open fun getSurname(): String
Link copied to clipboard
open fun getTheme(): EquinoxUser.ApplicationTheme
Link copied to clipboard
open fun getToken(): String
Link copied to clipboard
Link copied to clipboard
open fun isAdmin(): Boolean
Method to get whether the user is a ADMIN
Link copied to clipboard
open fun isViewer(): Boolean
Method to get whether the user is a VIEWER
Link copied to clipboard
open fun toString(): String