Package de.bytestore.hostinger.handler
Klasse UserHandler
java.lang.Object
de.bytestore.hostinger.handler.UserHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidbroadcast(List<User> usersIO, String subjectIO, String messageIO, io.jmix.notifications.NotificationManager notificationManager) protected static List<UserSettings>getSettingsObject(User userIO, String keyIO) static StringgetSettingsOrEmpty(User userIO, String keyIO) Retrieves the value of a specific setting for a givengetUsernames(List<User> stuffsIO) static voidremoveSettings(User userIO, String keyIO) This method removes the settings for a specific key belonging to a user.static voidsetSettingsOrCreate(User userIO, String keyIO, String valueIO) Sets the value of a specific setting for a given User.
-
Konstruktordetails
-
UserHandler
public UserHandler()
-
-
Methodendetails
-
getSettingsObject
-
getSettingsOrEmpty
Retrieves the value of a specific setting for a given -
setSettingsOrCreate
Sets the value of a specific setting for a given User. If the UserSettings object does not exist, it creates a new one and saves it to the database.- Parameter:
userIO- the User object for which the setting is being setkeyIO- the key of the settingvalueIO- the value of the setting
-
removeSettings
This method removes the settings for a specific key belonging to a user.- Parameter:
userIO- the User object for which the settings are being removedkeyIO- the key of the setting to be removed
-
getStuffs
-
getUsernames
-
broadcast
-