Interface HvlOAuthProfileOperationalManager
- All Known Implementing Classes:
HvlOAuthProfileOperationalManagerImpl
@Validated
public interface HvlOAuthProfileOperationalManager
A service in which includes custom methods used to persist/retrieve data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate role according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Method used to deactivate role according to uuid.void
deleteAllProxyByRoleIdSet
(@NotNull Set<@NotNull Long> roleIdSetToRemove) Delete all proxy rel by role id set.deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) deleteByUuid is a method which is used to remove profile record via uuid parameterresetProfile
(@NotNull @Valid HvlOAuthProfileResetModel profileResetModel, Consumer<Set<String>> affectedUsersAction) Reset profile.save
(@NotNull @Valid HvlOAuthProfileCopiablePersistModel profilePersistModel) save is a method which is used to add new profilesaveWithPredefinedRoles
(@NotNull @Valid HvlOAuthProfileModel profileModel) saveWithPredefinedRoles is a method which is used to add new profile with rolesupdate
(@NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel, Consumer<Set<String>> affectedUsersAction) update is a method which is used to edit profile record added beforeuserMigrationProfileToProfile
(@NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel, Consumer<Set<String>> affectedUsersAction) User migration profile to profile.
-
Method Details
-
save
HvlOAuthProfileModel save(@NotNull @Valid @NotNull @Valid HvlOAuthProfileCopiablePersistModel profilePersistModel) save is a method which is used to add new profile- Parameters:
profilePersistModel
- the profile persist model- Returns:
- hvl o auth profile persist model
-
saveWithPredefinedRoles
HvlOAuthProfileModel saveWithPredefinedRoles(@NotNull @Valid @NotNull @Valid HvlOAuthProfileModel profileModel) saveWithPredefinedRoles is a method which is used to add new profile with roles- Parameters:
profileModel
- the profile model- Returns:
- hvl o auth profile model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) HvlOAuthProfileModel update(@NotNull @Valid @NotNull @Valid HvlOAuthProfilePersistModel profilePersistModel, Consumer<Set<String>> affectedUsersAction) update is a method which is used to edit profile record added before- Parameters:
profilePersistModel
- the profile persist modelaffectedUsersAction
- the affected users action- Returns:
- hvl o auth profile model
-
deleteByUuid
Long deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) deleteByUuid is a method which is used to remove profile record via uuid parameter- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action- Returns:
- the profile id
-
activateByUuid
Method used to activate role according to uuid.- Parameters:
uuid
- the uuid
-
deactivateByUuid
void deactivateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction) Method used to deactivate role according to uuid.- Parameters:
uuid
- the uuidaffectedUsersAction
- the affected users action
-
userMigrationProfileToProfile
HvlOAuthUserMigrationDataTransferModel userMigrationProfileToProfile(@NotNull @Valid @NotNull @Valid HvlOAuthUserMigrationModel userMigrationModel, Consumer<Set<String>> affectedUsersAction) User migration profile to profile.- Parameters:
userMigrationModel
- the user migration modelaffectedUsersAction
- the affected users action- Returns:
- the hvl o auth user migration data transfer model
-
resetProfile
HvlOAuthProfileModel resetProfile(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileResetModel profileResetModel, Consumer<Set<String>> affectedUsersAction) Reset profile.- Parameters:
profileResetModel
- the profile reset modelaffectedUsersAction
- the affected users action- Returns:
- the hvl o auth user model
-
deleteAllProxyByRoleIdSet
Delete all proxy rel by role id set.- Parameters:
roleIdSetToRemove
- the role id set to remove
-