Klasse UserHandler

java.lang.Object
de.bytestore.hostinger.handler.UserHandler

public class UserHandler extends Object
  • Konstruktordetails

    • UserHandler

      public UserHandler()
  • Methodendetails

    • getSettingsObject

      protected static List<UserSettings> getSettingsObject(User userIO, String keyIO)
    • getSettingsOrEmpty

      public static String getSettingsOrEmpty(User userIO, String keyIO)
      Retrieves the value of a specific setting for a given
    • setSettingsOrCreate

      public static void setSettingsOrCreate(User userIO, String keyIO, String valueIO)
      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 set
      keyIO - the key of the setting
      valueIO - the value of the setting
    • removeSettings

      public static void removeSettings(User userIO, String keyIO)
      This method removes the settings for a specific key belonging to a user.
      Parameter:
      userIO - the User object for which the settings are being removed
      keyIO - the key of the setting to be removed
    • getStuffs

      public static List<User> getStuffs()
    • getUsernames

      public static List<String> getUsernames(List<User> stuffsIO)
    • broadcast

      public static void broadcast(List<User> usersIO, String subjectIO, String messageIO, io.jmix.notifications.NotificationManager notificationManager)