NovaUsersController

@Primary
@RestController
open class NovaUsersController : EquinoxUsersController<T>

The UsersController class is useful to manage all the user operations

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor(usersHelper: NovaUsersHelper)
Constructor to init the EquinoxUsersController controller

Properties

Link copied to clipboard
protected open var jsonHelper: JsonHelper
Link copied to clipboard
protected val mantis: Mantis
Link copied to clipboard
protected open var me: T
Link copied to clipboard
Link copied to clipboard
notificationsRepository instance useful to manage the notifications
Link copied to clipboard
open var resourcesProvider: ResourcesProvider
Link copied to clipboard
val RESPONSE_SUCCESSFUL_MESSAGE: String = "operation_executed_successfully_key"
Link copied to clipboard
protected open var serverProtector: ServerProtector
Link copied to clipboard
protected val usersHelper: EquinoxUsersHelper<T>
Link copied to clipboard
protected open var usersRepository: EquinoxUsersRepository<T>
Link copied to clipboard
val WRONG_PROCEDURE_MESSAGE: String = "wrong_procedure_key"

Functions

Link copied to clipboard
protected open fun assembleSignInSuccessResponse(user: NovaUser): JSONObject
Link copied to clipboard
open fun changeEmail(id: String, token: String, payload: Map<String, String>): String
Link copied to clipboard
open fun changeLanguage(id: String, token: String, payload: Map<String, String>): String
Link copied to clipboard
open fun changePassword(id: String, token: String, payload: Map<String, String>): String
Link copied to clipboard
open fun changeProfilePic(id: String, token: String, profilePic: MultipartFile): String
Link copied to clipboard
open fun deleteAccount(id: String, token: String): String
Link copied to clipboard
protected open fun executeAuth(payload: Map<String, String>, personalData: Array<String>): String
Link copied to clipboard
protected open fun failedResponse(error: String): String
Link copied to clipboard
Link copied to clipboard
@GetMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}/" + NOTIFICATIONS_KEY", headers = [])
open fun <T> getNotifications(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String): T
Method to get the notifications of the user
Link copied to clipboard
@GetMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}"", headers = [])
open fun <T> getPotentialMembers(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String): T
Method to get the potential members to add in a project
Link copied to clipboard
protected open fun getSignInCustomParams(): Array<Any>
Link copied to clipboard
protected open fun getSignUpCustomParams(): Array<Any>
Link copied to clipboard
open fun initEquinoxEnvironment(storagePath: String, saveMessage: String, context: Class<out Any>, args: Array<String>, customSubDirectories: Array<String>)
Link copied to clipboard
protected open fun isMe(id: String, token: String): Boolean
Link copied to clipboard
protected open fun <V> loadJsonHelper(payload: Map<String, V>)
Link copied to clipboard
open fun signIn(payload: Map<String, String>): String
Link copied to clipboard
open fun signUp(payload: Map<String, String>): String
Link copied to clipboard
protected open fun successResponse(): String
protected open fun <V> successResponse(value: V): HashMap<String, V>
Link copied to clipboard
protected open fun validateSignIn(email: String, password: String, language: String, custom: Array<Any>): String
Link copied to clipboard
protected open fun validateSignUp(name: String, surname: String, email: String, password: String, language: String, custom: Array<Any>): String