Interface HvlOAuthRoleAuthorityRelOperationalManager

All Known Implementing Classes:
HvlOAuthRoleAuthorityRelOperationalManagerImpl

@Validated public interface HvlOAuthRoleAuthorityRelOperationalManager
This manager provides operational methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAllByAuthorityId(@NotNull Long authorityId)
    Delete role authority relation by authority id.
    void
    deleteAllByRoleId(@NotNull Long roleId)
    Delete role authority relation by role id.
    default void
    merge(@NotNull Long roleId, @Size(max=100) Set<@NotNull Long> authorityIdSetToAdd, @Size(max=100) Set<@NotNull Long> authorityIdSetToRemove)
    Merge role authority relations.
    void
    merge(@NotNull Long roleId, @Size(max=100) Set<@NotNull Long> authorityIdSetToAdd, @Size(max=100) Set<@NotNull Long> authorityIdSetToRemove, @NotNull Optional<Long> sourceRoleIdToCopy)
    Merge role authority relations.
  • Method Details

    • merge

      void merge(@NotNull @NotNull Long roleId, @Size(max=100) @Size(max=100) Set<@NotNull Long> authorityIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> authorityIdSetToRemove, @NotNull @NotNull Optional<Long> sourceRoleIdToCopy)
      Merge role authority relations.
      Parameters:
      roleId - the role id
      authorityIdSetToAdd - the authority id set to add
      authorityIdSetToRemove - the authority id set to remove
      sourceRoleIdToCopy - the source role id to copy
    • merge

      default void merge(@NotNull @NotNull Long roleId, @Size(max=100) @Size(max=100) Set<@NotNull Long> authorityIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> authorityIdSetToRemove)
      Merge role authority relations.
      Parameters:
      roleId - the role id
      authorityIdSetToAdd - the authority id set to add
      authorityIdSetToRemove - the authority id set to remove
    • deleteAllByRoleId

      void deleteAllByRoleId(@NotNull @NotNull Long roleId)
      Delete role authority relation by role id.
      Parameters:
      roleId - the role id
    • deleteAllByAuthorityId

      void deleteAllByAuthorityId(@NotNull @NotNull Long authorityId)
      Delete role authority relation by authority id.
      Parameters:
      authorityId - the authority id