Interface HvlOAuthUserOperationalManager

All Known Implementing Classes:
HvlOAuthUserOperationalManagerImpl

@Validated public interface HvlOAuthUserOperationalManager
This manager provides operational methods.
  • Method Details

    • save

      HvlOAuthUserModel save(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel, @NotNull @NotNull HvlOAuthUserRegistrationSourceType userRegistrationSourceType)
      Save user.
      Parameters:
      userModel - the user model
      userRegistrationSourceType - the user registration source type
      Returns:
      the user model
    • save

      default HvlOAuthUserModel save(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel)
      Save hvl o auth user model.
      Parameters:
      userModel - the user model
      Returns:
      the hvl o auth user model
    • saveWithPredefinedValues

      HvlOAuthUserModel saveWithPredefinedValues(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel, @NotNull @NotNull HvlOAuthUserRegistrationSourceType userRegistrationSourceType)
      saveWithPredefinedValues is a method which is used to add new user data with predefined values which can be defined by administrator. For example, If there is a record for user type of user trying to be added matching with predefined role, system would create a profile authorized with this predefined roles for this user.
      Parameters:
      userModel - the user model
      userRegistrationSourceType - the user registration source type
      Returns:
      the user model
    • saveWithPredefinedValues

      default HvlOAuthUserModel saveWithPredefinedValues(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel)
      Save with predefined values hvl o auth user model.
      Parameters:
      userModel - the user model
      Returns:
      the hvl o auth user model
    • update

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) HvlOAuthUserModel update(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel, Consumer<Set<String>> affectedUsersAction)
      Update user.
      Parameters:
      userModel - the user model
      affectedUsersAction - the affected users action
      Returns:
      the user model
    • updateUserPassword

      void updateUserPassword(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String newPassword)
      Update user password.
      Parameters:
      username - the username
      newPassword - the new password
    • updateUserPassword

      void updateUserPassword(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String oldPassword, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String newPassword)
      Update user password.
      Parameters:
      username - the username
      oldPassword - the old password
      newPassword - the new password
    • updateUserFailedCountAndLockedDate

      void updateUserFailedCountAndLockedDate(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Integer failedCount, OffsetDateTime lockedDate)
      Update user password.
      Parameters:
      username - the username
      failedCount - the failed count
      lockedDate - the locked date
    • deleteByUuid

      String deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Delete user by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the username
    • changePasswordByAdmin

      void changePasswordByAdmin(@NotNull @NotNull Long id, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String password, boolean passwordMustBeChanged)
      Change password by admin.
      Parameters:
      id - the id
      password - the password
      passwordMustBeChanged - the password must be changed
    • changePasswordByAdmin

      default void changePasswordByAdmin(@NotNull @NotNull Long id, @NotBlank @Size(max=100) @NotBlank @Size(max=100) String password)
      Change password by admin.
      Parameters:
      id - the id
      password - the password
    • lock

      String lock(@NotNull @Valid @NotNull @Valid HvlOAuthUserLockModel userLockModel)
      Lock user.
      Parameters:
      userLockModel - the userLockModel
      Returns:
      the string
    • unlock

      void unlock(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Unlock user.
      Parameters:
      uuid - the uuid
    • activePasswordMustBeChangeAllUser

      void activePasswordMustBeChangeAllUser()
      Active password must be change all user.