Class HvlOAuthTrustedProxyRoleRelOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.proxy.manager.relation.HvlOAuthTrustedProxyRoleRelOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthTrustedProxyRoleRelOperationalManager
@Service
public class HvlOAuthTrustedProxyRoleRelOperationalManagerImpl
extends Object
implements HvlOAuthTrustedProxyRoleRelOperationalManager
The class which implements
HvlOAuthTrustedProxyRoleRelOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthTrustedProxyRoleRelOperationalManagerImpl
(HvlOAuthTrustedProxyRoleRelRepository trustedProxyRoleRelRepository, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelQueryGenerator trustedProxyRoleRelQueryGenerator, HvlOAuthTrustedProxyRoleRelMapper trustedProxyRoleRelMapper) Instantiates a new HvlOAuthTrustedProxyRoleRelOperationalManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllByProfileIdRoleId
(@NotNull Long profileId, @NotEmpty Set<@NotNull Long> roleIdSet) Delete trusted proxy role relation by profile id and role id set.void
deleteAllByRoleId
(@NotNull Long roleId) Delete all by role id.void
deleteAllByRoleIdSet
(@NotNull Set<@NotNull Long> roleIdSet) Delete all by role id set.void
deleteAllByTrustedProxyId
(@NotNull Long trustedProxyId) Delete all by trusted proxy id.void
merge
(@NotNull Long trustedProxyId, @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) Set<@NotNull Long> roleIdSetToRemove, @NotNull Optional<Long> sourceTrustedProxyIdToCopy) Merge trusted proxy role 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.proxy.manager.relation.HvlOAuthTrustedProxyRoleRelOperationalManager
merge
-
Constructor Details
-
HvlOAuthTrustedProxyRoleRelOperationalManagerImpl
public HvlOAuthTrustedProxyRoleRelOperationalManagerImpl(HvlOAuthTrustedProxyRoleRelRepository trustedProxyRoleRelRepository, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelQueryGenerator trustedProxyRoleRelQueryGenerator, HvlOAuthTrustedProxyRoleRelMapper trustedProxyRoleRelMapper) Instantiates a new HvlOAuthTrustedProxyRoleRelOperationalManagerImpl.- Parameters:
trustedProxyRoleRelRepository
- the trusted proxy role rel repositoryproxyRoleRelOperationalManager
- the proxy role rel operational managertrustedProxyRoleRelQueryGenerator
- the trusted proxy role rel query generatortrustedProxyRoleRelMapper
- the trusted proxy role rel mapper
-
-
Method Details
-
merge
public void merge(@NotNull @NotNull Long trustedProxyId, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToAdd, @Size(max=100) @Size(max=100) Set<@NotNull Long> roleIdSetToRemove, @NotNull @NotNull Optional<Long> sourceTrustedProxyIdToCopy) Merge trusted proxy role relations.- Specified by:
merge
in interfaceHvlOAuthTrustedProxyRoleRelOperationalManager
- Parameters:
trustedProxyId
- the trusted proxy idroleIdSetToAdd
- the role id set to addroleIdSetToRemove
- the role id set to removesourceTrustedProxyIdToCopy
- the source trusted proxy id to copy
-
deleteAllByTrustedProxyId
Delete all by trusted proxy id.- Specified by:
deleteAllByTrustedProxyId
in interfaceHvlOAuthTrustedProxyRoleRelOperationalManager
- Parameters:
trustedProxyId
- the predefined proxy id
-
deleteAllByRoleId
Delete all by role id.- Specified by:
deleteAllByRoleId
in interfaceHvlOAuthTrustedProxyRoleRelOperationalManager
- Parameters:
roleId
- the role id
-
deleteAllByProfileIdRoleId
public void deleteAllByProfileIdRoleId(@NotNull @NotNull Long profileId, @NotEmpty @NotEmpty Set<@NotNull Long> roleIdSet) Delete trusted proxy role relation by profile id and role id set.- Specified by:
deleteAllByProfileIdRoleId
in interfaceHvlOAuthTrustedProxyRoleRelOperationalManager
- Parameters:
profileId
- the profile idroleIdSet
- the role id set
-
deleteAllByRoleIdSet
Delete all by role id set.- Specified by:
deleteAllByRoleIdSet
in interfaceHvlOAuthTrustedProxyRoleRelOperationalManager
- Parameters:
roleIdSet
- the role id set to remove
-