Interface HvlOAuthProfileOperationalManager

All Known Implementing Classes:
HvlOAuthProfileOperationalManagerImpl

@Validated public interface HvlOAuthProfileOperationalManager
A service in which includes custom methods used to persist/retrieve data.
  • 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 model
      affectedUsersAction - 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 uuid
      affectedUsersAction - the affected users action
      Returns:
      the profile id
    • activateByUuid

      void activateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      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 uuid
      affectedUsersAction - 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 model
      affectedUsersAction - 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 model
      affectedUsersAction - the affected users action
      Returns:
      the hvl o auth user model