Interface HvlOAuthRoleAuthorityRelOperationalManager
- All Known Implementing Classes:
HvlOAuthRoleAuthorityRelOperationalManagerImpl
@Validated
public interface HvlOAuthRoleAuthorityRelOperationalManager
This manager provides operational methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 idauthorityIdSetToAdd
- the authority id set to addauthorityIdSetToRemove
- the authority id set to removesourceRoleIdToCopy
- 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 idauthorityIdSetToAdd
- the authority id set to addauthorityIdSetToRemove
- the authority id set to remove
-
deleteAllByRoleId
Delete role authority relation by role id.- Parameters:
roleId
- the role id
-
deleteAllByAuthorityId
Delete role authority relation by authority id.- Parameters:
authorityId
- the authority id
-