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
deleteAllByProfileIdSetAndRoleIdSet
(@Size(max=100) @NotEmpty Set<@NotNull Long> profileIdSet, @Size(max=100) @NotEmpty Set<@NotNull Long> roleIdSet) Delete profile role relation by role ids and profile ids.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.void
mergeRoleProfiles
(@NotNull Long roleId, @Size(max=100) Set<@NotNull Long> profileIdSetToAdd, @Size(max=100) Set<@NotNull Long> profileIdSetToRemove) Merge role profile 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
-
mergeRoleProfiles
void mergeRoleProfiles(@NotNull @NotNull Long roleId, @Size(max=100) @Size(max=100) Set<@NotNull Long> profileIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> profileIdSetToRemove) Merge role profile rel with list to add and set to remove.- Parameters:
roleId
- the role idprofileIdSetToAdd
- the profile id set to addprofileIdSetToRemove
- the profile id set to remove
-
deleteAllByProfileIdSetAndRoleIdSet
void deleteAllByProfileIdSetAndRoleIdSet(@Size(max=100) @NotEmpty @Size(max=100) @NotEmpty Set<@NotNull Long> profileIdSet, @Size(max=100) @NotEmpty @Size(max=100) @NotEmpty Set<@NotNull Long> roleIdSet) Delete profile role relation by role ids and profile ids.- Parameters:
profileIdSet
- the profile id setroleIdSet
- the role id set to remove
-
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
-