Class HvlOAuthProxyOperationalManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.proxy.manager.HvlOAuthProxyOperationalManagerImpl
- All Implemented Interfaces:
HvlOAuthProxyOperationalManager
@Service
public class HvlOAuthProxyOperationalManagerImpl
extends Object
implements HvlOAuthProxyOperationalManager
The class which implements
HvlOAuthProxyOperationalManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProxyOperationalManagerImpl
(HvlOAuthProxyPersistRepository proxyPersistRepository, HvlOAuthTrustedProxyRepository trustedProxyRepository, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthUserManager userManager, HvlOAuthProfileManager profileManager, HvlOAuthProxyQueryGenerator proxyQueryGenerator, HvlOAuthRoleQueryGenerator roleQueryGenerator, HvlOAuthTrustedProxyUserRelQueryGenerator trustedProxyUserRelQueryGenerator, HvlOAuthProxyPersistMapper proxyPersistMapper) Instantiates a new HvlOAuthProxyOperationalManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllBySourceProfileId
(@NotNull Long sourceProfileId) Delete proxy by source profile id.void
deleteAllByTargetUserId
(@NotNull Long targetUserId) Delete proxy by target user id.void
deleteAllByTrustedProxyId
(@NotNull Long trustedProxyId) Delete proxy by trusted proxy id.void
deleteAllByTrustedProxyIdAndTargetUserId
(@NotNull Long trustedProxyId, @NotEmpty Set<@NotNull Long> targetUserIdSet) Delete all by trusted proxy id and target user id.void
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Delete proxy with user profile predicate by uuid.save
(@NotNull @Valid HvlOAuthProxyCopiablePersistModel proxyCopiablePersistModel, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save proxy with user profile predicate.saveFromTrustedProxy
(@NotNull @Valid HvlOAuthProxyFromTrustedProxyModel proxyFromTrustedProxyModel, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save proxy from trusted proxy with user profile predicate.update
(@NotNull @Valid HvlOAuthProxyPersistModel proxyPersistModel, @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Update proxy with user profile predicate.
-
Constructor Details
-
HvlOAuthProxyOperationalManagerImpl
public HvlOAuthProxyOperationalManagerImpl(HvlOAuthProxyPersistRepository proxyPersistRepository, HvlOAuthTrustedProxyRepository trustedProxyRepository, HvlOAuthProxyRoleRelOperationalManager proxyRoleRelOperationalManager, HvlOAuthAcquiredProfileManager acquiredProfileManager, HvlOAuthAcquiredRoleManager acquiredRoleManager, HvlOAuthUserManager userManager, HvlOAuthProfileManager profileManager, HvlOAuthProxyQueryGenerator proxyQueryGenerator, HvlOAuthRoleQueryGenerator roleQueryGenerator, HvlOAuthTrustedProxyUserRelQueryGenerator trustedProxyUserRelQueryGenerator, HvlOAuthProxyPersistMapper proxyPersistMapper) Instantiates a new HvlOAuthProxyOperationalManagerImpl.- Parameters:
proxyPersistRepository
- the proxy persist repositorytrustedProxyRepository
- the trusted proxy repositoryproxyRoleRelOperationalManager
- the proxy role rel operational manageracquiredProfileManager
- the acquired profile manageracquiredRoleManager
- the acquired role manageruserManager
- the user managerprofileManager
- the profile managerproxyQueryGenerator
- the proxy query generatorroleQueryGenerator
- the role query generatortrustedProxyUserRelQueryGenerator
- the trusted proxy user rel query generatorproxyPersistMapper
- the proxy persist mapper
-
-
Method Details
-
save
public HvlOAuthProxyModel save(@NotNull @Valid @NotNull @Valid HvlOAuthProxyCopiablePersistModel proxyCopiablePersistModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save proxy with user profile predicate.- Specified by:
save
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
proxyCopiablePersistModel
- the proxy copiable persist modeluserProfilePredicateModel
- the user profile predicate model- Returns:
- the proxy model
-
saveFromTrustedProxy
public HvlOAuthProxyModel saveFromTrustedProxy(@NotNull @Valid @NotNull @Valid HvlOAuthProxyFromTrustedProxyModel proxyFromTrustedProxyModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save proxy from trusted proxy with user profile predicate.- Specified by:
saveFromTrustedProxy
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
proxyFromTrustedProxyModel
- the proxy from trusted proxy modeluserProfilePredicateModel
- the user profile predicate model- Returns:
- the proxy model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public HvlOAuthProxyModel update(@NotNull @Valid @NotNull @Valid HvlOAuthProxyPersistModel proxyPersistModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel, Consumer<Set<String>> affectedUsersAction) Update proxy with user profile predicate.- Specified by:
update
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
proxyPersistModel
- the proxy persist modeluserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action- Returns:
- the 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 proxy with user profile predicate by uuid.- Specified by:
deleteByUuid
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
uuid
- the uuiduserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action
-
deleteAllBySourceProfileId
Delete proxy by source profile id.- Specified by:
deleteAllBySourceProfileId
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
sourceProfileId
- the source profile id
-
deleteAllByTargetUserId
Delete proxy by target user id.- Specified by:
deleteAllByTargetUserId
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
targetUserId
- the target user id
-
deleteAllByTrustedProxyId
Delete proxy by trusted proxy id.- Specified by:
deleteAllByTrustedProxyId
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
trustedProxyId
- the trusted proxy id
-
deleteAllByTrustedProxyIdAndTargetUserId
public void deleteAllByTrustedProxyIdAndTargetUserId(@NotNull @NotNull Long trustedProxyId, @NotEmpty @NotEmpty Set<@NotNull Long> targetUserIdSet) Delete all by trusted proxy id and target user id.- Specified by:
deleteAllByTrustedProxyIdAndTargetUserId
in interfaceHvlOAuthProxyOperationalManager
- Parameters:
trustedProxyId
- the trusted proxy idtargetUserIdSet
- the target user id set
-