Interface HvlOAuthUserOperationalManager
- All Known Implementing Classes:
HvlOAuthUserOperationalManagerImpl
@Validated
public interface HvlOAuthUserOperationalManager
This manager provides operational methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Active password must be change all user.default void
changePasswordByAdmin
(@NotNull Long id, @NotBlank @Size(max=100) String password) Change password by admin.void
changePasswordByAdmin
(@NotNull Long id, @NotBlank @Size(max=100) String password, boolean passwordMustBeChanged) Change password by admin.deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete user by uuid.lock
(@NotNull @Valid HvlOAuthUserLockModel userLockModel) Lock user.default HvlOAuthUserModel
save
(@NotNull @Valid HvlOAuthUserModel userModel) Save hvl o auth user model.save
(@NotNull @Valid HvlOAuthUserModel userModel, @NotNull HvlOAuthUserRegistrationSourceType userRegistrationSourceType) Save user.default HvlOAuthUserModel
saveWithPredefinedValues
(@NotNull @Valid HvlOAuthUserModel userModel) Save with predefined values hvl o auth user model.saveWithPredefinedValues
(@NotNull @Valid HvlOAuthUserModel userModel, @NotNull HvlOAuthUserRegistrationSourceType userRegistrationSourceType) saveWithPredefinedValues is a method which is used to add new user data with predefined values which can be defined by administrator.void
Unlock user.update
(@NotNull @Valid HvlOAuthUserModel userModel, Consumer<Set<String>> affectedUsersAction) Update user.void
updateUserFailedCountAndLockedDate
(@NotBlank @Size(max=50) String username, Integer failedCount, OffsetDateTime lockedDate) Update user password.void
updateUserPassword
(@NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) String newPassword) Update user password.void
updateUserPassword
(@NotBlank @Size(max=50) String username, @NotBlank @Size(max=100) String oldPassword, @NotBlank @Size(max=100) String newPassword) Update user password.
-
Method Details
-
save
HvlOAuthUserModel save(@NotNull @Valid @NotNull @Valid HvlOAuthUserModel userModel, @NotNull @NotNull HvlOAuthUserRegistrationSourceType userRegistrationSourceType) Save user.- Parameters:
userModel
- the user modeluserRegistrationSourceType
- the user registration source type- Returns:
- the user model
-
save
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 modeluserRegistrationSourceType
- 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 modelaffectedUsersAction
- 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 usernamenewPassword
- 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 usernameoldPassword
- the old passwordnewPassword
- 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 usernamefailedCount
- the failed countlockedDate
- the locked date
-
deleteByUuid
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 idpassword
- the passwordpasswordMustBeChanged
- 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 idpassword
- the password
-
lock
Lock user.- Parameters:
userLockModel
- the userLockModel- Returns:
- the string
-
unlock
Unlock user.- Parameters:
uuid
- the uuid
-
activePasswordMustBeChangeAllUser
void activePasswordMustBeChangeAllUser()Active password must be change all user.
-