Interface HvlOAuthAcquiredProfileManager
- All Known Implementing Classes:
HvlOAuthAcquiredProfileManagerImpl
@Validated
public interface HvlOAuthAcquiredProfileManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<HvlOAuthAcquiredProfileDataModel>
findProfileDataListByUsername
(@NotBlank @Size(max=50) String username) Find profile data list by username.default List<HvlOAuthAcquiredProfileDataModel>
findProfileDataListByUsername
(@NotBlank @Size(max=50) String username, Boolean enabled) Find profile data list by username.findProfileDataListByUsernameSet
(@NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find profile data list by username set.findProfileGroupDataListByUsername
(@NotBlank @Size(max=50) String username) Find profile group data list by username.findProfileGroupDataListByUsername
(@NotBlank @Size(max=50) String username, Boolean enabled) Find profile group data list by username.findProfileGroupDataListByUsernameSet
(@NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find profile group data list by username set.findUsernameSetByProfileId
(@NotNull Long profileId, boolean onlyEnabled, boolean includeProxied) Find username set by profile id.getUserProfileAuthorityCodeSet
(@NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) Gets user profile authority code set.default void
verifyAllProfileInUser
(@NotNull Long userId, @NotEmpty Set<@NotNull Long> profileIdSet, boolean includeProxied) Verify all profile in user.void
verifyAllProfileInUser
(@NotNull Long userId, @NotEmpty Set<@NotNull Long> profileIdSet, Boolean enabled, boolean includeProxied) Verify all profile in user by userId and profileIdSet or else throw exception.void
verifyAllProxyInUser
(@NotNull Long userId, @NotEmpty Set<@NotNull Long> proxyIdSet) Verify all proxy in user.default void
verifyAnyProfileNotInUser
(@NotNull Long userId, @NotEmpty Set<@NotNull Long> profileIdSet, boolean includeProxied) Verify any profile not in user.void
verifyAnyProfileNotInUser
(@NotNull Long userId, @NotEmpty Set<@NotNull Long> profileIdSet, Boolean enabled, boolean includeProxied) Verify any profile not in user by userId and profileIdSet or else throw exception.default void
verifyProfileInUser
(@NotNull Long userId, @NotNull Long profileId, boolean includeProxied) Verify profile in user.default void
verifyProfileInUser
(@NotNull Long userId, @NotNull Long profileId, Boolean enabled, boolean includeProxied) Verify all profile in user by userId and profileId or else throw exception.default void
verifyProfileNotInUser
(@NotNull Long userId, @NotNull Long profileId, boolean includeProxied) Verify any profile not in user.default void
verifyProfileNotInUser
(@NotNull Long userId, @NotNull Long profileId, Boolean enabled, boolean includeProxied) Verify any profile not in user by userId and profileId or else throw exception.default void
verifyProxyInUser
(@NotNull Long userId, @NotNull Long proxyId) Verify proxy in user.verifyUserProfileThenGetUserData
(@NotNull Long userId, @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) Verify user profile then get user data model.
-
Method Details
-
findUsernameSetByProfileId
Set<String> findUsernameSetByProfileId(@NotNull @NotNull Long profileId, boolean onlyEnabled, boolean includeProxied) Find username set by profile id.- Parameters:
profileId
- the profile idonlyEnabled
- the only enabledincludeProxied
- the include proxied- Returns:
- the username set
-
findProfileDataListByUsernameSet
List<HvlOAuthAcquiredProfileDataModel> findProfileDataListByUsernameSet(@NotEmpty @NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find profile data list by username set.- Parameters:
usernameSet
- the username setenabled
- the enabled- Returns:
- the profile data list
-
findProfileDataListByUsername
default List<HvlOAuthAcquiredProfileDataModel> findProfileDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Boolean enabled) Find profile data list by username.- Parameters:
username
- the usernameenabled
- the enabled- Returns:
- the profile data list
-
findProfileDataListByUsername
default List<HvlOAuthAcquiredProfileDataModel> findProfileDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username) Find profile data list by username.- Parameters:
username
- the username- Returns:
- the profile data list
-
findProfileGroupDataListByUsernameSet
List<HvlOAuthAcquiredProfileGroupDataModel> findProfileGroupDataListByUsernameSet(@NotEmpty @NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Boolean enabled) Find profile group data list by username set.- Parameters:
usernameSet
- the username setenabled
- the enabled- Returns:
- the profile group data list
-
findProfileGroupDataListByUsername
default List<HvlOAuthAcquiredProfileGroupDataModel> findProfileGroupDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Boolean enabled) Find profile group data list by username.- Parameters:
username
- the usernameenabled
- the enabled- Returns:
- the profile group data list
-
findProfileGroupDataListByUsername
default List<HvlOAuthAcquiredProfileGroupDataModel> findProfileGroupDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username) Find profile group data list by username.- Parameters:
username
- the username- Returns:
- the profile group data list
-
getUserProfileAuthorityCodeSet
Set<String> getUserProfileAuthorityCodeSet(@NotNull @Valid @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) Gets user profile authority code set.- Parameters:
profileAcquiredRolePredicateModel
- the profile acquired role predicate model- Returns:
- the user profile authority code set
-
verifyAllProfileInUser
void verifyAllProfileInUser(@NotNull @NotNull Long userId, @NotEmpty @NotEmpty Set<@NotNull Long> profileIdSet, Boolean enabled, boolean includeProxied) Verify all profile in user by userId and profileIdSet or else throw exception.- Parameters:
userId
- the user idprofileIdSet
- the profile id setenabled
- the enabledincludeProxied
- the include proxied
-
verifyProfileInUser
default void verifyProfileInUser(@NotNull @NotNull Long userId, @NotNull @NotNull Long profileId, Boolean enabled, boolean includeProxied) Verify all profile in user by userId and profileId or else throw exception.- Parameters:
userId
- the user idprofileId
- the profile idenabled
- the enabledincludeProxied
- the include proxied
-
verifyAllProfileInUser
default void verifyAllProfileInUser(@NotNull @NotNull Long userId, @NotEmpty @NotEmpty Set<@NotNull Long> profileIdSet, boolean includeProxied) Verify all profile in user.- Parameters:
userId
- the user idprofileIdSet
- the profile id setincludeProxied
- the include proxied
-
verifyProfileInUser
default void verifyProfileInUser(@NotNull @NotNull Long userId, @NotNull @NotNull Long profileId, boolean includeProxied) Verify profile in user.- Parameters:
userId
- the user idprofileId
- the profile idincludeProxied
- the include proxied
-
verifyAnyProfileNotInUser
void verifyAnyProfileNotInUser(@NotNull @NotNull Long userId, @NotEmpty @NotEmpty Set<@NotNull Long> profileIdSet, Boolean enabled, boolean includeProxied) Verify any profile not in user by userId and profileIdSet or else throw exception.- Parameters:
userId
- the user idprofileIdSet
- the profile id setenabled
- the enabledincludeProxied
- the include proxied
-
verifyProfileNotInUser
default void verifyProfileNotInUser(@NotNull @NotNull Long userId, @NotNull @NotNull Long profileId, Boolean enabled, boolean includeProxied) Verify any profile not in user by userId and profileId or else throw exception.- Parameters:
userId
- the user idprofileId
- the profile idenabled
- the enabledincludeProxied
- the include proxied
-
verifyAnyProfileNotInUser
default void verifyAnyProfileNotInUser(@NotNull @NotNull Long userId, @NotEmpty @NotEmpty Set<@NotNull Long> profileIdSet, boolean includeProxied) Verify any profile not in user.- Parameters:
userId
- the user idprofileIdSet
- the profile id setincludeProxied
- the include proxied
-
verifyProfileNotInUser
default void verifyProfileNotInUser(@NotNull @NotNull Long userId, @NotNull @NotNull Long profileId, boolean includeProxied) Verify any profile not in user.- Parameters:
userId
- the user idprofileId
- the profile idincludeProxied
- the include proxied
-
verifyAllProxyInUser
void verifyAllProxyInUser(@NotNull @NotNull Long userId, @NotEmpty @NotEmpty Set<@NotNull Long> proxyIdSet) Verify all proxy in user.- Parameters:
userId
- the user idproxyIdSet
- the proxy id set
-
verifyProxyInUser
Verify proxy in user.- Parameters:
userId
- the user idproxyId
- the proxy id
-
verifyUserProfileThenGetUserData
HvlOAuthProfileUserDataModel verifyUserProfileThenGetUserData(@NotNull @NotNull Long userId, @NotNull @Valid @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) Verify user profile then get user data model.- Parameters:
userId
- the user idprofileAcquiredRolePredicateModel
- the profile acquired role predicate model- Returns:
- the profile user data model
-