EquinoxUsersController
@RestController
The EquinoxUsersController
class is useful to manage all the user operations
Author
N7ghtm4r3 - Tecknobit
Since
1.0.1
Parameters
<T>
The type of the EquinoxUser used in the system, is generic to avoid manual casts if it has been customized
<R>
The type of the EquinoxUsersRepository used in the system, is generic to avoid manual casts if it has been customized
<H>
The type of the EquinoxUsersService used in the system, is generic to avoid manual casts if it has been customized
See also
Properties
Link copied to clipboard
configuration
the current configuration of the Equinox's backend instanceLink copied to clipboard
jsonHelper
helper to work with JSON valuesLink copied to clipboard
messageSource
the message source used to manage the resources messages bundleLink copied to clipboard
NOT_AUTHORIZED_OR_WRONG_DETAILS_MESSAGE
message to use when the request is by a not authorized user or tried to fetch wrong detailsLink copied to clipboard
resourcesProvider
the resources provider and managerLink copied to clipboard
RESPONSE_SUCCESSFUL_MESSAGE
message to use when the request has been successfulLink copied to clipboard
protector
the instance to launch the server protector to manage the server accessesLink copied to clipboard
usersRepository
instance for the user repositoryLink copied to clipboard
usersService
helper to manage the users database operationsLink copied to clipboard
WRONG_EMAIL_MESSAGE
error message used when the email inserted is not validLink copied to clipboard
WRONG_LANGUAGE_MESSAGE
error message used when the language inserted is not validLink copied to clipboard
WRONG_NAME_MESSAGE
error message used when the name inserted is not validLink copied to clipboard
WRONG_PASSWORD_MESSAGE
error message used when the password inserted is not validLink copied to clipboard
WRONG_PROCEDURE_MESSAGE
message to use when the procedure is wrongLink copied to clipboard
WRONG_SURNAME_MESSAGE
error message used when the surname inserted is not validFunctions
Link copied to clipboard
Method used to assemble the sign-in response with the user details
Link copied to clipboard
@PatchMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_EMAIL_ENDPOINT", headers = [])
Method used to change the email of the user
Link copied to clipboard
@PatchMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_LANGUAGE_ENDPOINT", headers = [])
Method used to change the language of the user
Link copied to clipboard
@PatchMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_PASSWORD_ENDPOINT", headers = [])
Method used to change the password of the user
Link copied to clipboard
@PostMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_PROFILE_PIC_ENDPOINT", headers = [])
Method used to change the profile pic of the user
Link copied to clipboard
@DeleteMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}"", headers = [])
Method used to delete the account of the user
Link copied to clipboard
Method used to get the payload for a failed response
Link copied to clipboard
Method used to generate an identifier of an item
Link copied to clipboard
@GetMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + DYNAMIC_ACCOUNT_DATA_ENDPOINT", headers = [])
Method used to get the dynamic data of the user to correctly update in all the devices where the user is connected
Link copied to clipboard
protected open fun getInternationalizedMessage(messageKey: String, @Nullable args: Array<Any>): String
Method used to get the international message
Link copied to clipboard
Method used to get the list of the custom parameters of a custom EquinoxUser from the payload of the signIn method
Link copied to clipboard
Method used to get the list of the custom parameters of a custom EquinoxUser from the payload of the signUp method
Link copied to clipboard
open fun initEquinoxEnvironment( storagePath: String, saveMessage: String, context: Class<out Any>, args: Array<String>, customSubDirectories: Array<String>)
Method used to init the serverProtector and create the resources directories correctly
Link copied to clipboard
Method used to load the jsonHelper
Link copied to clipboard
Method used to assemble the payload for a response
Link copied to clipboard
Method used to change the current locale of the session
Link copied to clipboard
Method used to get the payload for a successful response
Link copied to clipboard