EquinoxUsersService
@Service
The EquinoxUsersService
class is useful to manage all the user database 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
See also
Constructors
Link copied to clipboard
constructor()
Constructor to init the EquinoxUsersService controller
Properties
Link copied to clipboard
_DROP_COLUMN_
query commandLink copied to clipboard
IN_CLAUSE
in clause query partLink copied to clipboard
ALTER_TABLE_
query commandLink copied to clipboard
BASE_SIGN_UP_QUERY
base part of the insertion queryLink copied to clipboard
CLOSED_ROUND_BRACKET
closed round bracket characterLink copied to clipboard
DEFAULT_DYNAMIC_ACCOUNT_DATA_KEYS
the default keys of the values to retrieve with the getDynamicAccountData methodLink copied to clipboard
DEFAULT_USER_SIGN_UP_KEYS
the default keys of the values to use in the BASE_SIGN_UP_QUERYLink copied to clipboard
DELETE_FROM_
delete from query commandLink copied to clipboard
discriminatorValue
value of the discriminator to use to save the users in the related tableLink copied to clipboard
entityManager
entity manager helperLink copied to clipboard
OPENED_ROUND_BRACKET
opened round bracket characterLink copied to clipboard
PROFILES_DIRECTORY
the folder where the profile pics will be savedLink copied to clipboard
QUESTION_MARK
question mark characterLink copied to clipboard
RESOURCES_KEY
the key of the resources folder where the resources will be savedLink copied to clipboard
RESOURCES_PATH
the folder where the resources will be savedLink copied to clipboard
SINGLE_QUOTE
single quote characterLink copied to clipboard
usersRepository
instance for the users repositoryLink copied to clipboard
VALUES_QUERY_PART
values query partFunctions
Link copied to clipboard
Method used to arrange the dynamic data query to execute by the getDynamicAccountData method
Link copied to clipboard
Method used to arrange the BASE_SIGN_UP_QUERY with dynamic list of values to use in that query
Link copied to clipboard
protected open fun batchDelete(table: String, values: Collection<out Any>, @NotNull columns: Array<@NotNull String>)
Method used to execute a batch delete of a single list of data simultaneously
Link copied to clipboard
protected open fun <V> batchInsert( command: EquinoxItemsHelper.InsertCommand, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Method used to execute a batch insert of a list of data simultaneously
Link copied to clipboard
Method used to change the email of the EquinoxUser
Link copied to clipboard
Method used to change the language of the EquinoxUser
Link copied to clipboard
Method used to change the password of the EquinoxUser
Link copied to clipboard
Method used to change the profile pic of the EquinoxUser
Link copied to clipboard
Method used to create the pathname for a profile pic
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Method used to create the pathname of a resource file
Link copied to clipboard
Method used to delete a profile pic
Link copied to clipboard
Method used to delete a resource file
Link copied to clipboard
Method used to delete a user
Link copied to clipboard
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
Method used to get the list of keys to use in the getDynamicAccountData method
Link copied to clipboard
Method used to get the list of keys to use in the BASE_SIGN_UP_QUERY
Link copied to clipboard
Method used to get the suffix of a resource file
Link copied to clipboard
Method used to save a resource file
Link copied to clipboard
Link copied to clipboard
protected open fun <V> syncBatch(model: EquinoxItemsHelper.SyncBatchModel, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
protected open fun <V> syncBatch( model: EquinoxItemsHelper.SyncBatchModel, command: EquinoxItemsHelper.InsertCommand, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Method used to execute a batch synchronization of a list of data simultaneously
Link copied to clipboard
Method used to get whether the user is present in the database
Link copied to clipboard