Class HvlOAuthRoleAuthorityRelOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.relation.HvlOAuthRoleAuthorityRelOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthRoleAuthorityRelOperationalManager
@Service
public class HvlOAuthRoleAuthorityRelOperationalManagerImpl
extends Object
implements HvlOAuthRoleAuthorityRelOperationalManager
The class which implements
HvlOAuthRoleAuthorityRelOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthRoleAuthorityRelOperationalManagerImpl
(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleManager roleManager, HvlOAuthRoleAuthorityRelQueryGenerator roleAuthorityRelQueryGenerator, HvlOAuthRoleAuthorityRelMapper roleAuthorityRelMapper) Instantiates a new manager implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllByRoleId
(@NotNull Long roleId) Delete role authority relation by role id.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tr.com.havelsan.javarch.oauth.jpa.data.provider.module.role.manager.relation.HvlOAuthRoleAuthorityRelOperationalManager
merge
-
Constructor Details
-
HvlOAuthRoleAuthorityRelOperationalManagerImpl
public HvlOAuthRoleAuthorityRelOperationalManagerImpl(HvlOAuthRoleAuthorityRelRepository roleAuthorityRelRepository, HvlOAuthRoleManager roleManager, HvlOAuthRoleAuthorityRelQueryGenerator roleAuthorityRelQueryGenerator, HvlOAuthRoleAuthorityRelMapper roleAuthorityRelMapper) Instantiates a new manager implementation.- Parameters:
roleAuthorityRelRepository
- the role authority rel repositoryroleManager
- the role managerroleAuthorityRelQueryGenerator
- the role authority rel query generatorroleAuthorityRelMapper
- the role authority rel mapper
-
-
Method Details
-
merge
public 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.- Specified by:
merge
in interfaceHvlOAuthRoleAuthorityRelOperationalManager
- Parameters:
roleId
- the role idauthorityIdSetToAdd
- the authority id set to addauthorityIdSetToRemove
- the authority id set to removesourceRoleIdToCopy
- the source role id to copy
-
deleteAllByRoleId
Delete role authority relation by role id.- Specified by:
deleteAllByRoleId
in interfaceHvlOAuthRoleAuthorityRelOperationalManager
- Parameters:
roleId
- the role id
-