RefyUsersHelper

@Service
@Primary
open class RefyUsersHelper : EquinoxUsersHelper<T>

The RefyUsersHelper class is useful to manage all the Refy's user database operations

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxUsersHelper
ResourcesManager

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@Autowired
private open var collectionsRepository: CollectionsRepository
collectionsRepository instance for the collections repository
Link copied to clipboard
private open var discriminatorValue: String
Link copied to clipboard
val PROFILES_DIRECTORY: String = "profiles"
Link copied to clipboard
@Autowired
private open var refyUsersRepository: RefyUsersRepository
refyUsersRepository instance for the Refy users repository
Link copied to clipboard
val RESOURCES_KEY: String = "resources"
Link copied to clipboard
val RESOURCES_PATH: String = "resources/"
Link copied to clipboard
@Autowired
private open var teamsRepository: TeamsRepository
teamsRepository instance for the teams repository
Link copied to clipboard
private open var usersRepository: EquinoxUsersRepository<T>

Functions

Link copied to clipboard
open fun changeEmail(newEmail: String, userId: String)
Link copied to clipboard
open fun changeLanguage(newLanguage: String, userId: String)
Link copied to clipboard
open fun changePassword(newPassword: String, userId: String)
Link copied to clipboard
open fun changeProfilePic(profilePic: MultipartFile, userId: String): String
Link copied to clipboard
open fun createProfileResource(resource: MultipartFile, resourceId: String): String
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Link copied to clipboard
Link copied to clipboard
open fun deleteResource(resourcesDirectory: String, resourceId: String): Boolean
Link copied to clipboard
open fun deleteUser(id: String)
Link copied to clipboard
Method to get the potential members for a team
Link copied to clipboard
open fun getSuffixResource(resource: MultipartFile): String
Link copied to clipboard
private open fun hash(secret: String): String
Method to hash a sensitive user data
Link copied to clipboard
open fun saveResource(resource: MultipartFile, path: String)
Link copied to clipboard
open fun signInUser(email: String, password: String): RefyUser
Link copied to clipboard
open fun signUpUser(id: String, token: String, name: String, surname: String, email: String, password: String, language: String)

open fun signUpUser(id: String, token: String, tagName: String, name: String, surname: String, email: String, password: String, language: String)
Method to sign up a new user in the system