Class HvlOAuthProfileGroupRoleRelOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.relation.HvlOAuthProfileGroupRoleRelOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthProfileGroupRoleRelOperationalManager
@Service
public class HvlOAuthProfileGroupRoleRelOperationalManagerImpl
extends Object
implements HvlOAuthProfileGroupRoleRelOperationalManager
The class which implements
HvlOAuthProfileGroupRoleRelOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProfileGroupRoleRelOperationalManagerImpl
(HvlOAuthProfileGroupRoleRelRepository profileGroupRoleRelRepository, HvlOAuthProfileGroupRoleRelMapper profileGroupRoleRelMapper, HvlOAuthProfileGroupRoleRelQueryGenerator profileGroupRoleQueryGenerator) Instantiates a new HvlOAuthProfileGroupRoleOperationalManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllByProfileGroupId
(@NotNull Long profileGroupId) Delete all by profile group id.void
deleteAllByProfileGroupIdAndRoleIdSet
(@NotNull Long profileGroupId, @NotEmpty Set<@NotNull Long> roleIdSet) Delete all by profile group id and role id set.merge
(@NotNull Long profileGroupId, @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) Set<@NotNull Long> roleIdSetToRemove) Merge.
-
Constructor Details
-
HvlOAuthProfileGroupRoleRelOperationalManagerImpl
public HvlOAuthProfileGroupRoleRelOperationalManagerImpl(HvlOAuthProfileGroupRoleRelRepository profileGroupRoleRelRepository, HvlOAuthProfileGroupRoleRelMapper profileGroupRoleRelMapper, HvlOAuthProfileGroupRoleRelQueryGenerator profileGroupRoleQueryGenerator) Instantiates a new HvlOAuthProfileGroupRoleOperationalManagerImpl.- Parameters:
profileGroupRoleRelRepository
- the profile group role repositoryprofileGroupRoleRelMapper
- the profile group role mapperprofileGroupRoleQueryGenerator
- the profile group role query generator
-
-
Method Details
-
merge
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlTransientValidationGroup.class) public Long merge(@NotNull @NotNull Long profileGroupId, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToRemove) Merge.- Specified by:
merge
in interfaceHvlOAuthProfileGroupRoleRelOperationalManager
- Parameters:
profileGroupId
- the profile group idroleIdSetToAdd
- the profile id set to addroleIdSetToRemove
- the profile id set to remove- Returns:
- the long
-
deleteAllByProfileGroupIdAndRoleIdSet
public void deleteAllByProfileGroupIdAndRoleIdSet(@NotNull @NotNull Long profileGroupId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet) Delete all by profile group id and role id set.- Specified by:
deleteAllByProfileGroupIdAndRoleIdSet
in interfaceHvlOAuthProfileGroupRoleRelOperationalManager
- Parameters:
profileGroupId
- the profile group idroleIdSet
- the role id set
-
deleteAllByProfileGroupId
Delete all by profile group id.- Specified by:
deleteAllByProfileGroupId
in interfaceHvlOAuthProfileGroupRoleRelOperationalManager
- Parameters:
profileGroupId
- the profile group id
-