Equinox
Users
Helper
@Service
The EquinoxUsersHelper
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 EquinoxUsersHelper controller
No-any params required
Properties
Link copied to clipboard
_DROP_COLUMN_
query command
Link copied to clipboard
IN_CLAUSE
in clause query part
Link copied to clipboard
ALTER_TABLE_
query command
Link copied to clipboard
BASE_SIGN_UP_QUERY
base part
of the insertion query
Link copied to clipboard
CLOSED_ROUND_BRACKET
closed round bracket character
Link copied to clipboard
DEFAULT_USER_VALUES_KEYS
the default keys of the values to use in the BASE_SIGN_UP_QUERY
Link copied to clipboard
DELETE_FROM_
delete from
query command
Link copied to clipboard
discriminatorValue
value of
the discriminator to use to save the users in the related
table
Link copied to clipboard
entityManager
entity manager
helper
Link copied to clipboard
OPENED_ROUND_BRACKET
opened round bracket character
Link copied to clipboard
PROFILES_DIRECTORY
the folder
where the profile pics will be saved
Link copied to clipboard
QUESTION_MARK
question mark
character
Link copied to clipboard
RESOURCES_KEY
the key of the
resources folder where the resources will
be saved
Link copied to clipboard
RESOURCES_PATH
the folder
where the resources will be saved
Link copied to clipboard
SINGLE_QUOTE
single quote
character
Link copied to clipboard
usersRepository
instance for
the users repository
Link copied to clipboard
VALUES_QUERY_PART
values
query part
Functions
Link copied to clipboard
Method to arrange the BASE_SIGN_UP_QUERY
with dynamic list of values to use in that query
Link copied to clipboard
Link copied to clipboard
protected open fun batchInsert(command: EquinoxItemsHelper.InsertCommand, table: String, values: List<out Any>, batchQuery: EquinoxItemsHelper.BatchQuery, columns: Array<String>)
Method to execute a batch insert of a list
of data simultaneously
Link copied to clipboard
Method to change the email of the EquinoxUser
Link copied to clipboard
Method to change the language of the EquinoxUser
Link copied to clipboard
Method to change the password of the EquinoxUser
Link copied to clipboard
Method to change the profile pic of the EquinoxUser
Link copied to clipboard
Method to create the pathname for a profile
pic
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Method to create the pathname of a resource
file
Link copied to clipboard
Method to delete a profile pic
Link copied to clipboard
Method to delete a resource file
Link copied to clipboard
Method to delete a user
Link copied to clipboard
Method to get the list of keys to use in the
BASE_SIGN_UP_QUERY
No-any params required
Link copied to clipboard
Method to get the suffix of a resource
file
Link copied to clipboard
Method to save a resource file
Link copied to clipboard
Link copied to clipboard
protected open fun <V> syncBatch(container: EquinoxItemsHelper.SyncBatchContainer, table: String, targetId: String, updatedData: List<V>, batchQuery: EquinoxItemsHelper.BatchQuery)
Method to execute a batch synchronization of
a list of data simultaneously
Link copied to clipboard
Method to get whether the user is present in
the database
Link copied to clipboard