Class HvlOAuthRoleAuthorityRelOperationalManagerImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.relation.HvlOAuthRoleAuthorityRelOperationalManagerImpl
All Implemented Interfaces:
HvlOAuthRoleAuthorityRelOperationalManager

@Service public class HvlOAuthRoleAuthorityRelOperationalManagerImpl extends Object implements HvlOAuthRoleAuthorityRelOperationalManager
The class which implements HvlOAuthRoleAuthorityRelOperationalManager.
  • Constructor Details

  • Method Details

    • merge

      public 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.
      Specified by:
      merge in interface HvlOAuthRoleAuthorityRelOperationalManager
      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
    • deleteAllByRoleId

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

      public void deleteAllByAuthorityId(@NotNull @NotNull Long authorityId)
      Delete role authority relation by authority id.
      Specified by:
      deleteAllByAuthorityId in interface HvlOAuthRoleAuthorityRelOperationalManager
      Parameters:
      authorityId - the authority id