Interface HvlOAuthRoleOperationalManager

All Known Implementing Classes:
HvlOAuthRoleOperationalManagerImpl

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

    • save

      HvlOAuthRoleModel save(@NotNull @Valid @NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel)
      Save role.
      Parameters:
      roleCopiablePersistModel - the role copiable persist model
      Returns:
      the role model
    • update

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) HvlOAuthRoleModel update(@NotNull @Valid @NotNull @Valid HvlOAuthRolePersistModel rolePersistModel, Consumer<Set<String>> affectedUsersAction)
      Update hvl o auth role model.
      Parameters:
      rolePersistModel - the role persist model
      affectedUsersAction - the affected users action
      Returns:
      the hvl o auth role model
    • deleteById

      void deleteById(@NotNull @NotNull Long id, Consumer<Set<String>> affectedUsersAction)
      Delete role by id.
      Parameters:
      id - the id
      affectedUsersAction - the affected users action
    • deleteByUuid

      void deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, Consumer<Set<String>> affectedUsersAction)
      Delete role by id.
      Parameters:
      uuid - the uuid
      affectedUsersAction - the affected users action
    • 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