All Known Implementing Classes:
HvlOAuthAcquiredProfileManagerImpl

@Validated public interface HvlOAuthAcquiredProfileManager
This manager provides query methods.
  • Method Details

    • findUsernameSetByProfileId

      default Set<String> findUsernameSetByProfileId(@NotNull @NotNull Long profileId, boolean onlyEnabled, boolean includeProxied)
      Find username set by profile id.
      Parameters:
      profileId - the profile id
      onlyEnabled - the only enabled
      includeProxied - the include proxied
      Returns:
      the username set
    • findUsernameSetByProfileIdSet

      Set<String> findUsernameSetByProfileIdSet(@NotEmpty @NotEmpty Set<@NotNull Long> profileId, boolean onlyEnabled, boolean includeProxied)
      Find username set by profile id set
      Parameters:
      profileId - the profile id
      onlyEnabled - the only enabled
      includeProxied - the include proxied
      Returns:
      the username set
    • findProfileDataListByUsernameSet

      List<HvlOAuthAcquiredProfileDataModel> findProfileDataListByUsernameSet(@NotEmpty @NotEmpty Set<@NotBlank @Size(max=50) String> usernameSet, Locale locale, Boolean enabled)
      Find profile data list by username set.
      Parameters:
      usernameSet - the username set
      enabled - the enabled
      Returns:
      the profile data list
    • findProfileDataListByUsername

      default List<HvlOAuthAcquiredProfileDataModel> findProfileDataListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String username, Locale locale, Boolean enabled)
      Find profile data list by username.
      Parameters:
      username - the username
      enabled - 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 set
      enabled - 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 username
      enabled - 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 id
      profileIdSet - the profile id set
      enabled - the enabled
      includeProxied - 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 id
      profileId - the profile id
      enabled - the enabled
      includeProxied - 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 id
      profileIdSet - the profile id set
      includeProxied - 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 id
      profileId - the profile id
      includeProxied - 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 id
      profileIdSet - the profile id set
      enabled - the enabled
      includeProxied - 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 id
      profileId - the profile id
      enabled - the enabled
      includeProxied - 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 id
      profileIdSet - the profile id set
      includeProxied - 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 id
      profileId - the profile id
      includeProxied - 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 id
      proxyIdSet - the proxy id set
    • verifyProxyInUser

      default void verifyProxyInUser(@NotNull @NotNull Long userId, @NotNull @NotNull Long proxyId)
      Verify proxy in user.
      Parameters:
      userId - the user id
      proxyId - 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 id
      profileAcquiredRolePredicateModel - the profile acquired role predicate model
      Returns:
      the profile user data model