Interface HvlOAuthProfileRoleRelOperationalManager

All Known Implementing Classes:
HvlOAuthProfileRoleRelOperationalManagerImpl

@Validated public interface HvlOAuthProfileRoleRelOperationalManager
A service in which includes custom methods used to persist/retrieve data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAllByProfileId(@NotNull Long profileId)
    Delete all by profile id.
    void
    deleteAllByProfileIdAndRoleIdSet(@NotNull Long profileId, @NotEmpty Set<@NotNull Long> roleIdSet)
    Delete profile role relation by role id list and profile id.
    void
    Delete profile role relation by and role id.
    merge(@NotNull Long profileId, @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) Set<@NotNull Long> roleIdSetToRemove)
    Merge profile role rel with list to add and set to remove.
  • Method Details

    • merge

      Long merge(@NotNull @NotNull Long profileId, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToRemove)
      Merge profile role rel with list to add and set to remove.
      Parameters:
      profileId - the profile id
      roleIdSetToAdd - the role id set to add
      roleIdSetToRemove - the role id set to remove
      Returns:
      the profile id
    • deleteAllByProfileIdAndRoleIdSet

      void deleteAllByProfileIdAndRoleIdSet(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet)
      Delete profile role relation by role id list and profile id.
      Parameters:
      profileId - the profile id
      roleIdSet - the role id set
    • deleteAllByRoleId

      void deleteAllByRoleId(Long roleId)
      Delete profile role relation by and role id.
      Parameters:
      roleId - the role id
    • deleteAllByProfileId

      void deleteAllByProfileId(@NotNull @NotNull Long profileId)
      Delete all by profile id.
      Parameters:
      profileId - the profile id