Interface HvlOAuthTrustedProxyOperationalManager
- All Known Implementing Classes:
HvlOAuthTrustedProxyOperationalManagerImpl
@Validated
public interface HvlOAuthTrustedProxyOperationalManager
This manager provides operational methods.
-
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.
-
Method Details
-
save
HvlOAuthTrustedProxyModel save(@NotNull @Valid @NotNull @Valid HvlOAuthTrustedProxyCopiablePersistModel trustedProxyCopiablePersistModel, @NotNull @Valid @NotNull @Valid HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Save trusted proxy with user profile predicate.- 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) 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.- Parameters:
trustedProxyPersistModel
- the trusted proxy persist modeluserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action- Returns:
- the trusted proxy model
-
deleteByUuid
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.- Parameters:
uuid
- the uuiduserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action
-
deleteTrustedProxyBelongsToCurrentUserByUuid
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.- Parameters:
uuid
- the uuiduserProfilePredicateModel
- the user profile predicate modelaffectedUsersAction
- the affected users action
-
deleteAllBySourceProfileId
Delete all by source profile id.- Parameters:
sourceProfileId
- the source profile id
-
deleteAllByUserId
Delete all by user id.- Parameters:
userId
- the user id
-