Class HvlOAuthProfileRoleGroupRelOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.relation.HvlOAuthProfileRoleGroupRelOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthProfileRoleGroupRelOperationalManager
@Service
public class HvlOAuthProfileRoleGroupRelOperationalManagerImpl
extends Object
implements HvlOAuthProfileRoleGroupRelOperationalManager
The class which implements
HvlOAuthProfileRoleGroupRelOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProfileRoleGroupRelOperationalManagerImpl
(HvlOAuthProfileRoleGroupRelRepository profileRoleGroupRelRepository, HvlOAuthProfileRoleGroupMapper profileRoleGroupMapper, HvlOAuthProfileRoleGroupRelQueryGenerator profileRoleGroupRelQueryGenerator) Instantiates a new HvlOAuthProfileRoleGroupManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllByProfileId
(@NotNull Long profileId) Delete all by profile id.void
deleteAllByProfileIdAndRoleGroupIdSet
(Long profileId, Set<Long> roleGroupIdSet) Delete profile role group relation by tag id list and profile id.merge
(@NotNull Long profileId, @Size(max=100) Set<@NotNull Long> roleGroupIdSetToAdd, @Size(max=100) Set<@NotNull Long> roleGroupIdSetToRemove) Merge profile role rel with list to add and set to remove.
-
Constructor Details
-
HvlOAuthProfileRoleGroupRelOperationalManagerImpl
public HvlOAuthProfileRoleGroupRelOperationalManagerImpl(HvlOAuthProfileRoleGroupRelRepository profileRoleGroupRelRepository, HvlOAuthProfileRoleGroupMapper profileRoleGroupMapper, HvlOAuthProfileRoleGroupRelQueryGenerator profileRoleGroupRelQueryGenerator) Instantiates a new HvlOAuthProfileRoleGroupManagerImpl.- Parameters:
profileRoleGroupRelRepository
- the profile role group repositoryprofileRoleGroupMapper
- the profile role group mapperprofileRoleGroupRelQueryGenerator
- the profile role group rel query generator
-
-
Method Details
-
merge
public Long merge(@NotNull @NotNull Long profileId, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleGroupIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleGroupIdSetToRemove) Merge profile role rel with list to add and set to remove.- Specified by:
merge
in interfaceHvlOAuthProfileRoleGroupRelOperationalManager
- Parameters:
profileId
- the profile idroleGroupIdSetToAdd
- the role group id set to addroleGroupIdSetToRemove
- the role group id set to remove- Returns:
- the profile id
-
deleteAllByProfileIdAndRoleGroupIdSet
Delete profile role group relation by tag id list and profile id.- Specified by:
deleteAllByProfileIdAndRoleGroupIdSet
in interfaceHvlOAuthProfileRoleGroupRelOperationalManager
- Parameters:
profileId
- the profile idroleGroupIdSet
- the role id set
-
deleteAllByProfileId
Delete all by profile id.- Specified by:
deleteAllByProfileId
in interfaceHvlOAuthProfileRoleGroupRelOperationalManager
- Parameters:
profileId
- the profile id
-