Class HvlOAuthTrustedProxyOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.proxy.manager.HvlOAuthTrustedProxyOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthTrustedProxyOperationalManager
@Service
public class HvlOAuthTrustedProxyOperationalManagerImpl
extends Object
implements HvlOAuthTrustedProxyOperationalManager
The class which implements
HvlOAuthTrustedProxyOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthTrustedProxyOperationalManagerImpl
(HvlOAuthTrustedProxyPersistRepository trustedProxyPersistRepository, HvlOAuthProxyManager proxyManager, HvlOAuthProxyOperationalManager proxyOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthTrustedProxyUserRelOperationalManager trustedProxyUserRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthProfileManager profileManager, HvlOAuthUserManager userManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthTrustedProxyQueryGenerator trustedProxyQueryGenerator, HvlOAuthTrustedProxyUserRelQueryGenerator trustedProxyUserRelQueryGenerator, HvlOAuthAcquiredRoleExpressionGenerator acquiredRoleExpressionGenerator, HvlOAuthTrustedProxyPersistMapper trustedProxyPersistMapper) Instantiates a new HvlOAuthTrustedProxyOperationalManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllBySourceProfileId
(@NotNull Long sourceProfileId) Delete all by source profile id.void
deleteAllByUserId
(@NotNull Long userId) Delete all by user id.void
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Delete trusted proxy with user profile predicate by uuid.void
deleteTrustedProxyBelongsToCurrentUserByUuid
(@NotBlank @Size(min=36,max=36) String uuid, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Delete trusted proxy that belongs to current user by uuid.save
(@NotNull @Valid HvlOAuthTrustedProxyCopiablePersistModel trustedProxyCopiablePersistModel, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save trusted proxy with user profile predicate.update
(@NotNull @Valid HvlOAuthTrustedProxyPersistModel trustedProxyPersistModel, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Update trusted proxy with user profile predicate.
-
Constructor Details
-
HvlOAuthTrustedProxyOperationalManagerImpl
public HvlOAuthTrustedProxyOperationalManagerImpl(HvlOAuthTrustedProxyPersistRepository trustedProxyPersistRepository, HvlOAuthProxyManager proxyManager, HvlOAuthProxyOperationalManager proxyOperationalManager, HvlOAuthTrustedProxyRoleRelOperationalManager trustedProxyRoleRelOperationalManager, HvlOAuthTrustedProxyUserRelOperationalManager trustedProxyUserRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthProfileManager profileManager, HvlOAuthUserManager userManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthTrustedProxyQueryGenerator trustedProxyQueryGenerator, HvlOAuthTrustedProxyUserRelQueryGenerator trustedProxyUserRelQueryGenerator, HvlOAuthAcquiredRoleExpressionGenerator acquiredRoleExpressionGenerator, HvlOAuthTrustedProxyPersistMapper trustedProxyPersistMapper) Instantiates a new HvlOAuthTrustedProxyOperationalManagerImpl.- Parameters:
trustedProxyPersistRepository
- the trusted proxy persist repositoryproxyManager
- the proxy managerproxyOperationalManager
- the proxy operational managertrustedProxyRoleRelOperationalManager
- the trusted proxy role rel operational managertrustedProxyUserRelOperationalManager
- the trusted proxy user rel operational manageracquiredProfileManager
- the acquired profile managerprofileManager
- the profile manageruserManager
- the user manageracquiredRoleManager
- the acquired role managertrustedProxyQueryGenerator
- the trusted proxy query generatortrustedProxyUserRelQueryGenerator
- the trusted proxy user rel query generatoracquiredRoleExpressionGenerator
- the acquired role expression generatortrustedProxyPersistMapper
- the trusted proxy persist mapper
-
-
Method Details
-
save
public HvlOAuthTrustedProxyModel save(@NotNull @Valid @NotNull @Valid HvlOAuthTrustedProxyCopiablePersistModel trustedProxyCopiablePersistModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save trusted proxy with user profile predicate.- Specified by:
save
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
trustedProxyCopiablePersistModel
- the trusted proxy copiable persist modeluserProfilePredicateModel
- the user profile predicate model- Returns:
- the trusted proxy model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public HvlOAuthTrustedProxyModel update(@NotNull @Valid @NotNull @Valid HvlOAuthTrustedProxyPersistModel trustedProxyPersistModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Update trusted proxy with user profile predicate.- Specified by:
update
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
trustedProxyPersistModel
- the trusted proxy persist modeluserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action- Returns:
- the trusted proxy model
-
deleteByUuid
public void deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Delete trusted proxy with user profile predicate by uuid.- Specified by:
deleteByUuid
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
uuid
- the uuiduserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action
-
deleteTrustedProxyBelongsToCurrentUserByUuid
public void deleteTrustedProxyBelongsToCurrentUserByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Delete trusted proxy that belongs to current user by uuid.- Specified by:
deleteTrustedProxyBelongsToCurrentUserByUuid
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
uuid
- the uuiduserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action
-
deleteAllBySourceProfileId
Delete all by source profile id.- Specified by:
deleteAllBySourceProfileId
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
sourceProfileId
- the source profile id
-
deleteAllByUserId
Description copied from interface:HvlOAuthTrustedProxyOperationalManager
Delete all by user id.- Specified by:
deleteAllByUserId
in interfaceHvlOAuthTrustedProxyOperationalManager
- Parameters:
userId
- the user id
-