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 TypeMethodDescriptionvoid
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
deleteAllByRoleId
(Long roleId) 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 idroleIdSetToAdd
- the role id set to addroleIdSetToRemove
- 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 idroleIdSet
- the role id set
-
deleteAllByRoleId
Delete profile role relation by and role id.- Parameters:
roleId
- the role id
-
deleteAllByProfileId
Delete all by profile id.- Parameters:
profileId
- the profile id
-