Class HvlOAuthProfileRoleRelOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.relation.HvlOAuthProfileRoleRelOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthProfileRoleRelOperationalManager
@Service
public class HvlOAuthProfileRoleRelOperationalManagerImpl
extends Object
implements HvlOAuthProfileRoleRelOperationalManager
The class which implements
HvlOAuthProfileRoleRelOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProfileRoleRelOperationalManagerImpl
(HvlOAuthProfileRoleRelRepository profileRoleRelRepository, HvlOAuthPredefinedProxyRoleRelOperationalManager predefinedProxyRoleRelOperationalManager, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthProfileRoleRelMapper profileRoleRelMapper, HvlOAuthProfileRoleRelQueryGenerator profileRoleRelQueryGenerator) Instantiates a new HvlOAuthProfileRoleOperationalManagerImpl. -
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.
-
Constructor Details
-
HvlOAuthProfileRoleRelOperationalManagerImpl
public HvlOAuthProfileRoleRelOperationalManagerImpl(HvlOAuthProfileRoleRelRepository profileRoleRelRepository, HvlOAuthPredefinedProxyRoleRelOperationalManager predefinedProxyRoleRelOperationalManager, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthProfileRoleRelMapper profileRoleRelMapper, HvlOAuthProfileRoleRelQueryGenerator profileRoleRelQueryGenerator) Instantiates a new HvlOAuthProfileRoleOperationalManagerImpl.- Parameters:
profileRoleRelRepository
- the profile role repositorypredefinedProxyRoleRelOperationalManager
- the predefined proxy role rel operational managerproxyRoleRelOperationalManager
- the proxy role rel operational managertrustedProxyRoleRelOperationalManager
- the trusted proxy role rel operational managerprofileRoleRelMapper
- the profile role mapperprofileRoleRelQueryGenerator
- the profile role rel query generator
-
-
Method Details
-
merge
public 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.- Specified by:
merge
in interfaceHvlOAuthProfileRoleRelOperationalManager
- Parameters:
profileId
- the profile idroleIdSetToAdd
- the role id set to addroleIdSetToRemove
- the role id set to remove- Returns:
- the profile id
-
mergeRoleProfiles
public 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.- Specified by:
mergeRoleProfiles
in interfaceHvlOAuthProfileRoleRelOperationalManager
- Parameters:
roleId
- the role idprofileIdSetToAdd
- the profile id set to addprofileIdSetToRemove
- the profile id set to remove
-
deleteAllByProfileIdSetAndRoleIdSet
public 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.- Specified by:
deleteAllByProfileIdSetAndRoleIdSet
in interfaceHvlOAuthProfileRoleRelOperationalManager
- Parameters:
profileIdSet
- the profile id setroleIdSet
- the role id set to remove
-
deleteAllByRoleId
Delete profile role relation by and role id.- Specified by:
deleteAllByRoleId
in interfaceHvlOAuthProfileRoleRelOperationalManager
- Parameters:
roleId
- the role id
-
deleteAllByProfileId
Delete all by profile id.- Specified by:
deleteAllByProfileId
in interfaceHvlOAuthProfileRoleRelOperationalManager
- Parameters:
profileId
- the profile id
-