Interface UserService


public interface UserService
API for managing users and roles on the SolarNode system.
Since:
1.48
Version:
1.1
Author:
matt
  • Method Details

    • someUserExists

      boolean someUserExists()
      Test if any user exists.
      Returns:
      true if some user exists
    • changePassword

      void changePassword(String existingPassword, String newPassword, String newPasswordAgain)
      Update the active user's password.
      Parameters:
      existingPassword - The existing password.
      newPassword - The new password to set.
      newPasswordAgain - The new password, repeated.
      Throws:
      IllegalArgumentException - if the newPassword and newPasswordAgain values do not match, or are null
    • changeUsername

      void changeUsername(String newUsername, String newUsernameAgain)
      Update the active user's username.
      Parameters:
      newUsername - The new username to set.
      newUsernameAgain - The new username, repeated.
      Throws:
      IllegalArgumentException - if the newUsername and newUsernameAgain values do not match, or are null
    • storeUserProfile

      void storeUserProfile(UserProfile profile)
      Store a user profile into settings.
      Parameters:
      profile - The profile to store.
      Throws:
      IllegalArgumentException - if username is null, or if the password and passwordAgain values do not match or are null
    • authenticationInfo

      UserAuthenticationInfo authenticationInfo(String username)
      Get authentication info for a given username.
      Parameters:
      username - the username to get authentication info for
      Returns:
      the info, or null if not available
      Since:
      1.1